summaryrefslogtreecommitdiff
path: root/include/utils/String16.h
diff options
context:
space:
mode:
authorSergio Giro <sgiro@google.com>2015-09-23 17:15:12 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-09-23 17:15:12 +0000
commitc565bdb67b801fe2b4965b44e53dccfd9097993c (patch)
treefae97afa559ac30497bf7b5d1df2009236f8dde7 /include/utils/String16.h
parentec22417993d2a9a98ee957ffc7cd4af95debb546 (diff)
parentf777655d85af3aefa4a1683f289da1ec67988330 (diff)
am f777655d: resolved conflicts for 6ee734cf to stage-aosp-master
* commit 'f777655d85af3aefa4a1683f289da1ec67988330': libutils: hide SharedBuffer by moving SharedBuffer.h to the implementation directory
Diffstat (limited to 'include/utils/String16.h')
-rw-r--r--include/utils/String16.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/include/utils/String16.h b/include/utils/String16.h
index d131bfc6a..b2ab5dc11 100644
--- a/include/utils/String16.h
+++ b/include/utils/String16.h
@@ -18,7 +18,6 @@
#define ANDROID_STRING16_H
#include <utils/Errors.h>
-#include <utils/SharedBuffer.h>
#include <utils/Unicode.h>
#include <utils/TypeHelpers.h>
@@ -34,6 +33,7 @@ namespace android {
// ---------------------------------------------------------------------------
+class SharedBuffer;
class String8;
class TextOutput;
@@ -64,10 +64,10 @@ public:
~String16();
inline const char16_t* string() const;
- inline size_t size() const;
- inline const SharedBuffer* sharedBuffer() const;
+ const SharedBuffer* sharedBuffer() const;
+ size_t size() const;
void setTo(const String16& other);
status_t setTo(const char16_t* other);
status_t setTo(const char16_t* other, size_t len);
@@ -144,16 +144,6 @@ inline const char16_t* String16::string() const
return mString;
}
-inline size_t String16::size() const
-{
- return SharedBuffer::sizeFromData(mString)/sizeof(char16_t)-1;
-}
-
-inline const SharedBuffer* String16::sharedBuffer() const
-{
- return SharedBuffer::bufferFromData(mString);
-}
-
inline String16& String16::operator=(const String16& other)
{
setTo(other);