Lines Matching refs:len
22 int len = 0; in xmlstrlen() local
24 while (s[len] != 0) in xmlstrlen()
25 ++len; in xmlstrlen()
26 return len; in xmlstrlen()
41 int len; in CharData_AppendString() local
44 len = strlen(s); in CharData_AppendString()
47 if ((len + storage->count) > maxchars) { in CharData_AppendString()
48 len = (maxchars - storage->count); in CharData_AppendString()
50 if (len + storage->count < sizeof(storage->data)) { in CharData_AppendString()
51 memcpy(storage->data + storage->count, s, len); in CharData_AppendString()
52 storage->count += len; in CharData_AppendString()
57 CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len) in CharData_AppendXMLChars() argument
66 if (len < 0) in CharData_AppendXMLChars()
67 len = xmlstrlen(s); in CharData_AppendXMLChars()
68 if ((len + storage->count) > maxchars) { in CharData_AppendXMLChars()
69 len = (maxchars - storage->count); in CharData_AppendXMLChars()
71 if (len + storage->count < sizeof(storage->data)) { in CharData_AppendXMLChars()
73 len * sizeof(storage->data[0])); in CharData_AppendXMLChars()
74 storage->count += len; in CharData_AppendXMLChars()
82 int len; in CharData_CheckString() local
88 len = strlen(expected); in CharData_CheckString()
89 if (len != count) { in CharData_CheckString()
92 " got %d, expected %d:\n%s", count, len, storage->data); in CharData_CheckString()
96 count, len); in CharData_CheckString()
100 if (memcmp(expected, storage->data, len) != 0) { in CharData_CheckString()
111 int len = xmlstrlen(expected); in CharData_CheckXMLChars() local
116 if (len != count) { in CharData_CheckXMLChars()
118 count, len); in CharData_CheckXMLChars()
122 if (memcmp(expected, storage->data, len * sizeof(storage->data[0])) != 0) { in CharData_CheckXMLChars()