Index: compiled/Utils.h |
=================================================================== |
--- a/compiled/Utils.h |
+++ b/compiled/Utils.h |
@@ -19,11 +19,18 @@ |
#include <string> |
#include "base.h" |
#include "String.h" |
ABP_NS_BEGIN |
+// the length of a null terminated character sequence (string) |
+template<typename T, size_t N> |
+constexpr size_t str_length_of(T (&)[N]) |
+{ |
+ return N - 1; |
+} |
+ |
std::wstring StdWStringFromString(const String& str); |
ABP_NS_END |