chromium/third_party/cld_3/src/src/utils.cc

/* Copyright 2016 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/

#include "utils.h"

#include <ctype.h>
#include <stdlib.h>

#include "script_span/stringpiece.h"

namespace chrome_lang_id {
namespace utils {

bool ParseInt32(const char *c_str, int *value) {}

bool ParseDouble(const char *c_str, double *value) {}

static char hex_char[] =;

string CEscape(const string &src) {}

std::vector<string> Split(const string &text, char delim) {}

int RemoveLeadingWhitespace(StringPiece *text) {}

int RemoveTrailingWhitespace(StringPiece *text) {}

int RemoveWhitespaceContext(StringPiece *text) {}

namespace {
// Lower-level versions of Get... that read directly from a character buffer
// without any bounds checking.
inline uint32 DecodeFixed32(const char *ptr) {}

// 0xff is in case char is signed.
static inline uint32 ByteAs32(char c) {}
}  // namespace

uint32 Hash32(const char *data, size_t n, uint32 seed) {}

uint32 Hash32WithDefaultSeed(const string &input) {}

PunctuationUtil::CharacterRange PunctuationUtil::kPunctuation[] =;

void NormalizeDigits(string *form) {}

void GetUTF8Chars(const string &text, std::vector<string> *chars) {}

int UTF8FirstLetterNumBytes(const char *utf8_str) {}

int OneCharLen(const char *src) {}

}  // namespace utils
}  // namespace chrome_lang_id