StringExtensions Class |
[Missing <summary> documentation for "T:Godot.StringExtensions"]
Namespace: Godot
public static class StringExtensions
The StringExtensions type exposes the following members.
| Name | Description | |
|---|---|---|
| BaseName | ||
| BeginsWith | ||
| Bigrams | ||
| BinToInt |
Converts a string containing a binary number into an integer.
Binary strings can either be prefixed with `0b` or not,
and they can also start with a `-` before the optional prefix.
| |
| Capitalize | ||
| CasecmpTo | ||
| CEscape | ||
| CompareTo | ||
| Count | ||
| CUnescape | ||
| Empty | ||
| EndsWith | ||
| Erase | ||
| Extension | ||
| Find(String, Char, Int32, Boolean) | Find the first occurrence of a char. Optionally, the search starting position can be passed. | |
| Find(String, String, Int32, Boolean) | Find the first occurrence of a substring. Optionally, the search starting position can be passed. | |
| FindLast(String, String, Boolean) | Find the last occurrence of a substring. | |
| FindLast(String, String, Int32, Boolean) | Find the last occurrence of a substring specifying the search starting position. | |
| FindN | Find the first occurrence of a substring but search as case-insensitive. Optionally, the search starting position can be passed. | |
| GetBaseDir | ||
| GetFile | ||
| GetStringFromASCII |
Converts the given byte array of ASCII encoded text to a string.
Faster alternative to GetStringFromUTF8(Byte) if the
content is ASCII-only. Unlike the UTF-8 function this function
maps every byte to a character in the array. Multibyte sequences
will not be interpreted correctly. For parsing user input always
use GetStringFromUTF8(Byte).
| |
| GetStringFromUTF8 |
Converts the given byte array of UTF-8 encoded text to a string.
Slower than GetStringFromASCII(Byte) but supports UTF-8
encoded data. Use this function if you are unsure about the
source of the data. For user input this function
should always be preferred.
| |
| Hash | ||
| HexEncode |
Returns a hexadecimal representation of this byte array as a string.
| |
| HexToInt |
Converts a string containing a hexadecimal number into an integer.
Hexadecimal strings can either be prefixed with `0x` or not,
and they can also start with a `-` before the optional prefix.
| |
| Insert | ||
| IsAbsPath | ||
| IsRelPath | ||
| IsSubsequenceOf | ||
| IsSubsequenceOfI | ||
| IsValidFloat | ||
| IsValidHtmlColor | ||
| IsValidIdentifier | ||
| IsValidInteger | ||
| IsValidIPAddress | ||
| JSONEscape | ||
| Left | ||
| Length |
Return the length of the string in characters.
| |
| LStrip |
Returns a copy of the string with characters removed from the left.
| |
| Match |
Do a simple case sensitive expression match, using ? and * wildcards (see [method expr_match]).
| |
| MatchN |
Do a simple case insensitive expression match, using ? and * wildcards (see [method expr_match]).
| |
| MD5Buffer | ||
| MD5Text | ||
| NocasecmpTo | ||
| OrdAt | ||
| PadDecimals | ||
| PadZeros | ||
| PercentDecode | ||
| PercentEncode | ||
| PlusFile | ||
| Replace | ||
| ReplaceN | ||
| RFind | ||
| RFindN | ||
| Right | ||
| RStrip |
Returns a copy of the string with characters removed from the right.
| |
| SHA256Buffer | ||
| SHA256Text | ||
| Similarity | ||
| Split | ||
| SplitFloats | ||
| StripEdges | ||
| Substr | ||
| ToAscii | ||
| ToFloat | ||
| ToInt | ||
| ToLower | ||
| ToUpper | ||
| ToUTF8 | ||
| XMLEscape | ||
| XMLUnescape |