chromium/third_party/icu/source/i18n/csrucode.cpp

// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
 **********************************************************************
 *   Copyright (C) 2005-2013, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 **********************************************************************
 */

#include "unicode/utypes.h"

#if !UCONFIG_NO_CONVERSION

#include "csrucode.h"
#include "csmatch.h"

U_NAMESPACE_BEGIN

CharsetRecog_Unicode::~CharsetRecog_Unicode()
{}

CharsetRecog_UTF_16_BE::~CharsetRecog_UTF_16_BE()
{}

const char *CharsetRecog_UTF_16_BE::getName() const
{}

// UTF-16 confidence calculation. Very simple minded, but better than nothing.
//   Any 8 bit non-control characters bump the confidence up. These have a zero high byte,
//     and are very likely to be UTF-16, although they could also be part of a UTF-32 code.
//   NULs are a contra-indication, they will appear commonly if the actual encoding is UTF-32.
//   NULs should be rare in actual text. 

static int32_t adjustConfidence(char16_t codeUnit, int32_t confidence) {}


UBool CharsetRecog_UTF_16_BE::match(InputText* textIn, CharsetMatch *results) const
{}

CharsetRecog_UTF_16_LE::~CharsetRecog_UTF_16_LE()
{}

const char *CharsetRecog_UTF_16_LE::getName() const
{}

UBool CharsetRecog_UTF_16_LE::match(InputText* textIn, CharsetMatch *results) const
{}

CharsetRecog_UTF_32::~CharsetRecog_UTF_32()
{}

UBool CharsetRecog_UTF_32::match(InputText* textIn, CharsetMatch *results) const
{}

CharsetRecog_UTF_32_BE::~CharsetRecog_UTF_32_BE()
{}

const char *CharsetRecog_UTF_32_BE::getName() const
{}

int32_t CharsetRecog_UTF_32_BE::getChar(const uint8_t *input, int32_t index) const
{} 

CharsetRecog_UTF_32_LE::~CharsetRecog_UTF_32_LE()
{}

const char *CharsetRecog_UTF_32_LE::getName() const
{}

int32_t CharsetRecog_UTF_32_LE::getChar(const uint8_t *input, int32_t index) const
{}

U_NAMESPACE_END
#endif