Click or drag to resize

StringExtensions Class

[Missing <summary> documentation for "T:Godot.StringExtensions"]

Inheritance Hierarchy
SystemObject
  GodotStringExtensions

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static class StringExtensions

The StringExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberBaseName
Public methodStatic memberBeginsWith
Public methodStatic memberBigrams
Public methodStatic memberBinToInt
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.
Public methodStatic memberCapitalize
Public methodStatic memberCasecmpTo
Public methodStatic memberCEscape
Public methodStatic memberCompareTo
Public methodStatic memberCount
Public methodStatic memberCUnescape
Public methodStatic memberEmpty
Public methodStatic memberEndsWith
Public methodStatic memberErase
Public methodStatic memberExtension
Public methodStatic memberFind(String, Char, Int32, Boolean)
Find the first occurrence of a char. Optionally, the search starting position can be passed.
Public methodStatic memberFind(String, String, Int32, Boolean)
Find the first occurrence of a substring. Optionally, the search starting position can be passed.
Public methodStatic memberFindLast(String, String, Boolean)
Find the last occurrence of a substring.
Public methodStatic memberFindLast(String, String, Int32, Boolean)
Find the last occurrence of a substring specifying the search starting position.
Public methodStatic memberFindN
Find the first occurrence of a substring but search as case-insensitive. Optionally, the search starting position can be passed.
Public methodStatic memberGetBaseDir
Public methodStatic memberGetFile
Public methodStatic memberGetStringFromASCII
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).
Public methodStatic memberGetStringFromUTF8
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.
Public methodStatic memberHash
Public methodStatic memberHexEncode
Returns a hexadecimal representation of this byte array as a string.
Public methodStatic memberHexToInt
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.
Public methodStatic memberInsert
Public methodStatic memberIsAbsPath
Public methodStatic memberIsRelPath
Public methodStatic memberIsSubsequenceOf
Public methodStatic memberIsSubsequenceOfI
Public methodStatic memberIsValidFloat
Public methodStatic memberIsValidHtmlColor
Public methodStatic memberIsValidIdentifier
Public methodStatic memberIsValidInteger
Public methodStatic memberIsValidIPAddress
Public methodStatic memberJSONEscape
Public methodStatic memberLeft
Public methodStatic memberLength
Return the length of the string in characters.
Public methodStatic memberLStrip
Returns a copy of the string with characters removed from the left.
Public methodStatic memberMatch
Do a simple case sensitive expression match, using ? and * wildcards (see [method expr_match]).
Public methodStatic memberMatchN
Do a simple case insensitive expression match, using ? and * wildcards (see [method expr_match]).
Public methodStatic memberMD5Buffer
Public methodStatic memberMD5Text
Public methodStatic memberNocasecmpTo
Public methodStatic memberOrdAt
Public methodStatic memberPadDecimals
Public methodStatic memberPadZeros
Public methodStatic memberPercentDecode
Public methodStatic memberPercentEncode
Public methodStatic memberPlusFile
Public methodStatic memberReplace
Public methodStatic memberReplaceN
Public methodStatic memberRFind
Public methodStatic memberRFindN
Public methodStatic memberRight
Public methodStatic memberRStrip
Returns a copy of the string with characters removed from the right.
Public methodStatic memberSHA256Buffer
Public methodStatic memberSHA256Text
Public methodStatic memberSimilarity
Public methodStatic memberSplit
Public methodStatic memberSplitFloats
Public methodStatic memberStripEdges
Public methodStatic memberSubstr
Public methodStatic memberToAscii
Public methodStatic memberToFloat
Public methodStatic memberToInt
Public methodStatic memberToLower
Public methodStatic memberToUpper
Public methodStatic memberToUTF8
Public methodStatic memberXMLEscape
Public methodStatic memberXMLUnescape
Top
See Also