Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Macros | Functions | Variables
21.strings.cpp File Reference
#include <memory>
#include <string>
#include <rw_strings.h>
#include <rw_cmdopt.h>
#include <rw_driver.h>
#include <rw_allocator.h>
#include <rw_char.h>
#include <rw_printf.h>
#include <ctype.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for 21.strings.cpp:

Go to the source code of this file.

Macros

#define _RWSTD_TEST_SRC
 

Functions

_TEST_EXPORT void rw_setvars (const StringFunc &func, const StringTestCase *pcase)
 
_RWSTD_INTERNAL StringTestCase _rw_reverse_results (const StringTestCase &tsrc, size_t off, size_t ext)
 
template<class charT , class Traits , class Allocator >
void _rw_dispatch (charT *, Traits *, Allocator *, VoidFunc *const *farray, const StringFunc &func, const StringTestCase &tcase)
 
template<class charT , class Traits >
void _rw_dispatch (charT *, Traits *, VoidFunc *const *farray, const StringFunc &func, const StringTestCase &tcase)
 
template<class charT >
void _rw_dispatch (charT *, VoidFunc *const *farray, const StringFunc &func, const StringTestCase &tcase)
 
_TEST_EXPORT int rw_run_string_test (int argc, char *argv[], const char *file, const char *clause, StringTestFunc *callback, const StringTest *tests, size_t count)
 
_TEST_EXPORT int rw_run_string_test (int argc, char *argv[], const char *file, const char *clause, VoidFunc *const *farray, const StringTest *tests, size_t count)
 

Variables

const size_t MAX_OVERLOADS = 32
 

Macro Definition Documentation

◆ _RWSTD_TEST_SRC

#define _RWSTD_TEST_SRC

21.strings.cpp - definitions of helpers used in clause 21 tests

$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.

Definition at line 28 of file 21.strings.cpp.

Function Documentation

◆ _rw_dispatch() [1/3]

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

Definition at line 1120 of file 21.strings.cpp.

◆ _rw_dispatch() [2/3]

template<class charT , class Traits >
void _rw_dispatch ( charT *  ,
Traits *  ,
VoidFunc *const *  farray,
const StringFunc &  func,
const StringTestCase &  tcase 
)

Definition at line 1173 of file 21.strings.cpp.

◆ _rw_dispatch() [3/3]

template<class charT >
void _rw_dispatch ( charT *  ,
VoidFunc *const *  farray,
const StringFunc &  func,
const StringTestCase &  tcase 
)

Definition at line 1194 of file 21.strings.cpp.

◆ _rw_reverse_results()

_RWSTD_INTERNAL StringTestCase _rw_reverse_results ( const StringTestCase &  tsrc,
size_t  off,
size_t  ext 
)

Definition at line 1087 of file 21.strings.cpp.

◆ rw_run_string_test() [1/2]

_TEST_EXPORT int rw_run_string_test ( int  argc,
char *  argv[],
const char *  file,
const char *  clause,
StringTestFunc *  callback,
const StringTest *  tests,
size_t  count 
)

Definition at line 1688 of file 21.strings.cpp.

◆ rw_run_string_test() [2/2]

_TEST_EXPORT int rw_run_string_test ( int  argc,
char *  argv[],
const char *  file,
const char *  clause,
VoidFunc *const *  farray,
const StringTest *  tests,
size_t  count 
)

Definition at line 1701 of file 21.strings.cpp.

◆ rw_setvars()

_TEST_EXPORT void rw_setvars ( const StringFunc &  func,
const StringTestCase *  pcase 
)

Definition at line 409 of file 21.strings.cpp.

Variable Documentation

◆ MAX_OVERLOADS

const size_t MAX_OVERLOADS = 32

Definition at line 97 of file 21.strings.cpp.