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

Go to the source code of this file.

Macros

#define TEST_FUNCTION(name)
 
#define APPEND(bit)
 
#define LETTER(bits)   bit_alpha | bit_alnum | bit_print | bit_graph | bits
 
#define TEST(function)
 

Enumerations

enum  {
  bit_alnum = 1 , bit_alpha = 1 << 1 , bit_cntrl = 1 << 2 , bit_digit = 1 << 3 ,
  bit_graph = 1 << 4 , bit_lower = 1 << 5 , bit_print = 1 << 6 , bit_punct = 1 << 7 ,
  bit_space = 1 << 8 , bit_upper = 1 << 9 , bit_xdigit = 1 << 10
}
 

Functions

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

Variables

const char *const cctype_macros []
 
int function_called
 

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

◆ TEST

#define TEST (   function)
Value:
do { \
rw_info (0, 0, 0, "%s(int) definition", #function); \
function (function_called = 1); \
rw_assert (1 == function_called, 0, __LINE__, \
"%s (int) not defined", #function); \
} while (0)
int function_called

◆ TEST_FUNCTION

#define TEST_FUNCTION (   name)
Value:
template <class T> int name (T) { function_called = 0; return 0; } \
typedef void rw_unused_typedef
#define T
Definition 17.names.cpp:163
const char * name
Definition codecvt1.cpp:72

Definition at line 124 of file 21.cctype.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
bit_alnum 
bit_alpha 
bit_cntrl 
bit_digit 
bit_graph 
bit_lower 
bit_print 
bit_punct 
bit_space 
bit_upper 
bit_xdigit 

Definition at line 148 of file 21.cctype.cpp.

Function Documentation

◆ _RWSTD_NAMESPACE()

_RWSTD_NAMESPACE ( std  )

Definition at line 130 of file 21.cctype.cpp.

◆ main()

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

Definition at line 692 of file 21.cctype.cpp.

Variable Documentation

◆ cctype_macros

const char* const cctype_macros[]

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

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

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

◆ function_called

int function_called

Definition at line 128 of file 21.cctype.cpp.