Lines Matching refs:attributes

103 …d SvoxSsmlParser::starttagHandler(void* data, const XML_Char* element, const XML_Char** attributes)  in starttagHandler()  argument
105 ((SvoxSsmlParser*)data)->startElement(element, attributes); in starttagHandler()
108 void SvoxSsmlParser::startElement(const XML_Char* element, const XML_Char** attributes) in startElement() argument
127 for (int i = 0; attributes[i]; i += 2) in startElement()
129 if (strcmp(attributes[i], "xml:lang") == 0) in startElement()
133 m_docLanguage = new char[strlen(attributes[i+1])+1]; in startElement()
135 strcpy(m_docLanguage, attributes[i+1]); in startElement()
173 for (int i = 0; attributes[i]; i += 2) in startElement()
175 if (strcmp(attributes[i], "alphabet") == 0) in startElement()
177 if (strcmp(attributes[i+1], "xsampa") == 0) in startElement()
182 if (strcmp(attributes[i], "ph") == 0) in startElement()
184 ph = new char16_t[strlen8to16(attributes[i+1]) + 1]; in startElement()
185 ph = strdup8to16(attributes[i+1], &phsize); in startElement()
283 for (int i = 0; attributes[i]; i += 2) in startElement()
285 if (strcmp(attributes[i], "time") == 0) in startElement()
287 time = new char[strlen(attributes[i+1]) + 1]; in startElement()
293 strcpy(time, attributes[i+1]); in startElement()
295 else if (strcmp(attributes[i], "strength") == 0 && !time) in startElement()
297 time = convertBreakStrengthToTime(attributes[i+1]); in startElement()
324 for (int i = 0; attributes[i]; i += 2) in startElement()
326 if (strcmp(attributes[i], "pitch") == 0) in startElement()
328 char* svoxpitch = convertToSvoxPitch(attributes[i+1]); in startElement()
369 else if (strcmp(attributes[i], "rate") == 0) in startElement()
371 char* svoxrate = convertToSvoxRate(attributes[i+1]); in startElement()
412 else if (strcmp(attributes[i], "volume") == 0) in startElement()
414 char* svoxvol = convertToSvoxVolume(attributes[i+1]); in startElement()
464 for (int i = 0; attributes[i]; i += 2) in startElement()
466 if (strcmp(attributes[i], "src") == 0) in startElement()
468 if (strlen(m_data) + strlen(attributes[i+1]) + 1 > (size_t)m_datasize) in startElement()
476 strcat(m_data, attributes[i+1]); in startElement()