Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb752111 authored by Steven Moreland's avatar Steven Moreland Committed by android-build-merger
Browse files

Merge "Remove utf32 functions." am: 4e6275dd am: 68bb9b4c

am: 4491dc53

Change-Id: I8c0a086107f8ba6a6c829c3cd578f4286c82d24c
parents d5032eeb 4491dc53
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -468,21 +468,6 @@ void String8::toUpper(size_t start, size_t length)
    unlockBuffer(len);
}

size_t String8::getUtf32Length() const
{
    return utf8_to_utf32_length(mString, length());
}

int32_t String8::getUtf32At(size_t index, size_t *next_index) const
{
    return utf32_from_utf8_at(mString, length(), index, next_index);
}

void String8::getUtf32(char32_t* dst) const
{
    utf8_to_utf32(mString, length(), dst);
}

// ---------------------------------------------------------------------------
// Path functions

+0 −7
Original line number Diff line number Diff line
@@ -95,13 +95,6 @@ public:
                    __attribute__((format (printf, 2, 3)));
            status_t            appendFormatV(const char* fmt, va_list args);

            // Note that this function takes O(N) time to calculate the value.
            // No cache value is stored.
            size_t              getUtf32Length() const;
            int32_t             getUtf32At(size_t index,
                                           size_t *next_index) const;
            void                getUtf32(char32_t* dst) const;

    inline  String8&            operator=(const String8& other);
    inline  String8&            operator=(const char* other);