#pragma once #include namespace esphome { namespace ads131m08 { template struct ci_char_traits : public std::char_traits { static bool eq(chartype c1, chartype c2) { return c1 == c2; } static bool ne(chartype c1, chartype c2) { return c1 != c2; } static bool lt(chartype c1, chartype c2) { return c1 < c2; } static int compare(const chartype *a, const chartype *b, size_t _Count) { for (; 0 < _Count; --_Count, ++a, ++b) { if (*a == *b) continue; return (*a < *b ? -1 : +1); } return (0); } }; template class uint_str { public: typedef std::basic_string, std::allocator > Ty_string; }; } // namespace ads131m08 } // namespace esphome