diff options
author | Ian Rogers <irogers@google.com> | 2014-06-06 15:58:22 -0700 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2014-06-06 16:27:45 -0700 |
commit | 576ca0cd692c0b6ae70e776de91015b8ff000a08 (patch) | |
tree | de632fae7ee9f096e7a2c54a7fcdace8f6ae7106 /runtime/utils.h | |
parent | e21bf0099117b82963cdf7f95a1b8dabfcf29397 (diff) | |
download | art-576ca0cd692c0b6ae70e776de91015b8ff000a08.tar.gz art-576ca0cd692c0b6ae70e776de91015b8ff000a08.tar.bz2 art-576ca0cd692c0b6ae70e776de91015b8ff000a08.zip |
Reduce header files including header files.
Main focus is getting heap.h out of runtime.h.
Change-Id: I8d13dce8512816db2820a27b24f5866cc871a04b
Diffstat (limited to 'runtime/utils.h')
-rw-r--r-- | runtime/utils.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/runtime/utils.h b/runtime/utils.h index 7be5d440c8..6a4198fcfc 100644 --- a/runtime/utils.h +++ b/runtime/utils.h @@ -23,7 +23,6 @@ #include <vector> #include "base/logging.h" -#include "base/stringprintf.h" #include "globals.h" #include "instruction_set.h" #include "primitive.h" @@ -205,17 +204,7 @@ static inline bool NeedsEscaping(uint16_t ch) { return (ch < ' ' || ch > '~'); } -static inline std::string PrintableChar(uint16_t ch) { - std::string result; - result += '\''; - if (NeedsEscaping(ch)) { - StringAppendF(&result, "\\u%04x", ch); - } else { - result += ch; - } - result += '\''; - return result; -} +std::string PrintableChar(uint16_t ch); // Returns an ASCII string corresponding to the given UTF-8 string. // Java escapes are used for non-ASCII characters. |