![]() |
OTX Reference
|
|
Number of characters in a string More...
Public Attributes | |
StringTerm | _string |
Cardinality [1] Represents the input string whose length shall be retrieved. More... | |
![]() | |
MetaData | metaData |
Cardinality [0..1] The MetaData type allows tools to store additional, mainly tool-specific data. More... | |
Number of characters in a string
The LengthOfString term gives the number of characters in a String
.
Important: This term shall only be used for
ASCII-CODE
characters!
Note: Inside the The OTX-runtime the data type
String
handles bytes independently of the encoding used. If used to handle sequences of multi-byte characters (such asUTF-8
), all operations, such as LengthOfString, will still operate in terms of bytes and not the encoded characters! E.g.StringUtil.LengthOfString
("€"); returns 3 and not 1, because "€" consists of 3 bytes inUTF-8
.
StringTerm OpenTestSystem.Otx.Extensions.StringUtil.Terms.LengthOfString._string |
Cardinality [1]
Represents the input string whose length shall be retrieved.