Table of Contents

Class LatinGlyphsUtility

Namespace
Songhay.Xml
Assembly
SonghayCore.dll

Condenses and expands Latin glyphs.

public static class LatinGlyphsUtility
Inheritance
LatinGlyphsUtility
Inherited Members

Fields

BasicLatinGlyphs

A collection of ProgramGlyph, representing the Latin Glyphs of the Basic Latin Unicode group.

public static readonly Lazy<ProgramGlyph[]> BasicLatinGlyphs

Field Value

Lazy<ProgramGlyph[]>

BeyondBasicLatinGlyphs

A collection of ProgramGlyph, representing the Latin Glyphs of the General Punctuation, Latin Extended-B, etc. Unicode groups.

public static readonly Lazy<ProgramGlyph[]> BeyondBasicLatinGlyphs

Field Value

Lazy<ProgramGlyph[]>

Methods

Condense(string?, bool)

Condenses selected decimal entities into their Latin glyph equivalent.

public static string? Condense(string? input, bool basicLatinOnly)

Parameters

input string

The input string containing the decimal entities.

basicLatinOnly bool

When true, process input for ProgramGlyph array where UnicodeInteger < 128.

Returns

string

Returns a string with Latin glyphs.

Expand(string?, bool)

Expands selected Latin glyphs into their decimal entity equivalent.

public static string? Expand(string? input, bool basicLatinOnly)

Parameters

input string

The input string containing the glyphs.

basicLatinOnly bool

When true, process input for array of ProgramGlyph where UnicodeInteger < 128.

Returns

string

Returns a string with decimal entities.

GetGlyphs(bool)

Gets the array of ProgramGlyph.

public static ProgramGlyph[] GetGlyphs(bool basicLatinOnly)

Parameters

basicLatinOnly bool

Returns

ProgramGlyph[]

RemoveUrlEncodings(string, bool)

Replaces any Utf8UrlEncoding found in the input with Empty.

public static string RemoveUrlEncodings(string input, bool basicLatinOnly)

Parameters

input string

The input.

basicLatinOnly bool

When true, process input for array of ProgramGlyph where UnicodeInteger < 128.

Returns

string

RemoveUrlEncodings(string, bool, bool)

Replaces any Utf8UrlEncoding found in the input with Empty.

public static string RemoveUrlEncodings(string input, bool includeWindows1252UrlEncoding, bool basicLatinOnly)

Parameters

input string

The input.

includeWindows1252UrlEncoding bool

When true, search for Windows1252UrlEncoding strings in the input.

basicLatinOnly bool

When true, process input for array of ProgramGlyph where UnicodeInteger < 128.

Returns

string