Variable TextPosition.pos

character position in line (0 == before first character)

struct TextPosition
{
  // ...
  int pos;
  // ...
}