chromium/third_party/libphonenumber/dist/cpp/src/phonenumbers/utf/unilib.cc

/**
 * Copyright 2010 Google Inc.
 *
 * 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.
 */

// Author: Shawn Ligocki

#include "phonenumbers/utf/unilib.h"

#include "phonenumbers/base/basictypes.h"
#include "phonenumbers/utf/utf.h"

namespace i18n {
namespace phonenumbers {
namespace UniLib {

namespace {

// MOE: start_strip
// MOE: end_strip
// Codepoints not allowed for interchange are:
//   C0 (ASCII) controls: U+0000 to U+001F excluding Space (SP, U+0020),
//       Horizontal Tab (HT, U+0009), Line-Feed (LF, U+000A),
//       Form Feed (FF, U+000C) and Carriage-Return (CR, U+000D)
//   C1 controls: U+007F to U+009F
//   Surrogates: U+D800 to U+DFFF
//   Non-characters: U+FDD0 to U+FDEF and U+xxFFFE to U+xxFFFF for all xx
inline bool IsInterchangeValidCodepoint(char32 c) {}

}  // namespace

int SpanInterchangeValid(const char* begin, int byte_length) {}

}  // namespace UniLib
}  // namespace phonenumbers
}  // namespace i18n