chromium/v8/src/strings/char-predicates-inl.h

// Copyright 2011 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef V8_STRINGS_CHAR_PREDICATES_INL_H_
#define V8_STRINGS_CHAR_PREDICATES_INL_H_

#include "src/base/bounds.h"
#include "src/strings/char-predicates.h"
#include "src/utils/utils.h"

namespace v8 {
namespace internal {

// If c is in 'A'-'Z' or 'a'-'z', return its lower-case.
// Else, return something outside of 'A'-'Z' and 'a'-'z'.
// Note: it ignores LOCALE.
inline constexpr int AsciiAlphaToLower(base::uc32 c) {}

inline constexpr bool IsCarriageReturn(base::uc32 c) {}

inline constexpr bool IsLineFeed(base::uc32 c) {}

inline constexpr bool IsAsciiIdentifier(base::uc32 c) {}

inline constexpr bool IsAlphaNumeric(base::uc32 c) {}

inline constexpr bool IsDecimalDigit(base::uc32 c) {}

inline constexpr bool IsHexDigit(base::uc32 c) {}

inline constexpr bool IsOctalDigit(base::uc32 c) {}

inline constexpr bool IsNonOctalDecimalDigit(base::uc32 c) {}

inline constexpr bool IsBinaryDigit(base::uc32 c) {}

inline constexpr bool IsAsciiLower(base::uc32 c) {}

inline constexpr bool IsAsciiUpper(base::uc32 c) {}

inline constexpr base::uc32 ToAsciiUpper(base::uc32 c) {}

inline constexpr base::uc32 ToAsciiLower(base::uc32 c) {}

inline constexpr bool IsRegExpWord(base::uc32 c) {}

// Constexpr cache table for character flags.
enum OneByteCharFlags {};

// See http://www.unicode.org/Public/UCD/latest/ucd/DerivedCoreProperties.txt
// ID_Start. Additionally includes '_' and '$'.
constexpr bool IsOneByteIDStart(base::uc32 c) {}

// See http://www.unicode.org/Public/UCD/latest/ucd/DerivedCoreProperties.txt
// ID_Continue. Additionally includes '_' and '$'.
constexpr bool IsOneByteIDContinue(base::uc32 c) {}

constexpr bool IsOneByteWhitespace(base::uc32 c) {}

constexpr uint8_t BuildOneByteCharFlags(base::uc32 c) {}
const constexpr uint8_t kOneByteCharFlags[256] =;

bool IsIdentifierStart(base::uc32 c) {}

bool IsIdentifierPart(base::uc32 c) {}

bool IsWhiteSpace(base::uc32 c) {}

bool IsWhiteSpaceOrLineTerminator(base::uc32 c) {}

bool IsLineTerminatorSequence(base::uc32 c, base::uc32 next) {}

}  // namespace internal

}  // namespace v8

#endif  // V8_STRINGS_CHAR_PREDICATES_INL_H_