blob: 5cb518ff1d51f47e12d55f5e58de2c87b712feb9 [file] [log] [blame]
// Copyright 2010 Google Inc. All Rights Reserved.
// Use of this source code is governed by an Apache-style license that can be
// found in the COPYING file.
//
// String manipulation functions used in the RLZ library.
#ifndef RLZ_LIB_STRING_UTILS_H_
#define RLZ_LIB_STRING_UTILS_H_
#include <string>
namespace rlz_lib {
bool IsAscii(char letter);
bool BytesToString(const unsigned char* data,
int data_len,
std::string* string);
bool GetHexValue(char letter, int* value);
int HexStringToInteger(const char* text);
}; // namespace
#endif // RLZ_LIB_STRING_UTILS_H_