Class StringHelper
- Namespace
- SunamoEditorConfig
- Assembly
- SunamoEditorConfig.dll
Provides string manipulation helper methods for EditorConfig parsing
public static class StringHelper
- Inheritance
-
StringHelper
- Inherited Members
Methods
BetweenFirstAndSecondChar(string)
Extracts the substring between the first and last character (removes first and last char)
public static string BetweenFirstAndSecondChar(string text)
Parameters
textstringThe text to extract from
Returns
- string
The substring with first and last characters removed
GetLines(string)
Splits text into lines using both Unix (\n) and Windows (\r\n) line endings
public static List<string> GetLines(string text)
Parameters
textstringThe text to split into lines
Returns
Split(string, string)
Splits text by a delimiter string
public static List<string> Split(string text, string delimiter)