
The methodology used to generate this CL is documented in https://crbug.com/1098010#c95. No-Try: true No-Presubmit: true Bug: 1098010 Change-Id: Ia865422057bdda8d25f347a651636f6f7f4d4278 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3900694 Owners-Override: Avi Drissman <avi@chromium.org> Commit-Queue: Avi Drissman <avi@chromium.org> Reviewed-by: Mark Mentovai <mark@chromium.org> Auto-Submit: Avi Drissman <avi@chromium.org> Cr-Commit-Position: refs/heads/main@{#1047637}
27 lines
615 B
C++
27 lines
615 B
C++
// 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>
|
|
|
|
namespace rlz_lib {
|
|
|
|
bool IsAscii(unsigned 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 rlz_lib
|
|
|
|
#endif // RLZ_LIB_STRING_UTILS_H_
|