History log of /system/core/include/utils/String16.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4485d0d966d062d1b45b635e2447a2d2f96c3f38 09-May-2013 Mathias Agopian <mathias@google.com> new String8, String16 ctors to initialize empty static strings with static linkage

when libutils is statically linked, the ordering of the static
initializer is not guaranteed and therefore it's unsafe to use
empty static strings: e.g.:

static String8 sThisStaticStringIsNotSafe;

instead, this new constructor can be used:

static String8 sThisStaticStringIsSafe(kEmptyString);

Change-Id: Ia3daf1cab1c97d021c0ee9c2b394b5e27e8d6c0d
/system/core/include/utils/String16.h
9eb2a3b1c0cc1ff3082a9283e24c8babc112f56b 07-May-2013 Mathias Agopian <mathias@google.com> libutils clean-up

Change-Id: I6ff4cfc736751de2912c697f954e45e275f2d386
/system/core/include/utils/String16.h
9a0a76df1e961ef4621e81814d8bf891a09bef66 16-Mar-2012 Jeff Brown <jeffbrown@google.com> Add traits to common utils data structures.

Many of our basic data structures are trivially movable using
memcpy() even if they are not trivially constructable, destructable
or copyable. It's worth taking advantage of this *ahem* trait.

Adding trivial_move_trait to String16 reduces appt running
time on frameworks/base/core/res by 40%!

Change-Id: I630a1a027e2d0ded96856e4ca042ea82906289fe
/system/core/include/utils/String16.h
9ee3fc4dc3219bc68f2efdffa38d6dfc158d8961 17-Aug-2011 Josiah Gaskin <josiahgaskin@google.com> Fix String16 operator+ to actually work

This change fixes the String16 utility's operator+ function.

Change-Id: Ibed7b07277b50bf178febc72b6ce497893e66f17
/system/core/include/utils/String16.h
ba0165bef09729a33ab8e0ca329342be05e0d859 09-Nov-2010 Kenny Root <kroot@google.com> Split UTF functions from String8/16

Split out all the UTF-8/16/32 handling code from String8/16 to its own
file to allow better reuse of code.

Change-Id: If9ce63920edc75472c38da4adce0d13cda9ad2f7
/system/core/include/utils/String16.h
9d589aa0d63e1eb088b10f065ee7fb0765d2e285 21-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> Revert "Add length-equality test in String operator== checks."

This reverts commit e28210d401ae4ed1258b84c9b17a172a757190e8.
/system/core/include/utils/String16.h
2881c85e38c662050e9635c6ff3861a3be09674f 20-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> Add length-equality test in String operator== checks.

Change-Id: I6ebc6ef85aac4539269f137c1f29f95b9828d4f9
/system/core/include/utils/String16.h
9a2d83e698b16ec86ad2751b6e7cf103ad645cce 04-Dec-2009 Kenny Root <kroot@google.com> Optional use of UTF-8 strings in resource bundles

Allows the use of UTF-8 for packing resources instead of the
default of UTF-16 for Java. When strings are extracted from the
ResStringPool, they are converted to UTF-16 and the result is
cached for subsequent calls.

When using aapt to package, add in the "-8" switch to pack the
resources using UTF-8. This will result in the value, key, and
type strings as well as the compiled XML string values taking
significantly less space in the final application package in
most scenarios.

Change-Id: I129483f8b3d3b1c5869dced05cb525e494a6c83a
/system/core/include/utils/String16.h
cbb1011c95e0c25c29e40e203a6a31bccd029da3 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/system/core/include/utils/String16.h
cf59fa8dc7ddca5a172860223b06afed5d4ec0e0 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/system/core/include/utils/String16.h
d245d1d09731d6a19e8a25559d3907f54441ac3d 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/system/core/include/utils/String16.h