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

Commit 3b9b60c7 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "String16: operator<<" am: 824418c3 am: fddc5b2f

Change-Id: I368465a5a8865ea056a865bc08b77fc03c17175b
parents 33875834 fddc5b2f
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -17,7 +17,8 @@
#ifndef ANDROID_STRING16_H
#define ANDROID_STRING16_H

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

#include <utils/Errors.h>
#include <utils/String8.h>
@@ -195,6 +196,11 @@ public:
// require any change to the underlying SharedBuffer contents or reference count.
ANDROID_TRIVIAL_MOVE_TRAIT(String16)

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

// ---------------------------------------------------------------------------

/*