com.google.zxing.pdf417.decoder.DecodedBitStreamParser.multiply(string, int)

Here are the examples of the csharp api class com.google.zxing.pdf417.decoder.DecodedBitStreamParser.multiply(string, int) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: ZXing-CSharp
Source File: DecodedBitStreamParser.cs
private static System.String decodeBase900toBase10(int[] codewords, int count)
		{
			System.Text.StringBuilder accum = null;
			for (int i = 0; i < count; i++)
			{
				System.Text.StringBuilder value_Renamed = multiply(EXP900[count - i - 1], codewords[i]);
				if (accum == null)
				{
					// First time in accum=0
					accum = value_Renamed;
				}
				else
				{
					accum = add(accum.ToString(), value_Renamed.ToString());
				}
			}
			System.String result = null;
			// Remove leading '1' which was inserted to preserve
			// leading zeros
			for (int i = 0; i < accum.Length; i++)
			{
				if (accum[i] == '1')
				{
					//result = accum.substring(i + 1);
					result = accum.ToString().Substring(i + 1);
					break;
				}
			}
			if (result == null)
			{
				// No leading 1 => just write the converted number.
				result = accum.ToString();
			}
			return result;
		}