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

Go to the source code of this file.

Macros

#define OpPlus(which)   StringIds::op_plus_ ## which
 
#define TEST(str, src, res, bthrow)
 
#define TEST(str, src, res, bthrow)
 
#define TEST(str, src, res, bthrow)
 
#define TEST(arg, val, res)
 
#define TEST(val, arg, res)
 
#define TEST(tag)
 

Functions

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

Macro Definition Documentation

◆ OpPlus

#define OpPlus (   which)    StringIds::op_plus_ ## which

21.string.op.plus.cpp - test exercising [lib.string::op+]

$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.op.plus.cpp.

◆ TEST [1/6]

#define TEST (   arg,
  val,
  res 
)
Value:
{ __LINE__, -1, -1, -1, -1, val, \
0, 0, arg, sizeof arg - 1, \
res, sizeof res - 1, 0 \
}
#define res
Definition 17.names.cpp:531
#define val
Definition 17.names.cpp:570
int arg
Definition locale.cpp:2806

◆ TEST [2/6]

#define TEST (   str,
  src,
  res,
  bthrow 
)
Value:
{ __LINE__, -1, -1, -1, -1, -1, \
str, sizeof str - 1, src, sizeof src - 1, \
res, sizeof res - 1, bthrow \
}
const char * str
Definition exec.cpp:170

◆ TEST [3/6]

#define TEST (   str,
  src,
  res,
  bthrow 
)
Value:
{ __LINE__, -1, -1, -1, -1, -1, \
str, sizeof str - 1, src, sizeof src - 1, \
res, sizeof res - 1, bthrow \
}

◆ TEST [4/6]

#define TEST (   str,
  src,
  res,
  bthrow 
)
Value:
{ __LINE__, -1, -1, -1, -1, -1, \
str, sizeof str - 1, src, sizeof src - 1, \
res, sizeof res - 1, bthrow \
}

◆ TEST [5/6]

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

◆ TEST [6/6]

#define TEST (   val,
  arg,
  res 
)
Value:
{ __LINE__, -1, -1, -1, -1, val, \
"", 0, arg, sizeof arg - 1, \
res, sizeof res - 1, 0 \
}

Function Documentation

◆ DEFINE_STRING_TEST_DISPATCH()

DEFINE_STRING_TEST_DISPATCH ( test_op_plus  )

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 594 of file 21.string.op.plus.cpp.

◆ test_op_plus()

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

Definition at line 345 of file 21.string.op.plus.cpp.