Lines Matching refs:count
38 storage->count = -1; in CharData_Init()
49 if (storage->count < 0) in CharData_AppendString()
50 storage->count = 0; 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()
68 if (storage->count < 0) in CharData_AppendXMLChars()
69 storage->count = 0; 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()
76 memcpy(storage->data + storage->count, s, in CharData_AppendXMLChars()
78 storage->count += len; in CharData_AppendXMLChars()
87 int count; in CharData_CheckString() local
91 count = (storage->count < 0) ? 0 : storage->count; 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()
116 int count; in CharData_CheckXMLChars() local
119 count = (storage->count < 0) ? 0 : storage->count; in CharData_CheckXMLChars()
120 if (len != count) { in CharData_CheckXMLChars()
122 count, len); in CharData_CheckXMLChars()