...是Delphi1.0中的字符串类型,ShortString类型有时被称为Pascal字符串(Pascal String)或长度-字节字符串(Length-Byte String)。$H编译开关的值用来决定当变量声明为字符串时,它是被当作AnsiString类型还是被当作ShortSting类型。
基于4个网页-相关网页
The counting of string length using a byte is referred to as byte semantics in this article, and the counting of string length using the number of characters is referred to as character semantics.
本文中将使用字节计算字符串长度的方法称作字节语义,而使用字符数计算字符串长度的方法称作字符语义。
In Figure 5, the substring of length 1 from the first byte of the string has been specified.
在图5中,已经指定字符串第一个字节的长度为1的子字符串。
But if byte semantics is used, and characters are encoded using UTF-8, then the length of the string is 6 bytes.
但是如果使用字节语义并使用UTF - 8对字符进行编码,则该字符串的长度为6字节。
应用推荐