in csharp/EPAM.Deltix.HdTime/Formatter.cs [472:493]
private static Int32 FindSequenceEnd(String format, Int32 startPosition, Int32 sequenceChar)
{
Int32 endPosition = startPosition;
for (Int32 index = startPosition; index < format.Length; index++)
{
Char c = format[index];
if (c != sequenceChar)
{
endPosition = index == startPosition ? index : index - 1;
break;
}
if (index + 1 == format.Length)
{
endPosition = index;
}
//endPosition++;
}
return endPosition;//- 1;
}