| 39 | } |
| 40 | |
| 41 | void PropSetSimple::Set(const char *key, const char *val, int lenKey, int lenVal) { |
| 42 | mapss *props = static_cast<mapss *>(impl); |
| 43 | if (!*key) // Empty keys are not supported |
| 44 | return; |
| 45 | if (lenKey == -1) |
| 46 | lenKey = static_cast<int>(strlen(key)); |
| 47 | if (lenVal == -1) |
| 48 | lenVal = static_cast<int>(strlen(val)); |
| 49 | (*props)[std::string(key, lenKey)] = std::string(val, lenVal); |
| 50 | } |
| 51 | |
| 52 | static bool IsASpaceCharacter(unsigned int ch) { |
| 53 | return (ch == ' ') || ((ch >= 0x09) && (ch <= 0x0d)); |
nothing calls this directly
no test coverage detected