SubString
Represents sub-string of a full string starting at specific location with a specific length.
Конструкторы
Свойства
FullString : string
the full string that this sub-string is part of
Методы
CutSubstring() : string
Get a string of the sub-string. This will create a new string object!
Возвращает: new string that is the sub-string represented by this instance
IsEmpty() : bool
Is the sub-string is empty string.
Возвращает: true - empty string, false - otherwise
IsEmptyOrWhitespace() : bool
Is the sub-string is empty string or contains only whitespaces.
Возвращает: true - empty or whitespace string, false - otherwise
IsWhitespace() : bool
Is the sub-string contains only whitespaces (at least one).
Возвращает: true - empty or whitespace string, false - otherwise
Substring(int, int) : string
Retrieves a substring from this instance. The substring starts at a specified character position and has a specified length.
- startIdx
- The zero-based starting character position of a substring in this instance.
- length
- The number of characters in the substring.
Возвращает: A String equivalent to the substring of length length that begins at startIndex in this instance, or Empty if startIndex is equal to the length of this instance and length is zero.
Поля
_fullString : string
the full string that this sub-string is part of