Lines Matching refs:graphsOffset
174 static picoos_uint32 ktab_propOffset (const picoktab_Graphs this, picoos_uint32 graphsOffset, picoos_uint32 prop);
263 picoos_uint32 graphsOffset;
268 graphsOffset = picoktab_graphOffset (this, (picoos_uchar *)graph);
269 return g->graphTable[graphsOffset + ktab_propOffset (this, graphsOffset, KTAB_GRAPH_PROPSET_TOKENTYPE)] == PICODATA_ITEMINFO1_TOKTYPE_LETTERV;
273 static void ktab_getStrProp (const picoktab_Graphs this, picoos_uint32 graphsOffset, picoos_uint32 propOffset, picoos_uchar * str)
279 l = picobase_det_utf8_length(g->graphTable[graphsOffset+propOffset]);
281 str[i] = g->graphTable[graphsOffset+propOffset+i];
289 picoos_uint32 graphsOffset, picoos_uint32 prop)
290 /* Returns offset of property 'prop' inside the graph with offset 'graphsOffset' in graphs table;
296 if ((g->graphTable[graphsOffset] & prop) == prop) {
298 n = n + picobase_det_utf8_length(g->graphTable[graphsOffset+n]); /* overread FROM field */
300 if ((g->graphTable[graphsOffset] & KTAB_GRAPH_PROPSET_TO)
302 n = n + picobase_det_utf8_length(g->graphTable[graphsOffset+n]); /* overread TO field */
308 if ((g->graphTable[graphsOffset] & KTAB_GRAPH_PROPSET_TOKENTYPE)
316 if ((g->graphTable[graphsOffset] & KTAB_GRAPH_PROPSET_TOKENSUBTYPE)
324 if ((g->graphTable[graphsOffset] & KTAB_GRAPH_PROPSET_VALUE)
332 if ((g->graphTable[graphsOffset] & KTAB_GRAPH_PROPSET_LOWERCASE)
334 n = n + picobase_det_utf8_length(g->graphTable[graphsOffset+n]); /* overread lowercase field */
340 if ((g->graphTable[graphsOffset] & KTAB_GRAPH_PROPSET_GRAPHSUBS1)
342 n = n + picobase_det_utf8_length(g->graphTable[graphsOffset+n]); /* overread graphsubs1 field */
348 if ((g->graphTable[graphsOffset] & KTAB_GRAPH_PROPSET_GRAPHSUBS2)
350 n = n + picobase_det_utf8_length(g->graphTable[graphsOffset+n]); /* overread graphsubs2 field */
356 if ((g->graphTable[graphsOffset] & KTAB_GRAPH_PROPSET_PUNCT)
372 picoos_uint32 graphsOffset;
387 graphsOffset = g->offsetTable[g->sizeOffset*m];
390 graphsOffset = g->offsetTable[g->sizeOffset*m ] +
392 /* PICODBG_DEBUG(("picoktab_graphOffset: %i %i %i %i", m, g->offsetTable[g->sizeOffset*m], g->offsetTable[g->sizeOffset*m + 1], graphsOffset));
397 ktab_getStrProp(this, graphsOffset, 1, from);
398 propOffset = ktab_propOffset(this, graphsOffset, KTAB_GRAPH_PROPSET_TO);
400 ktab_getStrProp(this, graphsOffset, propOffset, to);
414 return graphsOffset;
431 picoos_bool picoktab_getIntPropTokenType (const picoktab_Graphs this, picoos_uint32 graphsOffset, picoos_uint8 * stokenType)
436 propOffset = ktab_propOffset(this, graphsOffset, KTAB_GRAPH_PROPSET_TOKENTYPE);
438 *stokenType = (picoos_uint8)(g->graphTable[graphsOffset+propOffset]);
447 picoos_bool picoktab_getIntPropTokenSubType (const picoktab_Graphs this, picoos_uint32 graphsOffset, picoos_int8 * stokenSubType)
452 propOffset = ktab_propOffset(this, graphsOffset, KTAB_GRAPH_PROPSET_TOKENSUBTYPE);
454 *stokenSubType = (picoos_int8)(g->graphTable[graphsOffset+propOffset]);
462 picoos_bool picoktab_getIntPropValue (const picoktab_Graphs this, picoos_uint32 graphsOffset, picoos_uint32 * value)
467 propOffset = ktab_propOffset(this, graphsOffset, KTAB_GRAPH_PROPSET_VALUE);
469 *value = (picoos_uint32)(g->graphTable[graphsOffset+propOffset]);
478 picoos_bool picoktab_getIntPropPunct (const picoktab_Graphs this, picoos_uint32 graphsOffset, picoos_uint8 * info1, picoos_uint8 * info2)
483 propOffset = ktab_propOffset(this, graphsOffset, KTAB_GRAPH_PROPSET_PUNCT);
485 if (g->graphTable[graphsOffset+propOffset] == 2) {
491 if (g->graphTable[graphsOffset+1] == '.') {
494 else if (g->graphTable[graphsOffset+1] == '?') {
497 else if (g->graphTable[graphsOffset+1] == '!') {
511 picoos_bool picoktab_getStrPropLowercase (const picoktab_Graphs this, picoos_uint32 graphsOffset, picoos_uchar * lowercase)
515 propOffset = ktab_propOffset(this, graphsOffset, KTAB_GRAPH_PROPSET_LOWERCASE);
517 ktab_getStrProp(this, graphsOffset, propOffset, lowercase);
526 picoos_bool picoktab_getStrPropGraphsubs1 (const picoktab_Graphs this, picoos_uint32 graphsOffset, picoos_uchar * graphsubs1)
530 propOffset = ktab_propOffset(this, graphsOffset, KTAB_GRAPH_PROPSET_GRAPHSUBS1);
532 ktab_getStrProp(this, graphsOffset, propOffset, graphsubs1);
541 picoos_bool picoktab_getStrPropGraphsubs2 (const picoktab_Graphs this, picoos_uint32 graphsOffset, picoos_uchar * graphsubs2)
545 propOffset = ktab_propOffset(this, graphsOffset, KTAB_GRAPH_PROPSET_GRAPHSUBS2);
547 ktab_getStrProp(this, graphsOffset, propOffset, graphsubs2);
582 picoos_uint32 graphsOffset;
587 graphsOffset = g->offsetTable[graphIndex];
589 graphsOffset = g->offsetTable[2 * graphIndex]
592 pos = &(g->graphTable[graphsOffset]);