Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Typedefs | Functions | Variables
21.string.exceptions.cpp File Reference
#include <cassert>
#include <cstddef>
#include <stdexcept>
#include <string>
#include <rw_driver.h>
#include <rw_new.h>
Include dependency graph for 21.string.exceptions.cpp:

Go to the source code of this file.

Typedefs

typedef int Char
 
typedef std::char_traits< Char > CharTraits
 
typedef std::allocator< Char > CharAllocator
 
typedef std::basic_string< Char, CharTraits, CharAllocator > String
 

Functions

 _RWSTD_NAMESPACE (std)
 
void user_throw (int ex_id, char *what)
 
int main (int argc, char *argv[])
 

Variables

const Char s []
 
const String s0 (s)
 

Typedef Documentation

◆ Char

typedef int Char

21.string.exceptions.cpp - test string members that throw exceptions

$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-2008 Rogue Wave Software.

Definition at line 54 of file 21.string.exceptions.cpp.

◆ CharAllocator

typedef std::allocator<Char> CharAllocator

Definition at line 57 of file 21.string.exceptions.cpp.

◆ CharTraits

typedef std::char_traits<Char> CharTraits

Definition at line 56 of file 21.string.exceptions.cpp.

◆ String

typedef std::basic_string<Char, CharTraits, CharAllocator> String

Definition at line 59 of file 21.string.exceptions.cpp.

Function Documentation

◆ _RWSTD_NAMESPACE()

_RWSTD_NAMESPACE ( std  )

Definition at line 62 of file 21.string.exceptions.cpp.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 821 of file 21.string.exceptions.cpp.

◆ user_throw()

void user_throw ( int  ex_id,
char *  what 
)

Definition at line 85 of file 21.string.exceptions.cpp.

Variable Documentation

◆ s

const Char s[]
Initial value:
= {
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'a', 'b', 'c', 'd', 'e', 'f', '\0'
}

Definition at line 154 of file 21.string.exceptions.cpp.

◆ s0

const String s0(s) ( s  )