Class StringUtil
Miscellaneous rarely used string functions. Parsing etc.
public static class StringUtil
Namespace: Au.More
Assembly: Au.dll
Methods
Name | Description |
---|---|
CommandLineFromArray(string[]) | Converts array of command line arguments to string that can be passed to a "start process" function, for example run.it, System.Diagnostics.Process.Start. |
CommandLineToArray(string) | Parses command line arguments. Calls API CommandLineToArgvW. |
CommonPrefix(ReadOnlySpan<char>, ReadOnlySpan<char>) | Returns the number of characters common to the start of each string. |
CommonSuffix(ReadOnlySpan<char>, ReadOnlySpan<char>) | Returns the number of characters common to the end of each string. |
FindUnderlineChar(string, char) | Finds character used to underline next character when the text is displayed in UI. |
GetEncoding(int) | Calls System.Text.Encoding.GetEncoding, and Encoding.RegisterProvider if need. |
GetEncoding(string) | Calls System.Text.Encoding.GetEncoding, and Encoding.RegisterProvider if need. |
JsonMultiline(string) | Converts single-line JSON string to multiline indented JSON string. |
JsonMultiline(JsonElement) | Converts JSON element to multiline indented JSON string. |
LevenshteinDistance(ReadOnlySpan<char>, ReadOnlySpan<char>) | Calculates the Levenshtein distance between two strings, which tells how much they are different. |
LineAndColumn(string, int, out int, out int) | Converts character index in string to line index and character index in that line. |
ParseIntAndString(string, out int, out string, int, STIFlags) | If string contains a number at startIndex, gets that number as int, also gets the string part that follows it, and returns |
RemoveUnderlineChar(string, char) | Removes characters used to underline next character when the text is displayed in UI. Replaces two such characters with single. |
StringToIntArray(string) | Creates int[] from string containing space-separated numbers, like |