chromium/third_party/libphonenumber/dist/cpp/src/phonenumbers/base/strings/string_piece.cc

// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Copied from strings/stringpiece.cc with modifications

#include <algorithm>
#include <ostream>

#include "phonenumbers/base/strings/string_piece.h"

namespace i18n {
namespace phonenumbers {

size_type;

std::ostream& operator<<(std::ostream& o, const StringPiece& piece) {}

bool operator==(const StringPiece& x, const StringPiece& y) {}

void StringPiece::CopyToString(std::string* target) const {}

void StringPiece::AppendToString(std::string* target) const {}

size_type StringPiece::copy(char* buf, size_type n, size_type pos) const {}

size_type StringPiece::find(const StringPiece& s, size_type pos) const {}

size_type StringPiece::find(char c, size_type pos) const {}

size_type StringPiece::rfind(const StringPiece& s, size_type pos) const {}

size_type StringPiece::rfind(char c, size_type pos) const {}

// For each character in characters_wanted, sets the index corresponding
// to the ASCII code of that character to 1 in table.  This is used by
// the find_.*_of methods below to tell whether or not a character is in
// the lookup table in constant time.
// The argument `table' must be an array that is large enough to hold all
// the possible values of an unsigned char.  Thus it should be be declared
// as follows:
//   bool table[UCHAR_MAX + 1]
static inline void BuildLookupTable(const StringPiece& characters_wanted,
                                    bool* table) {}

size_type StringPiece::find_first_of(const StringPiece& s,
                                     size_type pos) const {}

size_type StringPiece::find_first_not_of(const StringPiece& s,
                                         size_type pos) const {}

size_type StringPiece::find_first_not_of(char c, size_type pos) const {}

size_type StringPiece::find_last_of(const StringPiece& s, size_type pos) const {}

size_type StringPiece::find_last_not_of(const StringPiece& s,
                                        size_type pos) const {}

size_type StringPiece::find_last_not_of(char c, size_type pos) const {}

StringPiece StringPiece::substr(size_type pos, size_type n) const {}

const StringPiece::size_type StringPiece::npos =;

}  // namespace phonenumbers
}  // namespace i18n