linux/fs/smb/client/winucase.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *
 * Copyright (c) Jeffrey Layton <[email protected]>, 2013
 *
 * The const tables in this file were converted from the following info
 * provided by Microsoft:
 *
 * 3.1.5.3 Mapping UTF-16 Strings to Upper Case:
 *
 * https://msdn.microsoft.com/en-us/library/hh877830.aspx
 * http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=10921
 *
 * In particular, the table in "Windows 8 Upper Case Mapping Table.txt" was
 * post-processed using the winucase_convert.pl script.
 */

#include <linux/nls.h>

wchar_t cifs_toupper(wchar_t in);  /* quiet sparse */

static const wchar_t t2_00[256] =;

static const wchar_t t2_01[256] =;

static const wchar_t t2_02[256] =;

static const wchar_t t2_03[256] =;

static const wchar_t t2_04[256] =;

static const wchar_t t2_05[256] =;

static const wchar_t t2_1d[256] =;

static const wchar_t t2_1e[256] =;

static const wchar_t t2_1f[256] =;

static const wchar_t t2_21[256] =;

static const wchar_t t2_24[256] =;

static const wchar_t t2_2c[256] =;

static const wchar_t t2_2d[256] =;

static const wchar_t t2_a6[256] =;

static const wchar_t t2_a7[256] =;

static const wchar_t t2_ff[256] =;

static const wchar_t *const toplevel[256] =;

/**
 * cifs_toupper - convert a wchar_t from lower to uppercase
 * @in: character to convert from lower to uppercase
 *
 * This function consults the static tables above to convert a wchar_t from
 * lower to uppercase. In the event that there is no mapping, the original
 * "in" character is returned.
 */
wchar_t
cifs_toupper(wchar_t in)
{}