Home | History | Annotate | Download | only in lib

Lines Matching defs:this

5  * you may not use this file except in compliance with the License.
156 picokfst_symid_t altOutSym; /**< current output symbol at this recursion position */
157 picoos_int32 altOutRefPos; /**< output reference position at this recursion position */
444 initialized by 'StartTransduction'. Repeat calls to this procedure until '*finished' returns true.
635 picotrns_SimpleTransducer this;
636 this = picoos_allocate(mm, sizeof(picotrns_simple_transducer_t));
637 if (this == NULL) {
638 picoos_deallocate(mm, (void *)&this);
644 this->altDescBuf = picotrns_allocate_alt_desc_buf(mm, maxAltDescLen, &this->maxAltDescLen);
645 if (this->altDescBuf == NULL) {
646 picoos_deallocate(mm, (void *)&this);
650 this->common = common;
651 picotrns_stInitialize(this);
652 return this;
656 * @param this
660 pico_status_t picotrns_disposeSimpleTransducer(picotrns_SimpleTransducer * this,
663 if (NULL != (*this)) {
664 picotrns_deallocate_alt_desc_buf(mm,&(*this)->altDescBuf);
665 picoos_deallocate(mm, (void *) this);
666 (*this) = NULL;
674 * @param this
678 pico_status_t picotrns_stTransduce(picotrns_SimpleTransducer this, picokfst_FST fst)
685 this->possymBuf, this->possymWritePos,
686 this->possymBufTmp,&outSeqLen, PICOTRNS_MAX_NUM_POSSYM,
687 this->altDescBuf,this->maxAltDescLen,&nrSteps);
691 return picotrns_eliminate_epsilons(this->possymBufTmp,outSeqLen,this->possymBuf,&this->possymWritePos,PICOTRNS_MAX_NUM_POSSYM);
698 * @param this is an initialized picotrns_SimpleTransducer
703 pico_status_t picotrns_stAddWithPlane(picotrns_SimpleTransducer this, picoos_char * inStr, picoos_uint8 plane)
705 while ((*inStr) && (this->possymWritePos < PICOTRNS_MAX_NUM_POSSYM)) {
706 this->possymBuf[this->possymWritePos].pos = PICOTRNS_POS_INSERT;
707 this->possymBuf[this->possymWritePos].sym = (plane << 8) + (*inStr);
709 this->possymBuf[this->possymWritePos].pos,
710 this->possymBuf[this->possymWritePos].sym,
711 this->possymWritePos));
712 this->possymWritePos++;
723 picotrns_SimpleTransducer this,
729 while ((this->possymReadPos < this->possymWritePos) && (outputCount < maxOutputSymIds)) {
730 *outputSymIds++ = picotrns_unplane(this->possymBuf[this->possymReadPos++].sym, &plane);