blob: 9e2fdbae684ef2d2a7852b50843b3c8a5dfbacbb [file]
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// String manipulation functions used in the RLZ library.
#ifndef RLZ_LIB_STRING_UTILS_H_
#define RLZ_LIB_STRING_UTILS_H_
#include <string>
#include "base/containers/span.h"
namespace rlz_lib {
bool IsAscii(unsigned char letter);
bool BytesToString(base::span<uint8_t> data, std::string* string);
bool GetHexValue(char letter, int* value);
int HexStringToInteger(const char* text);
} // namespace rlz_lib
#endif // RLZ_LIB_STRING_UTILS_H_