Interface AustraliaPostCustomerInformationDecoder
Interface AustraliaPostCustomerInformationDecoder
ドメイン: Aspose.BarCode.BarCodeRecognition 翻訳: Aspose.BarCode.dll (26.1.0)
顧客情報を含むフィールドを抽出するための汎用インターフェースで、AustraliaPost のエンコーディングで使用されます。ユーザーは実装を提供する必要があります。.
public interface AustraliaPostCustomerInformationDecoderExamples
Decode(string)
AustraliaPostコードに由来する顧客情報フィールドのパース。NTable と CTable のエンコードデータのさまざまな解釈に使用できます。データは 0、1、2、または 3 の行値のシーケンスとして提供されます。.
string Decode(string customerInformationField)Examples
customerInformationField セリ
顧客情報の列は、0、1、2、または3という一連の生データ値としてエンコードされています。
Examples
顧客情報のフィールドに分割された配列
Examples
この例は、AustraliaPostCustomerInformationDecoder インターフェースを使用してデータをデコードする方法を示しています。.
string[] N_Table = { "00", "01", "02", "10", "11", "12", "20", "21", "22", "30" };
public string Decode(string customerInformationField)
{
StringBuilder bd = new StringBuilder();
for (int i = 0; customerInformationField.Length > i; i += 2)
{
if (customerInformationField.Length >= i + 2)
{
string tmp = customerInformationField.Substring(i, 2);
for (int j = 0; N_Table.Length > j; j++)
{
if (N_Table[j].Equals(tmp))
{
bd.Append(j);
break;
}
}
}
}
return bd.ToString();
}