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
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