Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Data Structures | Macros | Functions
22.locale.time.get.cpp File Reference
#include <locale>
#include <sstream>
#include <climits>
#include <clocale>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <rw_driver.h>
#include <rw_file.h>
#include <rw_locale.h>
#include <rw_printf.h>
Include dependency graph for 22.locale.time.get.cpp:

Go to the source code of this file.

Data Structures

struct  time_data
 
struct  time_data::era_data
 

Macros

#define Boolalpha   std::ios_base::boolalpha
 
#define Dec   std::ios_base::dec
 
#define Fixed   std::ios_base::fixed
 
#define Hex   std::ios_base::hex
 
#define Internal   std::ios_base::internal
 
#define Left   std::ios_base::left
 
#define Oct   std::ios_base::oct
 
#define Right   std::ios_base::right
 
#define Scientific   std::ios_base::scientific
 
#define Showbase   std::ios_base::showbase
 
#define Showpoint   std::ios_base::showpoint
 
#define Showpos   std::ios_base::showpos
 
#define Skipws   std::ios_base::skipws
 
#define Unitbuf   std::ios_base::unitbuf
 
#define Uppercase   std::ios_base::uppercase
 
#define Bin   std::ios_base::bin
 
#define Adjustfield   std::ios_base::adjustfield
 
#define Basefield   std::ios_base::basefield
 
#define Floatfield   std::ios_base::floatfield
 
#define Nolock   std::ios_base::nolock
 
#define Nolockbuf   std::ios_base::nolockbuf
 
#define Bad   std::ios_base::badbit
 
#define Eof   std::ios_base::eofbit
 
#define Fail   std::ios_base::failbit
 
#define Good   std::ios_base::goodbit
 
#define T   __LINE__, charT (), cname, mktm
 
#define TEST   do_test
 
#define FUNCTION(fun)
 
#define STEP(desc)   rw_info (0, 0, __LINE__, "%s", desc)
 

Functions

template<class charT >
void do_test (int lineno, charT, const char *cname, std::tm val, const char *pat, int consumed, const char *fmt, int flags, int err_expect=-1)
 
std::tm mktm (int sec=0, int min=0, int hour=0, int mday=0, int mon=0, int year=0, int wday=0, int yday=0, int isdst=0)
 
template<class charT >
void test_posix (charT, const char *cname)
 
template<class charT >
void test_english (charT, const char *cname, const char *locname)
 
template<class charT >
void test_german (charT, const char *cname, const char *locname)
 
template<class charT >
void test_danish (charT, const char *cname, const char *locname)
 
template<class charT >
void test_user (charT, const char *cname, const char *locname)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ Adjustfield

#define Adjustfield   std::ios_base::adjustfield

Definition at line 236 of file 22.locale.time.get.cpp.

◆ Bad

#define Bad   std::ios_base::badbit

Definition at line 245 of file 22.locale.time.get.cpp.

◆ Basefield

#define Basefield   std::ios_base::basefield

Definition at line 237 of file 22.locale.time.get.cpp.

◆ Bin

#define Bin   std::ios_base::bin

Definition at line 235 of file 22.locale.time.get.cpp.

◆ Boolalpha

#define Boolalpha   std::ios_base::boolalpha

Definition at line 220 of file 22.locale.time.get.cpp.

◆ Dec

#define Dec   std::ios_base::dec

Definition at line 221 of file 22.locale.time.get.cpp.

◆ Eof

#define Eof   std::ios_base::eofbit

Definition at line 246 of file 22.locale.time.get.cpp.

◆ Fail

#define Fail   std::ios_base::failbit

Definition at line 247 of file 22.locale.time.get.cpp.

◆ Fixed

#define Fixed   std::ios_base::fixed

Definition at line 222 of file 22.locale.time.get.cpp.

◆ Floatfield

#define Floatfield   std::ios_base::floatfield

Definition at line 238 of file 22.locale.time.get.cpp.

◆ FUNCTION

#define FUNCTION (   fun)
Value:
rw_info (0, 0, __LINE__, \
"std::time_get<%s>::%s() in locale (\"%s\")", \
cname, fun, std::locale ().name ().c_str ())
#define fun
Definition 17.names.cpp:471
const char * name
Definition codecvt1.cpp:72
_TEST_EXPORT int rw_info(int, const char *, int, const char *,...)
Definition driver.cpp:1681

Definition at line 254 of file 22.locale.time.get.cpp.

◆ Good

#define Good   std::ios_base::goodbit

Definition at line 248 of file 22.locale.time.get.cpp.

◆ Hex

#define Hex   std::ios_base::hex

Definition at line 223 of file 22.locale.time.get.cpp.

◆ Internal

#define Internal   std::ios_base::internal

Definition at line 224 of file 22.locale.time.get.cpp.

◆ Left

#define Left   std::ios_base::left

Definition at line 225 of file 22.locale.time.get.cpp.

◆ Nolock

Definition at line 239 of file 22.locale.time.get.cpp.

◆ Nolockbuf

#define Nolockbuf   std::ios_base::nolockbuf

Definition at line 240 of file 22.locale.time.get.cpp.

◆ Oct

#define Oct   std::ios_base::oct

Definition at line 226 of file 22.locale.time.get.cpp.

◆ Right

#define Right   std::ios_base::right

Definition at line 227 of file 22.locale.time.get.cpp.

◆ Scientific

#define Scientific   std::ios_base::scientific

Definition at line 228 of file 22.locale.time.get.cpp.

◆ Showbase

#define Showbase   std::ios_base::showbase

Definition at line 229 of file 22.locale.time.get.cpp.

◆ Showpoint

#define Showpoint   std::ios_base::showpoint

Definition at line 230 of file 22.locale.time.get.cpp.

◆ Showpos

#define Showpos   std::ios_base::showpos

Definition at line 231 of file 22.locale.time.get.cpp.

◆ Skipws

#define Skipws   std::ios_base::skipws

Definition at line 232 of file 22.locale.time.get.cpp.

◆ STEP

#define STEP (   desc)    rw_info (0, 0, __LINE__, "%s", desc)

Definition at line 259 of file 22.locale.time.get.cpp.

◆ T

#define T   __LINE__, charT (), cname, mktm

Definition at line 251 of file 22.locale.time.get.cpp.

◆ TEST

#define TEST   do_test

Definition at line 252 of file 22.locale.time.get.cpp.

◆ Unitbuf

#define Unitbuf   std::ios_base::unitbuf

Definition at line 233 of file 22.locale.time.get.cpp.

◆ Uppercase

#define Uppercase   std::ios_base::uppercase

Definition at line 234 of file 22.locale.time.get.cpp.

Function Documentation

◆ do_test()

template<class charT >
void do_test ( int  lineno,
charT  ,
const char *  cname,
std::tm  val,
const char *  pat,
int  consumed,
const char *  fmt,
int  flags,
int  err_expect = -1 
)

22.locale.time.get.cpp - tests exercising the std::time_get facet

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

Definition at line 47 of file 22.locale.time.get.cpp.

◆ main()

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

Definition at line 1669 of file 22.locale.time.get.cpp.

◆ mktm()

std::tm mktm ( int  sec = 0,
int  min = 0,
int  hour = 0,
int  mday = 0,
int  mon = 0,
int  year = 0,
int  wday = 0,
int  yday = 0,
int  isdst = 0 
)

Definition at line 191 of file 22.locale.time.get.cpp.

◆ test_danish()

template<class charT >
void test_danish ( charT  ,
const char *  cname,
const char *  locname 
)

Definition at line 1030 of file 22.locale.time.get.cpp.

◆ test_english()

template<class charT >
void test_english ( charT  ,
const char *  cname,
const char *  locname 
)

Definition at line 869 of file 22.locale.time.get.cpp.

◆ test_german()

template<class charT >
void test_german ( charT  ,
const char *  cname,
const char *  locname 
)

Definition at line 976 of file 22.locale.time.get.cpp.

◆ test_posix()

template<class charT >
void test_posix ( charT  ,
const char *  cname 
)

Definition at line 263 of file 22.locale.time.get.cpp.

◆ test_user()

template<class charT >
void test_user ( charT  ,
const char *  cname,
const char *  locname 
)

Definition at line 1389 of file 22.locale.time.get.cpp.