• Home
  • Raw
  • Download

Lines Matching refs:len

26     int len = 0;  in xmlstrlen()  local
28 while (s[len] != 0) in xmlstrlen()
29 ++len; in xmlstrlen()
30 return len; in xmlstrlen()
45 int len; in CharData_AppendString() local
48 len = strlen(s); in CharData_AppendString()
51 if ((len + storage->count) > maxchars) { in CharData_AppendString()
52 len = (maxchars - storage->count); in CharData_AppendString()
54 if (len + storage->count < sizeof(storage->data)) { in CharData_AppendString()
55 memcpy(storage->data + storage->count, s, len); in CharData_AppendString()
56 storage->count += len; in CharData_AppendString()
61 CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len) in CharData_AppendXMLChars() argument
70 if (len < 0) in CharData_AppendXMLChars()
71 len = xmlstrlen(s); in CharData_AppendXMLChars()
72 if ((len + storage->count) > maxchars) { in CharData_AppendXMLChars()
73 len = (maxchars - storage->count); in CharData_AppendXMLChars()
75 if (len + storage->count < sizeof(storage->data)) { in CharData_AppendXMLChars()
77 len * sizeof(storage->data[0])); in CharData_AppendXMLChars()
78 storage->count += len; in CharData_AppendXMLChars()
86 int len; in CharData_CheckString() local
92 len = strlen(expected); in CharData_CheckString()
93 if (len != count) { in CharData_CheckString()
96 " got %d, expected %d:\n%s", count, len, storage->data); in CharData_CheckString()
100 count, len); in CharData_CheckString()
104 if (memcmp(expected, storage->data, len) != 0) { in CharData_CheckString()
115 int len = xmlstrlen(expected); in CharData_CheckXMLChars() local
120 if (len != count) { in CharData_CheckXMLChars()
122 count, len); in CharData_CheckXMLChars()
126 if (memcmp(expected, storage->data, len * sizeof(storage->data[0])) != 0) { in CharData_CheckXMLChars()