Lines Matching defs:this

5  * you may not use this file except in compliance with the License.
153 all but the first will be treated as an (empty) phrase containing just this item.
154 If this (single) item is a flush, creation of SBEG is suppressed.
245 static pico_status_t saInitialize(register picodata_ProcessingUnit this, picoos_int32 resetMode) {
255 if (NULL == this || NULL == this->subObj) {
256 return picoos_emRaiseException(this->common->em,
259 sa = (sa_subobj_t *) this->subObj;
261 /* sa->common = this->common; */
305 fst = picokfst_getFST(this->voice->kbArray[fstKbIds[i]]);
313 sa->fixedIds = picoktab_getFixedIds(this->voice->kbArray[PICOKNOW_KBID_FIXED_IDS]);
317 picoktab_getGraphs(this->voice->kbArray[PICOKNOW_KBID_TAB_GRAPHS]);
319 return picoos_emRaiseException(this->common->em, PICO_EXC_KB_MISSING,
326 picoktab_getPhones(this->voice->kbArray[PICOKNOW_KBID_TAB_PHONES]);
328 return picoos_emRaiseException(this->common->em, PICO_EXC_KB_MISSING,
379 picoktab_getPos(this->voice->kbArray[PICOKNOW_KBID_TAB_POS]);
381 return picoos_emRaiseException(this->common->em, PICO_EXC_KB_MISSING,
387 sa->dtposd = picokdt_getDtPosD(this->voice->kbArray[PICOKNOW_KBID_DT_POSD]);
389 return picoos_emRaiseException(this->common->em, PICO_EXC_KB_MISSING,
395 sa->dtg2p = picokdt_getDtG2P(this->voice->kbArray[PICOKNOW_KBID_DT_G2P]);
397 return picoos_emRaiseException(this->common->em, PICO_EXC_KB_MISSING,
403 sa->lex = picoklex_getLex(this->voice->kbArray[PICOKNOW_KBID_LEX_MAIN]);
405 return picoos_emRaiseException(this->common->em, PICO_EXC_KB_MISSING,
413 ulex = picoklex_getLex(this->voice->kbArray[ulexKbIds[i]]);
423 static picodata_step_result_t saStep(register picodata_ProcessingUnit this,
427 static pico_status_t saTerminate(register picodata_ProcessingUnit this) {
431 static pico_status_t saSubObjDeallocate(register picodata_ProcessingUnit this,
434 if (NULL != this) {
435 sa = (sa_subobj_t *) this->subObj;
437 picoos_deallocate(mm, (void *) &this->subObj);
448 picodata_ProcessingUnit this;
450 this = picodata_newProcessingUnit(mm, common, cbIn, cbOut, voice);
451 if (this == NULL) {
455 this->initialize = saInitialize;
456 PICODBG_DEBUG(("set this->step to saStep"));
457 this->step = saStep;
458 this->terminate = saTerminate;
459 this->subDeallocate = saSubObjDeallocate;
461 this->subObj = picoos_allocate(mm, sizeof(sa_subobj_t));
462 if (this->subObj == NULL) {
463 picoos_deallocate(mm, (void *)&this);
468 sa = (sa_subobj_t *) this->subObj;
474 picoos_deallocate(mm, (void *)&this);
479 saInitialize(this, PICO_RESET_FULL);
480 return this;
489 static picoos_uint8 saPosDItemSeqGetPosRight(register picodata_ProcessingUnit this,
511 static pico_status_t saDisambPos(register picodata_ProcessingUnit this,
553 valbuf[i] = saPosDItemSeqGetPosRight(this, sa, lastprev3, sa->headxLen, &lastprev3);
586 valbuf[PICOKDT_NRATT_POSD-1] = saPosDItemSeqGetPosRight(this, sa, lastprev3, sa->headxLen, &lastprev3);
591 picoos_emRaiseWarning(this->common->em, PICO_WARN_INVECTOR,
627 picoos_emRaiseWarning(this->common->em, PICO_WARN_INVECTOR,
635 picoos_emRaiseWarning(this->common->em, PICO_WARN_CLASSIFICATION,
643 picoos_emRaiseWarning(this->common->em, PICO_WARN_OUTVECTOR,
698 static pico_status_t saCopyItemContent1to2(register picodata_ProcessingUnit this,
712 picoos_emRaiseWarning(this->common->em,
733 static pico_status_t saLexIndLookup(register picodata_ProcessingUnit this,
750 picoos_emRaiseWarning(this->common->em,
771 picoos_emRaiseWarning(this->common->em, PICO_WARN_PU_IRREG_ITEM,
791 static picoos_uint8 saGetNrVowel(register picodata_ProcessingUnit this,
829 static picoos_uint8 saDoG2P(register picodata_ProcessingUnit this,
890 if (!saGetNrVowel(this, sa, graph, graphlen, nCount-1, &nrvow,
911 picoos_emRaiseWarning(this->common->em, PICO_WARN_INVECTOR,
921 picoos_emRaiseWarning(this->common->em, PICO_WARN_CLASSIFICATION,
930 picoos_emRaiseWarning(this->common->em, PICO_WARN_OUTVECTOR,
963 picoos_emRaiseWarning(this->common->em,
1005 static pico_status_t saGraphemeToPhoneme(register picodata_ProcessingUnit this,
1012 if (saDoG2P(this, sa, &(sa->cbuf1[sa->headx[ind].cind]),
1033 picoos_emRaiseWarning(this->common->em, PICO_WARN_PU_IRREG_ITEM,
1078 static pico_status_t saExtractPhonemes(register picodata_ProcessingUnit this,
1188 static picodata_step_result_t saStep(register picodata_ProcessingUnit this,
1200 if (NULL == this || NULL == this->subObj) {
1203 sa = (sa_subobj_t *) this->subObj;
1204 mode = mode; /* avoid warning "var not used in this function"*/
1221 (rv = picodata_cbGetItem(this->cbIn, sa->tmpbuf,
1231 picoos_emRaiseException(this->common->em, rvP,
1319 picoos_emRaiseWarning(this->common->em,
1336 changes without this function being adapted*/
1352 if (PICO_OK != saDisambPos(this, sa)) {
1353 picoos_emRaiseException(this->common->em,
1421 picoos_emRaiseWarning(this->common->em,
1431 if (PICO_OK != saGraphemeToPhoneme(this, sa,
1434 picoos_emRaiseException(this->common->em,
1446 if (PICO_OK != saLexIndLookup(this, sa, lex, i)) {
1448 picoos_emRaiseException(this->common->em,
1457 if (PICO_OK != saCopyItemContent1to2(this, sa,
1460 picoos_emRaiseException(this->common->em,
1548 rv = saExtractPhonemes(this, sa, 0, &(sa->headx[sa->headxBottom].head),
1560 PICODATA_INFO_ITEM(this->voice->kbArray[PICOKNOW_KBID_DBG],
1587 PICOTRNS_PRINTSYMSEQ(this->voice->kbArray[PICOKNOW_KBID_DBG], sa->phonBuf, sa->phonWritePos);
1600 PICOTRNS_PRINTSYMSEQ(this->voice->kbArray[PICOKNOW_KBID_DBG], sa->phonBufOut, sa->phonWritePos);
1636 PICOTRNS_PRINTSYMSEQ(this->voice->kbArray[PICOKNOW_KBID_DBG], sa->phonBuf, sa->phonWritePos);
1649 PICOTRNS_PRINTSYMSEQ(this->voice->kbArray[PICOKNOW_KBID_DBG], sa->phonBufOut, sa->phonWritePos);
1693 return (picodata_step_result_t)picoos_emRaiseException(this->common->em, PICO_WARN_INCOMPLETE, NULL, NULL);
1700 rvP = picodata_cbPutItem(this->cbOut, sa->tmpbuf,
1718 PICODATA_INFO_ITEM(this->voice->kbArray[PICOKNOW_KBID_DBG],
1734 picoos_emRaiseException(this->common->em, PICO_ERR_OTHER, NULL, NULL);