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

Go to the source code of this file.

Macros

#define At(sig)   StringIds::at_ ## sig
 
#define OpIndex(sig)   StringIds::op_index_ ## sig
 
#define TEST(str, off, res)
 
#define TEST(str, off, res)
 
#define at_const_size_test_cases   at_size_test_cases
 
#define TEST(str, off, res, bthrow)
 
#define TEST(sig)
 

Functions

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

Macro Definition Documentation

◆ At

#define At (   sig)    StringIds::at_ ## sig

21.string.access.cpp - test exercising [lib.string.access]

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

◆ at_const_size_test_cases

#define at_const_size_test_cases   at_size_test_cases

◆ OpIndex

#define OpIndex (   sig)    StringIds::op_index_ ## sig

Definition at line 42 of file 21.string.access.cpp.

◆ TEST [1/4]

#define TEST (   sig)
Value:
{ \
StringIds::sig, sig ## _test_cases, \
sizeof sig ## _test_cases / sizeof *sig ## _test_cases \
}

◆ TEST [2/4]

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

◆ TEST [3/4]

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

◆ TEST [4/4]

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

Function Documentation

◆ DEFINE_STRING_TEST_DISPATCH()

DEFINE_STRING_TEST_DISPATCH ( test_access  )

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 318 of file 21.string.access.cpp.

◆ test_access()

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

Definition at line 207 of file 21.string.access.cpp.