Home | History | Annotate | Download | only in lib

Lines Matching defs:this

5  * you may not use this file except in compliance with the License.
100 all but the first will be treated as an (empty) phrase containing just this item.
101 If this (single) item is a flush, creation of SBEG is suppressed.
160 static pico_status_t acphInitialize(register picodata_ProcessingUnit this, picoos_int32 resetMode) {
166 if (NULL == this || NULL == this->subObj) {
167 return picoos_emRaiseException(this->common->em,
170 acph = (acph_subobj_t *) this->subObj;
203 picoktab_getPhones(this->voice->kbArray[PICOKNOW_KBID_TAB_PHONES]);
205 return picoos_emRaiseException(this->common->em, PICO_EXC_KB_MISSING,
257 acph->dtphr = picokdt_getDtPHR(this->voice->kbArray[PICOKNOW_KBID_DT_PHR]);
259 return picoos_emRaiseException(this->common->em, PICO_EXC_KB_MISSING,
265 acph->dtacc = picokdt_getDtACC(this->voice->kbArray[PICOKNOW_KBID_DT_ACC]);
267 return picoos_emRaiseException(this->common->em, PICO_EXC_KB_MISSING,
275 static picodata_step_result_t acphStep(register picodata_ProcessingUnit this,
279 static pico_status_t acphTerminate(register picodata_ProcessingUnit this)
284 static pico_status_t acphSubObjDeallocate(register picodata_ProcessingUnit this,
286 mm = mm; /* avoid warning "var not used in this function"*/
287 if (NULL != this) {
288 picoos_deallocate(this->common->mm, (void *) &this->subObj);
299 picodata_ProcessingUnit this;
301 this = picodata_newProcessingUnit(mm, common, cbIn, cbOut, voice);
302 if (this == NULL) {
306 this->initialize = acphInitialize;
307 PICODBG_DEBUG(("set this->step to acphStep"));
308 this->step = acphStep;
309 this->terminate = acphTerminate;
310 this->subDeallocate = acphSubObjDeallocate;
311 this->subObj = picoos_allocate(mm, sizeof(acph_subobj_t));
312 if (this->subObj == NULL) {
313 picoos_deallocate(mm, (void *)&this);
318 acphInitialize(this, PICO_RESET_FULL);
319 return this;
328 static picoos_uint8 acphGetNrSylls(register picodata_ProcessingUnit this,
352 static picoos_uint8 acphPhrItemSeqGetPosLeft(register picodata_ProcessingUnit this,
371 static pico_status_t acphSubPhrasing(register picodata_ProcessingUnit this,
422 valbuf[0] = acphPhrItemSeqGetPosLeft(this, acph, lastprev2, &lastprev2);
453 valbuf[0] = acphPhrItemSeqGetPosLeft(this, acph, lastprev2, &lastprev2);
458 picoos_emRaiseWarning(this->common->em, PICO_WARN_INVECTOR,
464 nrsyllsfol += acphGetNrSylls(this, acph, i);
478 picoos_emRaiseWarning(this->common->em, PICO_WARN_INVECTOR,
486 picoos_emRaiseWarning(this->common->em, PICO_WARN_CLASSIFICATION,
494 picoos_emRaiseWarning(this->common->em, PICO_WARN_OUTVECTOR,
617 static picoos_uint8 acphAccItemSeqGetPosLeft(register picodata_ProcessingUnit this,
637 static picoos_uint8 acphAccNrSyllParts(register picodata_ProcessingUnit this,
684 static picoos_uint8 acphAccGetNrsRight(register picodata_ProcessingUnit this,
695 if (!acphAccNrSyllParts(this, acph, ind, &s1, &s2)) {
706 *nrsyllsfol += acphGetNrSylls(this, acph, i);
718 *footsyllsfol += acphGetNrSylls(this, acph, i);
723 if (!acphAccNrSyllParts(this, acph, i, &s1, &s2)) {
732 static picoos_uint8 acphAccGetNrsLeft(register picodata_ProcessingUnit this,
741 if (!acphAccNrSyllParts(this, acph, ind, &s1, &s2)) {
752 *nrsyllspre += acphGetNrSylls(this, acph, i);
760 *nrsyllspre += acphGetNrSylls(this, acph, i);
767 static picoos_uint8 acphIsWordWithoutStress(register picodata_ProcessingUnit this,
785 static pico_status_t acphAccentuation(register picodata_ProcessingUnit this,
839 valbuf[0] = acphAccItemSeqGetPosLeft(this, acph, lastprev2, &lastprev2);
871 valbuf[0] = acphAccItemSeqGetPosLeft(this, acph, lastprev2, &lastprev2);
876 picoos_emRaiseWarning(this->common->em, PICO_WARN_INVECTOR,
890 if ((!acphAccGetNrsRight(this, acph, i, &nrwordsfol, &nrsyllsfol,
892 (!acphAccGetNrsLeft(this, acph, i, &nrwordspre, &nrsyllspre))) {
894 picoos_emRaiseWarning(this->common->em, PICO_WARN_INVECTOR,
913 picoos_emRaiseWarning(this->common->em, PICO_WARN_INVECTOR,
921 picoos_emRaiseWarning(this->common->em, PICO_WARN_CLASSIFICATION,
929 picoos_emRaiseWarning(this->common->em, PICO_WARN_OUTVECTOR,
941 if (acphIsWordWithoutStress(this, acph, i)) {
966 static picoos_uint8 acphPutBoundItem(register picodata_ProcessingUnit this,
987 picoos_emRaiseException(this->common->em, rv, NULL, NULL);
991 rv = picodata_cbPutItem(this->cbOut, acph->tmpbuf, blen, &blen);
1000 picoos_emRaiseException(this->common->em, rv, NULL, NULL);
1004 PICODATA_INFO_ITEM(this->voice->kbArray[PICOKNOW_KBID_DBG],
1047 static picodata_step_result_t acphStep(register picodata_ProcessingUnit this,
1058 if (NULL == this || NULL == this->subObj) {
1061 acph = (acph_subobj_t *) this->subObj;
1062 mode = mode; /* avoid warning "var not used in this function"*/
1077 (rv = picodata_cbGetItem(this->cbIn, acph->tmpbuf,
1085 picoos_emRaiseException(this->common->em, rvP,
1144 picoos_emRaiseWarning(this->common->em,
1161 changes without this function being adapted*/
1180 if (PICO_OK != acphSubPhrasing(this, acph)) {
1181 picoos_emRaiseException(this->common->em,
1250 if (PICO_OK != acphAccentuation(this, acph)) {
1251 picoos_emRaiseException(this->common->em,
1281 if (!acphPutBoundItem(this, acph,
1306 if (!acphPutBoundItem(this, acph,
1323 if (!acphPutBoundItem(this, acph,
1347 if (!acphPutBoundItem(this, acph,
1369 rvP = picodata_cbPutItem(this->cbOut, acph->tmpbuf,
1393 PICODATA_INFO_ITEM(this->voice->kbArray[PICOKNOW_KBID_DBG],
1426 picoos_emRaiseException(this->common->em, PICO_ERR_OTHER, NULL, NULL);