Table of Contents

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

text string

The 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

text string

The text to split into lines

Returns

List<string>

A list of lines from the text

Split(string, string)

Splits text by a delimiter string

public static List<string> Split(string text, string delimiter)

Parameters

text string

The text to split

delimiter string

The delimiter to split by

Returns

List<string>

A list of split parts