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

Commit 9a2960f2 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "String8: operator<<" am: 3c22033c

Change-Id: Ib74439d696a56a609abe529bcc29aedd399fc45d
parents 3a20e8a1 3c22033c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -187,7 +187,7 @@ public:
ANDROID_TRIVIAL_MOVE_TRAIT(String16)

static inline std::ostream& operator<<(std::ostream& os, const String16& str) {
    os << String8(str).c_str();
    os << String8(str);
    return os;
}

+7 −1
Original line number Diff line number Diff line
@@ -17,7 +17,8 @@
#ifndef ANDROID_STRING8_H
#define ANDROID_STRING8_H

#include <string> // for std::string
#include <iostream>
#include <string>

#include <utils/Errors.h>
#include <utils/Unicode.h>
@@ -232,6 +233,11 @@ private:
// require any change to the underlying SharedBuffer contents or reference count.
ANDROID_TRIVIAL_MOVE_TRAIT(String8)

static inline std::ostream& operator<<(std::ostream& os, const String8& str) {
    os << str.c_str();
    return os;
}

// ---------------------------------------------------------------------------
// No user servicable parts below.