search for: string_ref

Displaying 1 result from an estimated 1 matches for "string_ref".

Did you mean: ring_ref
2017 Jun 21
6
RFC: Cleaning up the Itanium demangler
...MSC_VER // snprintf is implemented in VS 2015 #if _MSC_VER < 1900 #define snprintf _snprintf_s #endif #endif namespace __cxxabiv1 { namespace { enum { unknown_error = -4, invalid_args = -3, invalid_mangled_name, memory_alloc_failure, success }; +class string_ref +{ + const char *first, *last; +public: + template <size_t N> string_ref(const char (&str)[N]) + : first(str), last(str + N - 1) {} + string_ref(const char* first, const char* last) + : first(first), last(last) {} + string_ref() : first(nullptr), last(nul...