Lines Matching refs:picoos_char
41 #define picoos_SVOXFileHeader (picoos_char *)" (C) SVOX AG "
48 #define PICOOS_MSG_EXC_NUMBER_FORMAT (picoos_char *) "wrong number format"
49 #define PICOOS_MSG_EXC_MAX_NUM_EXCEED (picoos_char *) "number exceeded"
50 #define PICOOS_MSG_EXC_NAME_CONFLICT (picoos_char *) "name conflict"
51 #define PICOOS_MSG_EXC_NAME_UNDEFINED (picoos_char *) "name undefined"
52 #define PICOOS_MSG_EXC_NAME_ILLEGAL (picoos_char *) "illegal name"
55 #define PICOOS_MSG_EXC_BUF_OVERFLOW (picoos_char *) "buffer overflow"
56 #define PICOOS_MSG_EXC_BUF_UNDERFLOW (picoos_char *) "buffer underflow"
57 #define PICOOS_MSG_EXC_BUF_IGNORE (picoos_char *) "buffer error"
60 #define PICOOS_MSG_EXC_OUT_OF_MEM (picoos_char *) "out of memory"
63 #define PICOOS_MSG_EXC_CANT_OPEN_FILE (picoos_char *) "cannot open file"
64 #define PICOOS_MSG_EXC_UNEXPECTED_FILE_TYPE (picoos_char *) "unexpected file type"
65 #define PICOOS_MSG_EXC_FILE_CORRUPT (picoos_char *) "corrupt file"
66 #define PICOOS_MSG_EXC_FILE_NOT_FOUND (picoos_char *) "file not found"
69 #define PICOOS_MSG_EXC_RESOURCE_BUSY (picoos_char *) "resource is busy"
70 #define PICOOS_MSG_EXC_RESOURCE_MISSING (picoos_char *) "cannot find resource"
73 #define PICOOS_MSG_EXC_KB_MISSING (picoos_char *) "knowledge base missing"
76 #define PICOOS_MSG_ERR_NULLPTR_ACCESS (picoos_char *) "access violation"
77 #define PICOOS_MSG_ERR_INVALID_HANDLE (picoos_char *) "invalid handle value"
78 #define PICOOS_MSG_ERR_INVALID_ARGUMENT (picoos_char *) "invalid argument supplied"
79 #define PICOOS_MSG_ERR_INDEX_OUT_OF_RANGE (picoos_char *) "index out of range"
83 #define PICOOS_MSG_ERR_OTHER (picoos_char *) "other error"
85 #define PICOOS_MSG_ERR_PU (picoos_char *) "error in processing unit"
90 #define PICOOS_MSG_WARN_INCOMPLETE (picoos_char *) "incomplete output"
91 #define PICOOS_MSG_WARN_FALLBACK (picoos_char *) "using fall-back"
92 #define PICOOS_MSG_WARN_OTHER (picoos_char *) "other warning"
95 #define PICOOS_MSG_WARN_KB_OVERWRITE (picoos_char *) "overwriting knowledge base"
96 #define PICOOS_MSG_WARN_RESOURCE_DOUBLE_LOAD (picoos_char *) "resource already loaded"
99 #define PICOOS_MSG_WARN_INVECTOR (picoos_char *) "input vector not constructed"
100 #define PICOOS_MSG_WARN_CLASSIFICATION (picoos_char *) "output not classified"
101 #define PICOOS_MSG_WARN_OUTVECTOR (picoos_char *) "output vector not decomposed"
104 #define PICOOS_MSG_WARN_PU_IRREG_ITEM (picoos_char *) "irregular item in processing unit"
105 #define PICOOS_MSG_WARN_PU_DISCARD_BUF (picoos_char *) "discarding processing unit buffer"
112 picoos_int32 picoos_atoi(const picoos_char *s)
114 return (picoos_int32)picopal_atoi((const picoos_char *)s);
118 picoos_int8 picoos_strcmp(const picoos_char *a, const picoos_char *b)
124 picoos_int8 picoos_strncmp(const picoos_char *a, const picoos_char *b, picoos_objsize_t siz)
131 picoos_uint32 picoos_strlen(const picoos_char *s)
136 picoos_char *picoos_strchr(const picoos_char *s, picoos_char c)
138 return (picoos_char *)picopal_strchr((const picopal_char *)s,
142 picoos_char *picoos_strstr(const picoos_char *s, const picoos_char * substr)
144 return (picoos_char *)picopal_strstr((const picopal_char *)s,
148 picoos_int16 picoos_slprintf(picoos_char * b, picoos_uint32 bsize, const picoos_char *f, ...)
154 i = (picoos_int16)picopal_vslprintf((picoos_char *) b, bsize, (const picoos_char *)f, args);
159 picoos_char *picoos_strcpy(picoos_char *d, const picoos_char *s)
161 return (picoos_char *)picopal_strcpy((picopal_char *)d,
165 picoos_char *picoos_strcat(picoos_char *d, const picoos_char *s)
167 return (picoos_char *)picopal_strcat((picopal_char *)d,
171 picoos_objsize_t picoos_strlcpy(picoos_char *dst, const picoos_char *src, picoos_objsize_t siz)
617 typedef picoos_char picoos_exc_msg[PICOOS_MAX_EXC_MSG_LEN];
618 typedef picoos_char picoos_warn_msg[PICOOS_MAX_WARN_MSG_LEN];
658 static void picoos_vSetErrorMsg(picoos_char * dst, picoos_objsize_t siz,
659 picoos_int16 code, picoos_char * base, const picoos_char *fmt, va_list args)
791 base = (picoos_char *) "unknown error";
800 bsize = picoos_strlcpy(dst,(picoos_char *)": ",siz);
808 void picoos_setErrorMsg(picoos_char * dst, picoos_objsize_t siz,
809 picoos_int16 code, picoos_char * base, const picoos_char *fmt, ...)
820 pico_status_t exceptionCode, picoos_char * baseMessage, picoos_char * fmt, ...)
844 void picoos_emGetExceptionMessage(picoos_ExceptionManager this, picoos_char * msg, picoos_uint16 maxsize)
850 pico_status_t warningCode, picoos_char * baseMessage, picoos_char * fmt, ...)
856 picoos_strlcpy(this->curWarningMessage[this->curNumWarnings],(picoos_char *) "too many warnings",PICOOS_MAX_WARN_MSG_LEN);
886 void picoos_emGetWarningMessage(picoos_ExceptionManager this, picoos_uint8 index, picoos_char * msg, picoos_uint16 maxsize)
915 picoos_char * data;
972 static picoos_uint8 LReadChar (picoos_File f, picoos_char * ch);
985 picoos_char fileName[], picopal_access_mode mode)
1073 static picoos_bool LWriteBytes(picoos_File f, const picoos_char bytes[], int * len) {
1154 static picoos_bool picoos_StrRead (picoos_File f, picoos_char str[])
1158 picoos_char b;
1161 done = done && picoos_ReadByte(f,(picoos_char *)&b);
1169 static picoos_bool picoos_WriteStr (picoos_File f, picoos_char str[])
1195 picoos_char fileName[])
1234 picoos_char fileName[])
1241 picoos_uint8 picoos_WriteByte(picoos_File f, picoos_char by)
1245 return picoos_WriteBytes(f, (picoos_char *) &by, &n);
1251 picoos_bool picoos_WriteBytes(picoos_File f, const picoos_char bytes[], picoos_int32 * len) {
1331 picoos_bool picoos_Name(picoos_File f, picoos_char name[], picoos_uint32 maxsize)
1338 name[0] = (picoos_char)NULLC;
1346 picoos_bool picoos_FileExists(picoos_Common g, picoos_char name[])
1453 done = picoos_StrRead(f, (picoos_char *) "RIFF");
1455 done = done && picoos_StrRead(f, (picoos_char *) "WAVE");
1456 done = done && picoos_StrRead(f, (picoos_char *) "fmt ");
1466 done = done && picoos_StrRead(f, (picoos_char *) "data");
1512 picoos_char fileName[], picoos_uint32 * sf, picoos_encoding_t * enc,
1532 if (picoos_has_extension(fileName,(picoos_char *) ".wav")) {
1543 picoos_emRaiseWarning(g->em,PICO_EXC_UNEXPECTED_FILE_TYPE,(picoos_char *)"unsupported filename suffix",NULL);
1545 picoos_emRaiseWarning(g->em,PICO_EXC_UNEXPECTED_FILE_TYPE,(picoos_char *)"non-conforming header",NULL);
1553 picoos_emRaiseWarning(g->em,PICO_EXC_UNEXPECTED_FILE_TYPE,NULL,(picoos_char *)"encoding not supported");
1557 picoos_emRaiseWarning(g->em,PICO_EXC_UNEXPECTED_FILE_TYPE,NULL,(picoos_char *)"sample frequency not supported");
1702 done = done && picoos_WriteStr(f,(picoos_char *)"RIFF");
1704 done = done && picoos_WriteStr(f,(picoos_char *)"WAVE");
1705 done = done && picoos_WriteStr(f,(picoos_char *)"fmt ");
1713 done = done && picoos_WriteStr(f,(picoos_char *)"data");
1723 picoos_char fileName[], int sf, picoos_encoding_t enc)
1740 (picoos_char *) "encoding not supported");
1745 (picoos_char *) "sample frequency not supported");
1752 if (picoos_has_extension(fileName, (picoos_char *) ".wav")) {
1765 (picoos_char *) "unsupported filename suffix", NULL);
1768 (picoos_char *) "non-conforming header", NULL);
1891 picoos_uint8 index, picoos_char * key, picoos_char * value,
1930 static picoos_uint8 os_matched( picoos_char * str, picoos_uint32 strlen, picoos_char * buf, picoos_int32 bufpos) {
1942 pico_status_t picoos_getSVOXHeaderString(picoos_char * str, picoos_uint8 * len, picoos_uint32 maxlen)
1944 picoos_char * ch;
1961 picoos_char str[32];
1962 picoos_char buf[32];
1993 picoos_uint8 picoos_get_str (picoos_char * fromStr, picoos_uint32 * pos, picoos_char * toStr, picoos_objsize_t maxsize)
2156 picoos_uint8 picoos_has_extension(const picoos_char *str, const picoos_char *suf)
2172 pico_status_t picoos_string_to_int32(picoos_char str[],
2217 pico_status_t picoos_string_to_uint32(picoos_char str[],
2258 void picoos_get_sep_part_str(picoos_char string[],
2259 picoos_int32 stringlen, picoos_int32 * ind, picoos_char sepCh,
2260 picoos_char part[], picoos_int32 maxsize, picoos_uint8 * done)
2268 part[0] = (picoos_char) NULLC;
2272 while ((((*ind) < stringlen) && (string[(*ind)] != sepCh)) && (string[((*ind))] != (picoos_char)NULLC)) {
2281 part[j] = (picoos_char)NULLC;
2285 } else if (string[(*ind)] == (picoos_char)NULLC) {