CoolProp  4.2.5
An open-source fluid property and humid air property database
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
strfunc.h
Go to the documentation of this file.
1 #ifndef RAPIDJSON_INTERNAL_STRFUNC_H_
2 #define RAPIDJSON_INTERNAL_STRFUNC_H_
3 
4 namespace rapidjson {
5 namespace internal {
6 
8 
13 template <typename Ch>
14 inline SizeType StrLen(const Ch* s) {
15  const Ch* p = s;
16  while (*p != '\0')
17  ++p;
18  return SizeType(p - s);
19 }
20 
21 } // namespace internal
22 } // namespace rapidjson
23 
24 #endif // RAPIDJSON_INTERNAL_STRFUNC_H_
SizeType StrLen(const Ch *s)
Custom strlen() which works on different character types.
Definition: strfunc.h:14
unsigned SizeType
Use 32-bit array/string indices even for 64-bit platform, instead of using size_t.
Definition: rapidjson.h:67