Merge "Drop String8::std_string" into main

This commit is contained in:
Tomasz Wasilczyk 2023-09-08 18:17:25 +00:00 committed by Gerrit Code Review
commit 9cbae9d75b
2 changed files with 0 additions and 17 deletions

View file

@ -56,9 +56,6 @@ public:
inline const char16_t* c_str() const;
inline const char16_t* string() const;
private:
static inline std::string std_string(const String16& str);
public:
size_t size() const;
inline bool empty() const;
@ -249,11 +246,6 @@ inline const char16_t* String16::string() const
return mString;
}
inline std::string String16::std_string(const String16& str)
{
return std::string(String8(str).c_str());
}
inline bool String16::empty() const
{
return length() == 0;

View file

@ -58,10 +58,6 @@ public:
inline const char* c_str() const;
inline const char* string() const;
private:
static inline std::string std_string(const String8& str);
public:
inline size_t size() const;
inline size_t bytes() const;
inline bool empty() const;
@ -239,11 +235,6 @@ inline const char* String8::string() const
return mString;
}
inline std::string String8::std_string(const String8& str)
{
return std::string(str.c_str());
}
inline size_t String8::size() const
{
return length();