Add ICU message format support
[chromium-blink-merge.git] / rlz / lib / string_utils.h
blob0893a6c169bd35a6a0f29737b817e2216f3e6cf7
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 //
5 // String manipulation functions used in the RLZ library.
7 #ifndef RLZ_LIB_STRING_UTILS_H_
8 #define RLZ_LIB_STRING_UTILS_H_
10 #include <string>
12 namespace rlz_lib {
14 bool IsAscii(unsigned char letter);
16 bool BytesToString(const unsigned char* data,
17 int data_len,
18 std::string* string);
20 bool GetHexValue(char letter, int* value);
22 int HexStringToInteger(const char* text);
24 }; // namespace
26 #endif // RLZ_LIB_STRING_UTILS_H_