Logo Search packages:      
Sourcecode: yudit version File versions

int SUniFont::nextIndex ( int  pos,
int  size,
SString g 
) [private]

Find next XXXX: combination.

Returns:
position to first X and return the value of X in g. return negative if not found any, and set g to 0x10000. Sample unifont.hex: 001F:0000000000000000000024E0250024C0242019C0000000000000000000000000 0021:00000000101010101010100010100000 syriacforms.hex: 0710-fn:00180404040810203E10100000000000 arabforms.hex: 0678-l:0304030400080404F800000000000000 <-*g->.^ position returned

Definition at line 319 of file SUniFont.cpp.

References SBVector::clear().

Referenced by find().

{
  g->clear();
  for (int i=pos; i<size && i<=pos+100; i++)
  {
    if (i==0 || array[i-1] == '\n')
    {
      for (int j=i+1; j<i+100 && j+32 < size; j++)
      {
        if (array[j]==':')
        {
          /* : is inside */
          *g = SString (&array[i], (unsigned int) (j-i+1));
          return (j + 1);
        }
      }
      return -1;
    }
  }
  return -1;
}


Generated by  Doxygen 1.6.0   Back to index