Recognizing the character as a single, unit as opposed to a sequence of bytes, is a requirement in the case of string manipulations involving multi-byte characters.
将字符看作一个单元而不是一个字节序列,这是进行多字节字符的字符串操作的必要条件。
The split method is useful because it splits a string into a sequence of smaller strings, using a token character (or any character in a given sequence of characters) as an indicator of where to chop.
split方法很有用,因为它可以将一个字符串分成几个较小的字符串序列,方法是将令牌字符(或给定字符序列中的任何字符)用作断开位置的指示器。
String.sequence (final) Gets the sequence of character between string and final (both must be 1-character strings) "0".sequence (" 9 ") returns "0123456789".
sequence (final)得到字符串和最终字符串之间的字符序列(字符串和最终字符串都必须是1个字符组成的字符串)“0 ” .sequence(“9 ”)返回“ 0123456789 ”。
If a character in a particular encoding spans multiple bytes, the character-based string functions can process each character as a single unit as opposed to a sequence of bytes.
如果采用特殊编码的某个字符的长度跨越了多个字节,则基于字符的字符串函数可以将每个字符处理为一个单元而不是一个字节序列。
The second split method demonstrates using a different token character -- in this case, a colon -- to split a string into a sequence of strings.
第二个split方法演示如何使用不同的令牌字符(本例中使用的是冒号)将一个字符串分成一系列字符串。
When specified during a search and replace operation, then sections of the character container sequence being searched that do match the regular expression, are not copied to the output string.
指定进行搜索和替换的操作中,字符容器序列中不被匹配的部分,不拷贝到输出字符。
Passes a string to a decoding operation that is emitted instead of an output character because an input byte sequence cannot be decoded.
向由于无法解码输入字节序列而未发出输出字符的解码操作传递一个字符串。
An attribute of character string data items that governs how a collating sequence for the items is determined.
可排列性coercibility:字符串数据项的属性,用于管理如何确定该项的整理序列。
An attribute of character string data items that governs how a collating sequence for the items is determined.
可排列性coercibility:字符串数据项的属性,用于管理如何确定该项的整理序列。
应用推荐