Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Public Member Functions | Static Public Attributes
Charmap Class Reference

#include <charmap.h>

Public Member Functions

 Charmap (const char *, const char *, bool, bool, bool, bool)
 
const std::map< std::string, unsigned char > & get_n_cmap () const
 
const std::map< unsigned char, std::string > & get_rn_cmap () const
 
const std::map< std::string, wchar_t > & get_w_cmap () const
 
const std::map< wchar_t, std::string > & get_rw_cmap () const
 
const std::map< std::string, wchar_t > & get_mb_cmap () const
 
const std::map< wchar_t, std::string > & get_rmb_cmap () const
 
const std::list< std::string > & get_symnames_list () const
 
const std::map< std::string, wchar_t > & get_ucs4_cmap () const
 
const std::map< wchar_t, std::string > & get_rucs4_cmap () const
 
int get_mb_cur_max () const
 
const std::string & get_code_set_name () const
 
std::string get_charmap_name () const
 
std::string get_full_charmap_name () const
 
bool convert_to_wc (const std::string &, const std::string &, wchar_t &)
 
bool convert_to_ucs (const std::string &, const std::string &, wchar_t &)
 
wchar_t convert_sym_to_ucs (const std::string &) const
 
std::size_t mbcharlen (const std::string &) const
 
unsigned char convert_char (const char *, const char **=0) const
 
unsigned char get_largest_nchar () const
 
wchar_t increment_wchar (wchar_t) const
 

Static Public Attributes

static const char *const portable_charset []
 

Detailed Description

charmap.h

$Id$

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you 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.

Copyright 2001-2007 Rogue Wave Software, Inc.

Definition at line 45 of file charmap.h.

Constructor & Destructor Documentation

◆ Charmap()

Charmap::Charmap ( const char *  Clocale,
const char *  fname,
bool  in_utf8,
bool  create_forward_maps,
bool  create_reverse_maps,
bool  use_UCS4 
)

Definition at line 993 of file charmap.cpp.

Member Function Documentation

◆ convert_char()

unsigned char Charmap::convert_char ( const char *  ,
const char **  = 0 
) const

◆ convert_sym_to_ucs()

wchar_t Charmap::convert_sym_to_ucs ( const std::string &  sym) const

Definition at line 640 of file charmap.cpp.

◆ convert_to_ucs()

bool Charmap::convert_to_ucs ( const std::string &  sym_name,
const std::string &  encoding,
wchar_t &  wc 
)

Definition at line 664 of file charmap.cpp.

◆ convert_to_wc()

bool Charmap::convert_to_wc ( const std::string &  sym_name,
const std::string &  ext_enc,
wchar_t &  wc 
)

Definition at line 394 of file charmap.cpp.

◆ get_charmap_name()

std::string Charmap::get_charmap_name ( ) const

Definition at line 475 of file charmap.cpp.

◆ get_code_set_name()

const std::string & Charmap::get_code_set_name ( ) const
inline

Definition at line 112 of file charmap.h.

◆ get_full_charmap_name()

std::string Charmap::get_full_charmap_name ( ) const
inline

Definition at line 120 of file charmap.h.

◆ get_largest_nchar()

unsigned char Charmap::get_largest_nchar ( ) const

◆ get_mb_cmap()

const std::map< std::string, wchar_t > & Charmap::get_mb_cmap ( ) const
inline

Definition at line 83 of file charmap.h.

◆ get_mb_cur_max()

int Charmap::get_mb_cur_max ( ) const
inline

Definition at line 107 of file charmap.h.

◆ get_n_cmap()

const std::map< std::string, unsigned char > & Charmap::get_n_cmap ( ) const
inline

Definition at line 59 of file charmap.h.

◆ get_rmb_cmap()

const std::map< wchar_t, std::string > & Charmap::get_rmb_cmap ( ) const
inline

Definition at line 89 of file charmap.h.

◆ get_rn_cmap()

const std::map< unsigned char, std::string > & Charmap::get_rn_cmap ( ) const
inline

Definition at line 65 of file charmap.h.

◆ get_rucs4_cmap()

const std::map< wchar_t, std::string > & Charmap::get_rucs4_cmap ( ) const
inline

Definition at line 102 of file charmap.h.

◆ get_rw_cmap()

const std::map< wchar_t, std::string > & Charmap::get_rw_cmap ( ) const
inline

Definition at line 77 of file charmap.h.

◆ get_symnames_list()

const std::list< std::string > & Charmap::get_symnames_list ( ) const
inline

Definition at line 94 of file charmap.h.

◆ get_ucs4_cmap()

const std::map< std::string, wchar_t > & Charmap::get_ucs4_cmap ( ) const
inline

Definition at line 98 of file charmap.h.

◆ get_w_cmap()

const std::map< std::string, wchar_t > & Charmap::get_w_cmap ( ) const
inline

Definition at line 71 of file charmap.h.

◆ increment_wchar()

wchar_t Charmap::increment_wchar ( wchar_t  val) const

Definition at line 486 of file charmap.cpp.

◆ mbcharlen()

std::size_t Charmap::mbcharlen ( const std::string &  str) const

Definition at line 241 of file charmap.cpp.

Field Documentation

◆ portable_charset

const char *const Charmap::portable_charset
static

Definition at line 260 of file charmap.h.


The documentation for this class was generated from the following files: