MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / guess_word

Function guess_word

extlibs/soloud/src/audiosource/speech/tts.cpp:1144–1161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1142}
1143
1144static void guess_word(darray *arg, char *word)
1145{
1146 int index; /* Current position in word */
1147 int type; /* First letter of match part */
1148 index = 1; /* Skip the initial blank */
1149
1150 do
1151 {
1152 if (isupper(word[index]))
1153 type = word[index] - 'A' + 1;
1154 else
1155 type = 0;
1156
1157 index = find_rule(arg, word, index, Rules[type]);
1158 }
1159
1160 while (word[index] != '\0');
1161}
1162
1163
1164static int NRL(const char *s, int n, darray *phone)

Callers 1

NRLFunction · 0.85

Calls 1

find_ruleFunction · 0.85

Tested by

no test coverage detected