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

Go to the source code of this file.

Macros

#define Copy(which)   StringIds::copy_ ## which
 
#define TEST(str, size, res)
 
#define TEST(str, size, off, res, bthrow)
 
#define TEST(which)
 

Functions

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

Macro Definition Documentation

◆ Copy

#define Copy (   which)    StringIds::copy_ ## which

21.string.copy.cpp - string test exercising [lib.string::copy]

$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 41 of file 21.string.copy.cpp.

◆ TEST [1/3]

#define TEST (   str,
  size,
  off,
  res,
  bthrow 
)
Value:
{ \
__LINE__, off, size, -1, -1, -1, \
str, sizeof str - 1, 0, 0, \
res, sizeof res - 1, bthrow \
}
#define res
Definition 17.names.cpp:531
#define off
Definition 17.names.cpp:507
const char * str
Definition exec.cpp:170

◆ TEST [2/3]

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

◆ TEST [3/3]

#define TEST (   which)
Value:
{ \
Copy (which), which ## _test_cases, \
sizeof which ## _test_cases / sizeof *which ## _test_cases \
}
#define which
Definition 17.names.cpp:575

Function Documentation

◆ DEFINE_STRING_TEST_DISPATCH()

DEFINE_STRING_TEST_DISPATCH ( test_copy  )

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 308 of file 21.string.copy.cpp.

◆ test_copy()

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

Definition at line 161 of file 21.string.copy.cpp.