internal static int Component()

in csharp/EPAM.Deltix.HdTime/Parsers.cs [66:85]


			internal static int Component(String from, int ofs, ref ParsedValue dst, long scale)
			{

				int n = from.Length;
				if (ofs >= n)
					throw new ParseException(from, ofs);

				int x = Digit(from, ofs++);
				for (; ofs < n; ++ofs)
				{
					int c = from[ofs] - '0';
					if (c < 0 | c > 9)
						break;

					x = x * 10 + c;
				}

				dst.x += scale * x;
				return ofs;
			}