Prefix |
For example, given the following table:
PrefixGcpLengthTable t = new PrefixGcpLengthTable(); t.add("999", 7); t.add("9998", 10); t.add("99712345", 8);Then the following shows various GCP lengths returned by the table.
t.gcpLength("9994567890123") ==> 7 t.gcpLength("9998567890123") ==> 10 t.gcpLength("9971234567890") ==> 8 t.gcpLength("9971299999999") ==> UnknownGcpLengthException
public class PrefixGcpLengthTable : GcpLengthTable
The PrefixGcpLengthTable type exposes the following members.
Name | Description | |
---|---|---|
![]() | PrefixGcpLengthTable | Initializes a new instance of the PrefixGcpLengthTable class |
Name | Description | |
---|---|---|
![]() | Add | Adds a mapping specifying that any GCP beginning with the specified prefix is of the specific length. |
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
![]() | GcpLength(String) | Lookup a GCP length |
![]() | GcpLength(String, Int32) | Lookup a GCP length, starting the lookup at a particular point in the key string |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object) |