Table of Contents

Class MappingTable

Namespace
Ubiety.Stringprep.Core
Assembly
Ubiety.Stringprep.Core.dll

Mapping table.

public abstract class MappingTable : IMappingTable
Inheritance
MappingTable
Implements
Inherited Members

Methods

Build(params IDictionary<int, int[]>[])

Build a mapping table.

public static IMappingTableBuilder Build(params IDictionary<int, int[]>[] baseTables)

Parameters

baseTables IDictionary<int, int[]>[]

Value and replacement tables.

Returns

IMappingTableBuilder

Mapping table builder.

Build(int[], int)

Build mapping table.

public static IMappingTableBuilder Build(int[] valueTable, int replacement)

Parameters

valueTable int[]

Table of values to replace.

replacement int

Replacement value.

Returns

IMappingTableBuilder

Mapping table builder instance.

Build(int[], int[])

Build a mapping table.

public static IMappingTableBuilder Build(int[] valueTable, int[] replacement)

Parameters

valueTable int[]

Table of values to replace.

replacement int[]

Table of replacement values.

Returns

IMappingTableBuilder

Mapping table builder.

Create(params IDictionary<int, int[]>[])

Create a mapping table.

public static IMappingTable Create(params IDictionary<int, int[]>[] baseTables)

Parameters

baseTables IDictionary<int, int[]>[]

Tables to base off of.

Returns

IMappingTable

Mapping table instance.

Create(int[], int)

Create a mapping table.

public static IMappingTable Create(int[] valueTable, int replacement)

Parameters

valueTable int[]

Array of values to replace.

replacement int

Replacement value.

Returns

IMappingTable

Mapping table instance.

Create(int[], int[])

Create a mapping table.

public static IMappingTable Create(int[] valueTable, int[] replacement)

Parameters

valueTable int[]

Integer array of values to replace.

replacement int[]

Integer array of replacement values.

Returns

IMappingTable

Mapping table instance.

GetReplacement(int)

Get the replacement value.

public abstract int[] GetReplacement(int value)

Parameters

value int

Value to replace.

Returns

int[]

integer array of the replacement values.

HasReplacement(int)

Does the value have a replacement.

public abstract bool HasReplacement(int value)

Parameters

value int

Value to search for.

Returns

bool

true if replacement is available; otherwise false.