Decode
AustraliaPostCustomerInformationDecoder.Decode method
ऑस्ट्रेलियापोस्ट सहजीवन से ग्राहक सूचना क्षेत्र को डिकोड करें। का उपयोग NTable और CTable एन्कोडिंग से विभिन्न डेटा व्याख्या के लिए किया जा सकता है। डेटा बार मानों की एक पंक्ति के रूप में प्रदान किया जाता है: 0, 1, 2 या 3.
public string Decode(string customerInformationField)
पैरामीटर | प्रकार | विवरण |
---|---|---|
customerInformationField | String | कच्चे बार मानों की पंक्ति के रूप में एन्कोडेड ग्राहक सूचना फ़ील्ड: 0, 1, 2 या 3 |
प्रतिलाभ की मात्रा
डीकोडेड ग्राहक सूचना फ़ील्ड स्ट्रिंग
उदाहरण
यह नमूना दिखाता है कि AustraliaPostCustomerInformationDecoder इंटरफ़ेस के साथ डेटा को कैसे डिकोड किया जाए
[C#]
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();
}
यह सभी देखें
- interface AustraliaPostCustomerInformationDecoder
- नाम स्थान Aspose.BarCode.BarCodeRecognition
- सभा Aspose.BarCode