Home
last modified time | relevance | path

Searched refs:LSTRLEN (Results 1 – 25 of 34) sorted by relevance

12

/external/srec/portable/src/
DPFileSystem.c88 ending = beginning + LSTRLEN(beginning); in PFileSystemLinearToPathTokens()
99 if (LSTRLEN(value) == 0) in PFileSystemLinearToPathTokens()
217 passert(path[LSTRLEN(path)-1] == L('/')); in PFileSystemGetAbsolutePath()
290 if (bestKey == NULL || LSTRLEN(key) > LSTRLEN(bestKey)) in PFileSystemGetFS()
310 CHKLOG(rc, PFileSystemIsAbsolutePath(path + LSTRLEN(bestKey), &isAbsolute)); in PFileSystemGetFS()
317 LSTRCAT(relativePath, path + LSTRLEN(bestKey)); in PFileSystemGetFS()
389 if (LSTRLEN(PFileSystemCurrentDirectory) + 1 > *len) in PFileSystemGetcwd()
392 *len = LSTRLEN(PFileSystemCurrentDirectory) + 1; in PFileSystemGetcwd()
398 passert(path[LSTRLEN(path)-1] == L('/')); in PFileSystemGetcwd()
419 if (absolutePath[LSTRLEN(absolutePath)-1] != L('/')) in PFileSystemChdir()
[all …]
DPANSIFileSystemImpl.c117 len = LSTRLEN(virtualPath) + 1; in PANSIFileSystemAddPathImpl()
118 if (virtualPath[LSTRLEN(virtualPath)-1] != L('/')) in PANSIFileSystemAddPathImpl()
130 if (key[LSTRLEN(key)-1] != L('/')) in PANSIFileSystemAddPathImpl()
132 value = MALLOC(sizeof(LCHAR) * (LSTRLEN(realPath) + 1), MTAG); in PANSIFileSystemAddPathImpl()
143 if (LSTRLEN(value) == 0) in PANSIFileSystemAddPathImpl()
154 if (value[LSTRLEN(value)-1] != L('/')) in PANSIFileSystemAddPathImpl()
197 if (path[LSTRLEN(path)-1] != L('/')) in PANSIFileSystemRemovePathImpl()
226 if (LSTRNCMP(path, key, LSTRLEN(key)) == 0) in PANSIFileSystemGetRealPathImpl()
229 if (bestKey == NULL || LSTRLEN(key) > LSTRLEN(bestKey)) in PANSIFileSystemGetRealPathImpl()
245 if (LSTRLEN(bestValue) + 1 > *len) in PANSIFileSystemGetRealPathImpl()
[all …]
DLCHAR.c30 len = LSTRLEN(text); in lstrtrim()
53 if (LSTRLEN(source) + LSTRLEN(target) + 1 > *len) in lstrinsert()
55 *len = LSTRLEN(source) + LSTRLEN(target) + 1; in lstrinsert()
60 memmove(target + offset + LSTRLEN(source), target + offset, LSTRLEN(target + offset) + 1); in lstrinsert()
61 LSTRNCPY(target + offset, source, LSTRLEN(source)); in lstrinsert()
316 size = LSTRLEN(buffer); in litostr()
341 size = LSTRLEN(buffer); in lultostr()
Dplog.c323 psprintf(buffer + LSTRLEN(buffer), L("%s|"), timeStr); in logIt()
324 passert(LSTRLEN(buffer) < BUFFER_SIZE); in logIt()
329 rc = psprintf(buffer + LSTRLEN(buffer), L("trd=%u|"), PtrdGetCurrentThreadId()); in logIt()
330 passert(LSTRLEN(buffer) < BUFFER_SIZE); in logIt()
371 rc = psprintf(buffer + LSTRLEN(buffer), L("Module=%s|"), text); in logIt()
372 passert(LSTRLEN(buffer) < BUFFER_SIZE); in logIt()
375 pvsprintf(buffer + LSTRLEN(buffer), format, args); in logIt()
377 pvsprintf(buffer + LSTRLEN(buffer), format, args); in logIt()
379 passert(LSTRLEN(buffer) < BUFFER_SIZE); in logIt()
381 psprintf(buffer + LSTRLEN(buffer), L("\n")); in logIt()
[all …]
DPFileImpl.c51 impl->filename = MALLOC(sizeof(LCHAR) * (LSTRLEN(filename) + 1), MTAG); in PFileCreateImpl()
152 if (LSTRLEN(impl->filename) + 1 > *len) in PFileGetFilenameImpl()
154 *len = LSTRLEN(impl->filename) + 1; in PFileGetFilenameImpl()
192 len = LSTRLEN(buffer); in PFileVfprintfImpl()
Dpmemory.c167 *len = LSTRLEN(stackTrace); in getStackTrace()
470 const size_t TAG_PREFIX_SIZE = LSTRLEN(TAG_PREFIX); in PMemReport()
511 len = LSTRLEN(e->tag); in PMemReport()
517 passert(LSTRLEN(truncatedTag) == TAG_SIZE - 1); in PMemReport()
606 gMemoryMap[idx].tag = malloc(sizeof(LCHAR) * (LSTRLEN(tag) + 1)); in pmalloc()
639 passert(LSTRLEN(stackTrace) < P_MAX_STACKTRACE); in pmalloc()
640 data->stackTrace = realloc(stackTrace, sizeof(LCHAR) * (LSTRLEN(stackTrace) + 1)); in pmalloc()
DpLastError.c40 msg[LSTRLEN(msg)-2] = L('\0'); /* cut off newline character */ in printGetLastErrorInternal()
Dpcrc.c158 return pcrcComputeData(str, sizeof(LCHAR) * LSTRLEN(str)); in pcrcComputeString()
/external/srec/portable/src/UNIX/
DPANSIFileSystemUNIXImpl.c60 if (bestValue==NULL || LSTRLEN(value) > LSTRLEN(bestValue)) in PANSIFileSystemGetVirtualPathImpl()
77 LSTRCPY(path, path + LSTRLEN(bestValue)); in PANSIFileSystemGetVirtualPathImpl()
84 CHKLOG(rc, lstrinsert(L("X:/"), path, LSTRLEN(bestKey), len)); in PANSIFileSystemGetVirtualPathImpl()
85 path[LSTRLEN(bestKey)] = driveLetter; in PANSIFileSystemGetVirtualPathImpl()
/external/srec/shared/src/
DCommandLine.c41 if (LSTRLEN(*argv) + 1 > *len) in ESR_CommandLineGetValue()
43 *len = LSTRLEN(*argv) + 1; in ESR_CommandLineGetValue()
46 *len = LSTRLEN(*argv) + 1; in ESR_CommandLineGetValue()
DLStringImpl.c58 needed = LSTRLEN(impl->value) + LSTRLEN(value) + 1; in LString_Append()
DSessionTypeImpl.c262 if (LSTRLEN(pair->value) + 1 > *len) in ESR_SessionTypeGetLCHARImpl()
264 *len = LSTRLEN(lValue) + 1; in ESR_SessionTypeGetLCHARImpl()
439 clone = MALLOC(sizeof(LCHAR) * (LSTRLEN(value) + 1), MTAG); in ESR_SessionTypeSetLCHARImpl()
649 key = MALLOC(sizeof(LCHAR) * (LSTRLEN("cmdline.") + LSTRLEN(*argv) + 1), MTAG); in ESR_SessionTypeImportCommandLineImpl()
893 if (LSTRLEN(line) == LINE_SIZE) in importKeyValueFile()
899 if (LSTRLEN(line) == 0 || line[0] == '#') in importKeyValueFile()
934 if (LSTRLEN(value) == 0) in importKeyValueFile()
940 if ((ending = LSTRCHR(value, '\\')) == (value + LSTRLEN(value) - 1)) in importKeyValueFile()
1020 size = LSTRLEN(text); in parseIntList()
/external/srec/srec/Nametag/src/
DNametagsImpl.c101 if (LSTRNCMP(filename, devicePath, LSTRLEN(devicePath)) != 0) in SR_NametagsLoadImpl()
129 if (LSTRLEN(line) == 255) in SR_NametagsLoadImpl()
161 len = (LSTRLEN(value)+1) * sizeof(LCHAR) ; in SR_NametagsLoadImpl()
166 if (LSTRLEN(id) > NAMETAGID_LENGTH) in SR_NametagsLoadImpl()
221 if (LSTRNCMP(filename, devicePath, LSTRLEN(devicePath)) != 0) in SR_NametagsSaveImpl()
240 if (LSTRLEN(id) + 1 + LSTRLEN(nametag->value) + 2 >= NAMETAG_LENGTH) in SR_NametagsSaveImpl()
247 len = LSTRLEN(nametagBuffer); in SR_NametagsSaveImpl()
254 if (LSTRLEN(id) > NAMETAGID_LENGTH) in SR_NametagsSaveImpl()
DNametagImpl.c69 len = LSTRLEN(transcription)+1; in SR_NametagCreate()
83 len = LSTRLEN(L("ph_")); in SR_NametagCreate()
219 impl->id = (LCHAR*) MALLOC(sizeof(LCHAR) * (LSTRLEN(id) + 1), MTAG); in SR_Nametag_SetID()
238 CHKLOG(rc, SR_NametagCreateFromValue(impl->id, impl->value, LSTRLEN(impl->value)+1, result)); in SR_Nametag_Clone()
/external/srec/srec/EventLog/src/
DEventLogImpl.c326 if (LSTRLEN(qrecord) >= len) in quote_delimiter()
359 if (LSTRLEN(token) + LSTRLEN(value) + 2 + in SR_EventLog_Token()
360 LSTRLEN(impl->tokenBuf) < MAX_LOG_RECORD) in SR_EventLog_Token()
362 if (LSTRLEN(token) + LSTRLEN(value) + 3 > TOK_BUFLEN) in SR_EventLog_Token()
373 if (LSTRLEN(buf) + 1 + LSTRLEN(impl->tokenBuf) >= MAX_LOG_RECORD) in SR_EventLog_Token()
494 len = LSTRLEN(toWrite[i]); in logIt()
558 if (quote_delimiter(buf, LSTRLEN(buf) + 1) != 0) in SR_EventLog_Event()
722 if (*len < LSTRLEN(impl->waveformFilename)) in SR_EventLog_AudioGetFilename()
729 *len = LSTRLEN(waveformFilename); in SR_EventLog_AudioGetFilename()
/external/srec/srec/Semproc/src/
DSemanticResultImpl.c111 if (LSTRLEN(theValue) + 1 > *len) in SR_SemanticResult_GetValue()
113 *len = LSTRLEN(theValue) + 1; in SR_SemanticResult_GetValue()
114 PLogError(L("ESR_BUFFER_OVERFLOW, requires len>=%d"), LSTRLEN(theValue) + 1); in SR_SemanticResult_GetValue()
DSemanticGraphImpl.c331 size_t len = LSTRLEN(line) + 1; in SR_SemanticGraph_LoadFromTextFiles()
349 LSTRCPY(oword, line + LSTRLEN(iword) + 1); in SR_SemanticGraph_LoadFromTextFiles()
352 for (i = 0, p = line + LSTRLEN(iword) + 1; *p; p++) in SR_SemanticGraph_LoadFromTextFiles()
911 const LCHAR *end = a + LSTRLEN(a); in count_num_literals()
940 enda = a + LSTRLEN(a); in union_literal_pair()
941 endb = b + LSTRLEN(b); in union_literal_pair()
981 if (LSTRLEN(a) > max_len) return ESR_BUFFER_OVERFLOW; in make_union_of_scripts()
995 if ((LSTRLEN(a) + LSTRLEN(b) - 2) > max_len) in make_union_of_scripts()
997 …o hold union of multiple meanings (size %d) is too small", max_len, (LSTRLEN(a) + LSTRLEN(b) - 2)); in make_union_of_scripts()
1008 if (LSTRLEN(spo[i]) > MAX_SEMPROC_VALUE) in make_union_of_scripts()
[all …]
DSymbolTable.c98 MEMCHK(rc, LSTRLEN(key), MAX_SEMPROC_KEY); in ST_putKeyValue()
110 if (LSTRLEN(value) >= MAX_SEMPROC_VALUE) in ST_putKeyValue()
111 …PLogError("Warning: chopping length of value len %d > %d (%s)\n", LSTRLEN(value), MAX_SEMPROC_VALU… in ST_putKeyValue()
137 copyValue = (LCHAR*) CALLOC(LSTRLEN(pvalue) + 1, sizeof(LCHAR), _MTAG); in ST_Copy()
DExpressionEvaluator.c52 opLen = LSTRLEN(operands[i]); in EE_concat()
91 *resultLen = LSTRLEN(resultBuf); in EE_conditional()
DSemanticProcessorImpl.c246 #define nextWord(transcription) (transcription && *transcription ? &transcription[LSTRLEN(transcri…
693 dst = MALLOC(sizeof(LCHAR) * (LSTRLEN(p) + 1), L("semproc.meaning")); in SR_SemanticProcessor_CheckParseByWordID()
726 if (LSTRLEN(meaning) + 1 < MAX_STRING_LEN) in SR_SemanticProcessor_CheckParseByWordID()
730 if (LSTRLEN(meaning) + LSTRLEN(dst) < MAX_STRING_LEN) in SR_SemanticProcessor_CheckParseByWordID()
744 dst = MALLOC(sizeof(LCHAR) * (LSTRLEN(meaning) + 1), L("semproc.meaning")); in SR_SemanticProcessor_CheckParseByWordID()
1009 dst = MALLOC(sizeof(LCHAR) * (LSTRLEN(p) + 1), L("semproc.meaning")); in SR_SemanticProcessor_CheckParse()
1039 dst = MALLOC(sizeof(LCHAR) * (LSTRLEN(meaning) + 1), L("semproc.meaning")); in SR_SemanticProcessor_CheckParse()
/external/srec/srec/Vocabulary/src/
DVocabularyImpl.c40 #define LSTRDUP(src) LSTRCPY(CALLOC(LSTRLEN(src)+1, sizeof(LCHAR), "srec.Vocabulary.LSTRDUP"), (src…
442 if( LSTRLEN(phrase) >= MAX_PRON_LEN) in SR_VocabularyGetPronunciationImpl()
454 *pronunciation_len = LSTRLEN(pronunciation)+1; in SR_VocabularyGetPronunciationImpl()
457 *pronunciation_len += LSTRLEN( pronunciation + (*pronunciation_len)) + 1; in SR_VocabularyGetPronunciationImpl()
562 len = LSTRLEN(pronunciation)+1; in SR_VocabularyGetPronunciationImpl()
565 len += LSTRLEN( pronunciation + len) + 1; in SR_VocabularyGetPronunciationImpl()
/external/srec/portable/include/
Dptypes.h262 #define LSTRLEN strlen macro
420 #define LSTRLEN wcslen macro
/external/srec/srec/AcousticModels/src/
DAcousticModelsImpl.c342 if (LSTRLEN(modelFilename) == 0 || modelFilename[0] == '#') in SR_AcousticModelsLoad()
501 temp = MALLOC(sizeof(LCHAR) * (LSTRLEN(value) + 1), MTAG); in SR_AcousticModels_SetParameter()
529 if (LSTRLEN(temp) + 1 > *len) in SR_AcousticModels_GetParameter()
531 *len = LSTRLEN(temp) + 1; in SR_AcousticModels_GetParameter()
535 *len = LSTRLEN(temp) + 1; in SR_AcousticModels_GetParameter()
/external/srec/tools/grxmlcompile/
Dvocab.cpp102 len_used += LSTRLEN(pron)+1; in lookup()
104 std::cout << "DEBUG: used " << len_used << " now " << LSTRLEN(pron) << std::endl; in lookup()
/external/srec/srec/Recognizer/src/
DRecognizerResultImpl.c173 actualLen += LSTRLEN(lValue); in SR_RecognizerResult_GetValue()
212 int len = LSTRLEN(value); in SR_RecognizerResult_GetValue()

12