Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Macros | Functions
21.string.find.last.not.of.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.find.last.not.of.cpp:

Go to the source code of this file.

Macros

#define FindLastNotOf(sig)   StringIds::find_last_not_of_ ## sig
 
#define TEST(str, arg, res)
 
#define TEST(str, arg, res)
 
#define TEST(str, arg, off, res)
 
#define TEST(str, arg, off, size, res, bthrow)
 
#define TEST(str, arg, off, res)
 
#define TEST(str, val, res)
 
#define TEST(str, val, off, res)
 
#define TEST(sig)
 

Functions

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

Macro Definition Documentation

◆ FindLastNotOf

#define FindLastNotOf (   sig)    StringIds::find_last_not_of_ ## sig

21.string.find.last.not.of.cpp - string test exercising lib.string.find.last.not.of

$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 42 of file 21.string.find.last.not.of.cpp.

◆ TEST [1/8]

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

◆ TEST [2/8]

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

◆ TEST [3/8]

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

◆ TEST [4/8]

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

◆ TEST [5/8]

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

◆ TEST [6/8]

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

◆ TEST [7/8]

#define TEST (   str,
  val,
  off,
  res 
)
Value:
{ __LINE__, off, -1, -1, -1, \
val, str, sizeof str - 1, \
0, 0, 0, res, 0 \
}
#define val
Definition 17.names.cpp:570

◆ TEST [8/8]

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

Function Documentation

◆ DEFINE_STRING_TEST_DISPATCH()

DEFINE_STRING_TEST_DISPATCH ( test_find_last_not_of  )

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 766 of file 21.string.find.last.not.of.cpp.

◆ test_find_last_not_of()

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

Definition at line 616 of file 21.string.find.last.not.of.cpp.