java.lang.StringBuffer.codePointAt()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(276)

本文整理了Java中java.lang.StringBuffer.codePointAt()方法的一些代码示例,展示了StringBuffer.codePointAt()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。StringBuffer.codePointAt()方法的具体详情如下:
包路径:java.lang.StringBuffer
类名称:StringBuffer
方法名:codePointAt

StringBuffer.codePointAt介绍

暂无

代码示例

代码示例来源:origin: org.opencypher/grammar

@Override
public int codePointAt( int index )
{
  return output.codePointAt( index );
}

代码示例来源:origin: org.eclipse/ocl

@Override
int codePointAt0(StringBuffer buffer, int offset) {
  return buffer.codePointAt(offset);
}

代码示例来源:origin: org.openehealth.ipf.eclipse.ocl/ipf-eclipse-ocl

@Override
int codePointAt0(StringBuffer buffer, int offset) {
  return buffer.codePointAt(offset);
}

代码示例来源:origin: org.eclipse/ocl

@Override
void setCodePointAt0(StringBuffer buffer, int offset, int codePoint) {
  int existingCodePoint = buffer.codePointAt(offset);
  int width = Character.charCount(existingCodePoint);
  
  buffer.replace(
      offset,
      offset + width,
      String.valueOf(Character.toChars(codePoint)));
}

代码示例来源:origin: org.openehealth.ipf.eclipse.ocl/ipf-eclipse-ocl

@Override
void setCodePointAt0(StringBuffer buffer, int offset, int codePoint) {
  int existingCodePoint = buffer.codePointAt(offset);
  int width = Character.charCount(existingCodePoint);
  
  buffer.replace(
      offset,
      offset + width,
      String.valueOf(Character.toChars(codePoint)));
}

代码示例来源:origin: omegat-org/omegat

/**
 * We assume that EOL is always '\n' after XML processing.
 */
StringBuffer fixEOL(StringBuffer out) {
  for (int cp, i = 0; i < out.length(); i += Character.charCount(cp)) {
    cp = out.codePointAt(i);
    if (cp == '\n') {
      // EOL
      out.setCharAt(i, eol.charAt(0));
      if (eol.length() > 1) {
        // EOL is more than 1 char - need to insert remaining.
        // Intentionally iterating by chars instead of code points.
        for (int j = 1; j < eol.length(); j++) {
          out.insert(i + 1, eol.charAt(j));
          i++;
        }
      }
    }
  }
  return out;
}

代码示例来源:origin: org.opencypher/grammar

return ((StringBuffer) str).codePointAt( index );

代码示例来源:origin: ml.alternet/alternet-tools

return new Char(! ((Reversible) first).includes(), sb.codePointAt(0));
} else {
  return new Chars(! ((Reversible) first).includes(), sb.toString());

代码示例来源:origin: org.apache.sis.core/sis-referencing

if (unit != null) {
  if (getFormat(Unit.class).format(unit, buffer, dummyFP).length() != 0) {
    if (Character.isLetterOrDigit(buffer.codePointAt(0))) {
      buffer.insert(0, ' ');

代码示例来源:origin: apache/sis

if (unit != null) {
  if (getFormat(Unit.class).format(unit, buffer, dummyFP).length() != 0) {
    if (Character.isLetterOrDigit(buffer.codePointAt(0))) {
      buffer.insert(0, ' ');

代码示例来源:origin: io.virtdata/virtdata-lib-realer

if (fieldNum == 0 && capitalizationContext != null && UCharacter.isLowerCase(buf.codePointAt(bufstart))) {
  boolean titlecase = false;
  switch (capitalizationContext) {

相关文章