Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Macros | Functions
21.string.operators.cpp File Reference
#include <string>
#include <stdexcept>
#include <cstddef>
#include <rw_strings.h>
#include <rw_driver.h>
#include <rw_allocator.h>
#include <rw_char.h>
#include <rw_new.h>
Include dependency graph for 21.string.operators.cpp:

Go to the source code of this file.

Macros

#define OpEqual(which)   StringIds::op_equal_ ## which
 
#define OpNotEqual(which)   StringIds::op_not_equal_ ## which
 
#define OpLess(which)   StringIds::op_less_ ## which
 
#define OpLessEqual(which)   StringIds::op_less_equal_ ## which
 
#define OpGreater(which)   StringIds::op_greater_ ## which
 
#define OpGreaterEqual(which)   StringIds::op_greater_equal_ ## which
 
#define TEST(str, arg, res)
 
#define TEST(str, arg, res)
 
#define TEST(str, arg, res)
 
#define TEST(oper, tag)
 

Functions

template<class charT , class Traits , class Allocator >
void test_operators (charT, Traits *, Allocator *, const StringFunc &func, const StringTestCase &tcase)
 
 DEFINE_STRING_TEST_DISPATCH (test_operators)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ OpEqual

#define OpEqual (   which)    StringIds::op_equal_ ## which

21.string.operators.cpp - test exercising [lib.string.nonmembers] except lib.string::op+ and lib.string.io

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

Definition at line 44 of file 21.string.operators.cpp.

◆ OpGreater

#define OpGreater (   which)    StringIds::op_greater_ ## which

Definition at line 48 of file 21.string.operators.cpp.

◆ OpGreaterEqual

#define OpGreaterEqual (   which)    StringIds::op_greater_equal_ ## which

Definition at line 49 of file 21.string.operators.cpp.

◆ OpLess

#define OpLess (   which)    StringIds::op_less_ ## which

Definition at line 46 of file 21.string.operators.cpp.

◆ OpLessEqual

#define OpLessEqual (   which)    StringIds::op_less_equal_ ## which

Definition at line 47 of file 21.string.operators.cpp.

◆ OpNotEqual

#define OpNotEqual (   which)    StringIds::op_not_equal_ ## which

Definition at line 45 of file 21.string.operators.cpp.

◆ TEST [1/4]

#define TEST (   oper,
  tag 
)
Value:
{ \
StringIds::op_ ## oper ## _ ## tag, tag ## _test_cases, \
sizeof tag ## _test_cases / sizeof *tag ## _test_cases \
}
#define tag
Definition 17.names.cpp:551

◆ TEST [2/4]

#define TEST (   str,
  arg,
  res 
)
Value:
{ __LINE__, -1, -1, -1, -1, -1, \
str, sizeof str - 1, arg, sizeof arg - 1, \
0, (std::size_t) res, 0 \
}
#define res
Definition 17.names.cpp:531
const char * str
Definition exec.cpp:170
int arg
Definition locale.cpp:2806

◆ TEST [3/4]

#define TEST (   str,
  arg,
  res 
)
Value:
{ __LINE__, -1, -1, -1, -1, -1, \
str, sizeof str - 1, arg, sizeof arg - 1, \
0, (std::size_t) res, 0 \
}

◆ TEST [4/4]

#define TEST (   str,
  arg,
  res 
)
Value:
{ __LINE__, -1, -1, -1, -1, -1, \
str, sizeof str - 1, arg, sizeof arg - 1, \
0, (std::size_t) res, 0 \
}

Function Documentation

◆ DEFINE_STRING_TEST_DISPATCH()

DEFINE_STRING_TEST_DISPATCH ( test_operators  )

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 588 of file 21.string.operators.cpp.

◆ test_operators()

template<class charT , class Traits , class Allocator >
void test_operators ( charT  ,
Traits *  ,
Allocator *  ,
const StringFunc &  func,
const StringTestCase &  tcase 
)

Definition at line 285 of file 21.string.operators.cpp.