Lines Matching refs:this

148 static pico_status_t klexInitialize(register picoknow_KnowledgeBase this,  in klexInitialize()  argument
158 if (NULL == this || NULL == this->subObj) { in klexInitialize()
162 klex = (klex_subobj_t *) this->subObj; in klexInitialize()
164 if (PICO_OK == picoos_read_mem_pi_uint16(this->base, &curpos, in klexInitialize()
168 klex->searchind = this->base + curpos; in klexInitialize()
172 klex->lexblocks = this->base + PICOKLEX_LEX_NRBLOCKS_SIZE + in klexInitialize()
182 static pico_status_t klexSubObjDeallocate(register picoknow_KnowledgeBase this, in klexSubObjDeallocate() argument
185 if (NULL != this) { in klexSubObjDeallocate()
186 picoos_deallocate(mm, (void *) &this->subObj); in klexSubObjDeallocate()
196 pico_status_t picoklex_specializeLexKnowledgeBase(picoknow_KnowledgeBase this, in picoklex_specializeLexKnowledgeBase() argument
199 if (NULL == this) { in picoklex_specializeLexKnowledgeBase()
203 if (this->size > 0) { in picoklex_specializeLexKnowledgeBase()
204 this->subDeallocate = klexSubObjDeallocate; in picoklex_specializeLexKnowledgeBase()
205 this->subObj = picoos_allocate(common->mm, sizeof(klex_subobj_t)); in picoklex_specializeLexKnowledgeBase()
206 if (NULL == this->subObj) { in picoklex_specializeLexKnowledgeBase()
210 return klexInitialize(this, common); in picoklex_specializeLexKnowledgeBase()
232 picoklex_Lex picoklex_getLex(picoknow_KnowledgeBase this) in picoklex_getLex() argument
234 if (NULL == this) { in picoklex_getLex()
237 return (picoklex_Lex) this->subObj; in picoklex_getLex()
247 static picoos_uint32 klex_getSearchIndexVal(const klex_SubObj this, in klex_getSearchIndexVal() argument
252 val = this->searchind[pos]; in klex_getSearchIndexVal()
253 val = (val << 8) + this->searchind[pos + 1]; in klex_getSearchIndexVal()
254 val = (val << 8) + this->searchind[pos + 2]; in klex_getSearchIndexVal()
262 static picoos_uint16 klex_getLexblockNr(const klex_SubObj this, in klex_getLexblockNr() argument
276 high = this->nrblocks; in klex_getLexblockNr()
281 indval = klex_getSearchIndexVal(this, mid); in klex_getLexblockNr()
291 if (low < this->nrblocks) { in klex_getLexblockNr()
292 indval = klex_getSearchIndexVal(this, low); in klex_getLexblockNr()
298 indval = klex_getSearchIndexVal(this, low); in klex_getLexblockNr()
299 while (indval == klex_getSearchIndexVal(this, low-1)) { in klex_getLexblockNr()
305 low = this->nrblocks - 1; in klex_getLexblockNr()
312 this->searchind[pos], this->searchind[pos + 1], in klex_getLexblockNr()
313 this->searchind[pos + 2], low)); in klex_getLexblockNr()
324 static picoos_uint16 klex_getLexblockRange(const klex_SubObj this, in klex_getLexblockRange() argument
330 sval1 = klex_getSearchIndexVal(this, index); in klex_getLexblockRange()
335 sval2 = klex_getSearchIndexVal(this, index - 1); in klex_getLexblockRange()
341 sval2 = klex_getSearchIndexVal(this, index); in klex_getLexblockRange()
347 sval2 = klex_getSearchIndexVal(this, index); in klex_getLexblockRange()
416 static void klex_lexblockLookup(klex_SubObj this, in klex_lexblockLookup() argument
431 rv = klex_lexMatch(&(this->lexblocks[lexpos]), graph, graphlen); in klex_lexblockLookup()
434 klex_setLexResult(&(this->lexblocks[lexpos]), lexpos, lexres); in klex_lexblockLookup()
440 lexpos += this->lexblocks[lexpos]; in klex_lexblockLookup()
441 lexpos += this->lexblocks[lexpos]; in klex_lexblockLookup()
444 while ((this->lexblocks[lexpos] == 0) && in klex_lexblockLookup()
449 if (klex_lexMatch(&(this->lexblocks[lexpos]), graph, in klex_lexblockLookup()
451 klex_setLexResult(&(this->lexblocks[lexpos]), in klex_lexblockLookup()
464 lexpos += this->lexblocks[lexpos]; in klex_lexblockLookup()
465 lexpos += this->lexblocks[lexpos]; in klex_lexblockLookup()
468 while ((this->lexblocks[lexpos] == 0) && (lexpos < lexposEnd)) { in klex_lexblockLookup()
482 picoos_uint8 picoklex_lexLookup(const picoklex_Lex this, in picoklex_lexLookup() argument
490 klex_SubObj klex = (klex_SubObj) this; in picoklex_lexLookup()
534 picoos_uint8 picoklex_lexIndLookup(const picoklex_Lex this, in picoklex_lexIndLookup() argument
541 klex_SubObj klex = (klex_SubObj) this; in picoklex_lexIndLookup()