Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Data Structures | Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
21.cwctype.cpp File Reference
#include <cwctype>
#include <rw_driver.h>
Include dependency graph for 21.cwctype.cpp:

Go to the source code of this file.

Data Structures

struct  Fallback::wint_t
 
struct  Fallback::wctype_t
 
struct  Fallback::wctrans_t
 

Namespaces

namespace  Fallback
 
namespace  std
 
namespace  std::Nested
 

Macros

#define TEST_FUNCTION(name, ret)
 
#define APPEND(bit)
 
#define LETTER(bits)   bit_alpha | bit_alnum | bit_print | bit_graph | bits
 
#define SET_MASK_BIT(bitno)
 
#define RW_DIAG   rw_warn
 
#define TEST(function)
 

Typedefs

typedef wctrans_t std::Nested::test_wctrans_t
 
typedef wctype_t std::Nested::test_wctype_t
 
typedef std::Nested::test_wint_t test_wint_t
 
typedef std::Nested::test_wctrans_t test_wctrans_t
 
typedef std::Nested::test_wctype_t test_wctype_t
 

Enumerations

enum  {
  bit_alnum = 1 , bit_iswalnum = bit_alnum , bit_alpha = 1 << 1 , bit_iswalpha = bit_alpha ,
  bit_cntrl = 1 << 2 , bit_iswcntrl = bit_cntrl , bit_digit = 1 << 3 , bit_iswdigit = bit_digit ,
  bit_graph = 1 << 4 , bit_iswgraph = bit_graph , bit_lower = 1 << 5 , bit_iswlower = bit_lower ,
  bit_print = 1 << 6 , bit_iswprint = bit_print , bit_punct = 1 << 7 , bit_iswpunct = bit_punct ,
  bit_space = 1 << 8 , bit_iswspace = bit_space , bit_upper = 1 << 9 , bit_iswupper = bit_upper ,
  bit_xdigit = 1 << 10 , bit_iswxdigit = bit_xdigit , bit_towctrans = 1 << 11 , bit_towlower = 1 << 12 ,
  bit_towupper = 1 << 13 , bit_iswctype = 1 << 14 , bit_wctrans = 1 << 16 , bit_wctype = 1 << 17
}
 

Functions

 _RWSTD_NAMESPACE (std)
 
int main (int argc, char *argv[])
 

Variables

const char *const cwctype_macros []
 
const char std_name [] = "std"
 
int missing_set
 

Macro Definition Documentation

◆ APPEND

#define APPEND (   bit)
Value:
if (mask & bit_ ## bit) { \
for (const char *s = #bit; *s; ++s, ++str) \
*str = *s; \
*str++ = '|'; \
} else (void)0
#define s
const char * str
Definition exec.cpp:170

◆ LETTER

#define LETTER (   bits)    bit_alpha | bit_alnum | bit_print | bit_graph | bits

◆ RW_DIAG

#define RW_DIAG   rw_warn

◆ SET_MASK_BIT

#define SET_MASK_BIT (   bitno)
Value:
if (bit_ ## bitno & missing_set) \
mask |= char_mask [i] & bit_ ## bitno; \
else \
mask |= std::isw ## bitno (c) ? bit_ ## bitno : 0; \
#define i
Definition 17.names.cpp:126
#define c
Definition 17.names.cpp:111
int missing_set

◆ TEST

#define TEST (   function)
Value:
do { \
rw_info (0, 0, 0, "%s::%s (%s::wint_t) definition", \
std_name, #function, std_name); \
const int result = std::function (test_wint_t ('a')); \
RW_DIAG (-1 != result && !(missing_set & bit_ ## function), \
0, __LINE__, "%s::%s (%s::wint_t) not defined", \
std_name, #function, std_name); \
} while (0)
volatile int result
std::Nested::test_wint_t test_wint_t
const char std_name[]

◆ TEST_FUNCTION

#define TEST_FUNCTION (   name,
  ret 
)
Value:
template <class T> ret name (T) { \
missing_set |= bit_ ## name; \
return -1; \
} typedef void rw_unused_typedef
#define T
Definition 17.names.cpp:163
const char * name
Definition codecvt1.cpp:72

Definition at line 292 of file 21.cwctype.cpp.

Typedef Documentation

◆ test_wctrans_t

typedef std::Nested::test_wctrans_t test_wctrans_t

Definition at line 218 of file 21.cwctype.cpp.

◆ test_wctype_t

typedef std::Nested::test_wctype_t test_wctype_t

Definition at line 219 of file 21.cwctype.cpp.

◆ test_wint_t

typedef std::Nested::test_wint_t test_wint_t

Definition at line 217 of file 21.cwctype.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
bit_alnum 
bit_iswalnum 
bit_alpha 
bit_iswalpha 
bit_cntrl 
bit_iswcntrl 
bit_digit 
bit_iswdigit 
bit_graph 
bit_iswgraph 
bit_lower 
bit_iswlower 
bit_print 
bit_iswprint 
bit_punct 
bit_iswpunct 
bit_space 
bit_iswspace 
bit_upper 
bit_iswupper 
bit_xdigit 
bit_iswxdigit 
bit_towctrans 
bit_towlower 
bit_towupper 
bit_iswctype 
bit_wctrans 
bit_wctype 

Definition at line 263 of file 21.cwctype.cpp.

Function Documentation

◆ _RWSTD_NAMESPACE()

_RWSTD_NAMESPACE ( std  )

Definition at line 298 of file 21.cwctype.cpp.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 924 of file 21.cwctype.cpp.

Variable Documentation

◆ cwctype_macros

const char* const cwctype_macros[]

21.cwctype.cpp - test exercising clause lib.string.c.strings, header <cwctype>

$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 1994-2005 Rogue Wave Software.

Definition at line 37 of file 21.cwctype.cpp.

◆ missing_set

int missing_set

Definition at line 288 of file 21.cwctype.cpp.

◆ std_name

const char std_name[] = "std"

Definition at line 221 of file 21.cwctype.cpp.