public StringBuilder appendCodePoint(int codePoint) Appends the string representation of the codePoint argument to this sequence. The argument is appended to the contents of this sequence. The length of this sequence increases by Character.charCount(codePoint). The overall effect is exactly as if ...
public StringBuilder appendCodePoint(int codePoint) Appends the string representation of the codePoint argument to this sequence. The argument is appended to the contents of this sequence. The length of this sequence increases by Character.charCount(codePoint). The overall effect is exactly as if ...
public StringBuilder append(Object obj) { return append(String.valueOf(obj)); } @Override public StringBuilder append(String str) { super.append(str); return this; } public StringBuilder append(StringBuffer sb) { super.append(sb); return this; } @Override public StringBuilder append(CharSequence...
StringBuilder append(String str)将指定的字符串追加到此字符序列。 StringBuilder append(StringBuffer sb)将指定的内容附加StringBuffer到此序列。 StringBuilder appendCodePoint(int codePoint)将codePoint 参数的字符串表示形式追加到此序列。 int capacity()返回当前容量。 char charAt(int index)返回char指定索引处的...
[Android.Runtime.Register("appendCodePoint", "(I)Ljava/lang/StringBuilder;", "")] public Java.Lang.StringBuilder AppendCodePoint(int codePoint); Parameters codePoint Int32 the Unicode code point to encode and append. Returns StringBuilder Attributes RegisterAttribute Remarks Added in 1.5. Java...
3、appendcodePoint(int cp):追加一个代码点,并将其转换为一个或两个代码单元并返回this 代码语言:javascript 代码运行次数:0 运行 AI代码解释 System.out.println("StringBuilder.appendCodePoint:"+strB.appendCodePoint(2));//return "StringBuilder.appendCodePoint:ch111c" ...
append(StringBuffer sb):将指定的 StringBuffer 追加到此序列。 appendCodePoint(int codePoint):将 codePoint 参数的字符串表示形式追加到此序列。 capacity():返回当前容量。 charAt(int index):返回此序列中指定索引处的 char 值。 codePointAt(int index):返回指定索引处的字符(统一代码点)。
append(long lng):将 long 参数的字符串表示形式追加到此序列。 append(Object obj):追加 Object 参数的字符串表示形式。 append(String str):将指定的字符串追加到此字符序列。 append(StringBuffer sb):将指定的 StringBuffer 追加到此序列。 appendCodePoint(int codePoint):将 codePoint 参数的字符串表示形式...
StringBuilderappend(StringBuffer sb) 将指定的 StringBuffer追加到此序列。 StringBuilderappendCodePoint(int codePoint) 将codePoint参数的字符串表示形式追加到此序列。 intcapacity() 返回当前容量。 charcharAt(int index) 返回指定索引处的此序列中的 char值。 IntStreamchars() 返回int的流,对...
例如,如果 z 引用一个当前内容为“start”的字符串生成器对象,则该方法调用 z.append("le") 将使字符串生成器包含“startle”,而 z.insert(4, "le") 将更改字符串生成器,使之包含“starlet”。 通常,如果 sb 引用 StringBuilder 的实例,则 sb.append(x) 和sb.insert(sb.length(), x) 具有相同的效果...