C layer of the String module: the checks and comparisons of C strings in 'ethereal/cpp/string/io.hpp'.
What the String module has that makes sense in C is small: a bounded search for the terminator, equality with or without case, and a length limit. The classes CAString and CWString (with their small string buffer) and the format templates are C++ only and stay out.
The comparison without case folds bytes with 'tolower' of the C library, so it folds the ASCII letters. A program that changes the C locale with 'setlocale' may get more bytes folded. It never folds a UTF-8 sequence.
Not here, because the String module does not have them:
- UTF-8 validation: ETLC_EncodingIsValidUtf8, in 'ethereal/c/encoding/encoding.h'.
- UTF-8 to and from UTF-16 or UTF-32: the C++ side is 'Encoding::ToWide' and 'Encoding::ToUtf8' in 'ethereal/cpp/encoding/utf.hpp', which have no C layer yet.
- Unicode case mapping: the Text module.
- Number to text and text to number: no module has them in C++.
Every export returns 'int'. Zero is success, negative is an error. The values are part of the ABI.