1 /* 2 * Copyright 2023, Andrew Lindesay <apl@lindesay.co.nz>. 3 * All rights reserved. Distributed under the terms of the MIT License. 4 */ 5 #ifndef STRING_UTILS_H 6 #define STRING_UTILS_H 7 8 9 #include <String.h> 10 11 12 class StringUtils { 13 14 public: 15 static void InSituTrimSpaceAndControl(BString& value); 16 static void InSituStripSpaceAndControl(BString& value); 17 18 static int NullSafeCompare(const char* s1, const char* s2); 19 20 private: 21 static bool _IsSpaceOrControl(char ch); 22 }; 23 24 #endif // STRING_UTILS_H 25