SubString
Represents sub-string of a full string starting at specific location with a specific length.
Construtores
Propriedades
FullString : string
the full string that this sub-string is part of
Métodos
CutSubstring() : string
Get a string of the sub-string. This will create a new string object!
Retorna: new string that is the sub-string represented by this instance
IsEmptyOrWhitespace() : bool
Is the sub-string is empty string or contains only whitespaces.
Retorna: true - empty or whitespace string, false - otherwise
IsWhitespace() : bool
Is the sub-string contains only whitespaces (at least one).
Retorna: 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.
Retorna: 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.
Campos
_fullString : string
the full string that this sub-string is part of