Table of Contents

Class ConvertOnlyLowercase

Namespace
SunamoConverters.Converts
Assembly
SunamoConverters.dll

Converts text to and from a format where uppercase letters are replaced with a marker followed by lowercase. Uses '$' as the marker for uppercase letters.

public class ConvertOnlyLowercase
Inheritance
ConvertOnlyLowercase
Inherited Members
Extension Methods

Fields

NextUpper

Marker character used to indicate the next letter should be uppercase. Note: '%' causes HTTP Error 400 (invalid URL), '*' is potentially dangerous.

public static char NextUpper

Field Value

char

Methods

Encode(string)

Encodes text using a custom letter conversion and number reversal algorithm.

public static string Encode(string text)

Parameters

text string

The text to encode.

Returns

string

The encoded text.

From(string)

Converts text from lowercase-only format back to original. When NextUpper marker ('$') is found, the next character will be converted to uppercase.

public static string From(string text)

Parameters

text string

The text to convert back.

Returns

string

The original text with uppercase letters restored.

To(string)

Converts text to lowercase-only format. Replaces each uppercase letter with the NextUpper marker followed by its lowercase version.

public static string To(string text)

Parameters

text string

The text to convert.

Returns

string

The converted text with all uppercase letters replaced.