|
Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
|
#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>
Go to the source code of this file.
Data Structures | |
| struct | time_data |
| struct | time_data::era_data |
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[]) |
| #define Adjustfield std::ios_base::adjustfield |
Definition at line 236 of file 22.locale.time.get.cpp.
| #define Bad std::ios_base::badbit |
Definition at line 245 of file 22.locale.time.get.cpp.
| #define Basefield std::ios_base::basefield |
Definition at line 237 of file 22.locale.time.get.cpp.
| #define Bin std::ios_base::bin |
Definition at line 235 of file 22.locale.time.get.cpp.
| #define Boolalpha std::ios_base::boolalpha |
Definition at line 220 of file 22.locale.time.get.cpp.
| #define Dec std::ios_base::dec |
Definition at line 221 of file 22.locale.time.get.cpp.
| #define Eof std::ios_base::eofbit |
Definition at line 246 of file 22.locale.time.get.cpp.
| #define Fail std::ios_base::failbit |
Definition at line 247 of file 22.locale.time.get.cpp.
| #define Fixed std::ios_base::fixed |
Definition at line 222 of file 22.locale.time.get.cpp.
| #define Floatfield std::ios_base::floatfield |
Definition at line 238 of file 22.locale.time.get.cpp.
| #define FUNCTION | ( | fun | ) |
Definition at line 254 of file 22.locale.time.get.cpp.
| #define Good std::ios_base::goodbit |
Definition at line 248 of file 22.locale.time.get.cpp.
| #define Hex std::ios_base::hex |
Definition at line 223 of file 22.locale.time.get.cpp.
| #define Internal std::ios_base::internal |
Definition at line 224 of file 22.locale.time.get.cpp.
| #define Left std::ios_base::left |
Definition at line 225 of file 22.locale.time.get.cpp.
| #define Nolock std::ios_base::nolock |
Definition at line 239 of file 22.locale.time.get.cpp.
| #define Nolockbuf std::ios_base::nolockbuf |
Definition at line 240 of file 22.locale.time.get.cpp.
| #define Oct std::ios_base::oct |
Definition at line 226 of file 22.locale.time.get.cpp.
| #define Right std::ios_base::right |
Definition at line 227 of file 22.locale.time.get.cpp.
| #define Scientific std::ios_base::scientific |
Definition at line 228 of file 22.locale.time.get.cpp.
| #define Showbase std::ios_base::showbase |
Definition at line 229 of file 22.locale.time.get.cpp.
| #define Showpoint std::ios_base::showpoint |
Definition at line 230 of file 22.locale.time.get.cpp.
| #define Showpos std::ios_base::showpos |
Definition at line 231 of file 22.locale.time.get.cpp.
| #define Skipws std::ios_base::skipws |
Definition at line 232 of file 22.locale.time.get.cpp.
| #define STEP | ( | desc | ) | rw_info (0, 0, __LINE__, "%s", desc) |
Definition at line 259 of file 22.locale.time.get.cpp.
Definition at line 251 of file 22.locale.time.get.cpp.
| #define TEST do_test |
Definition at line 252 of file 22.locale.time.get.cpp.
| #define Unitbuf std::ios_base::unitbuf |
Definition at line 233 of file 22.locale.time.get.cpp.
| #define Uppercase std::ios_base::uppercase |
Definition at line 234 of file 22.locale.time.get.cpp.
| 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.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 1669 of file 22.locale.time.get.cpp.
| 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.
Definition at line 1030 of file 22.locale.time.get.cpp.
Definition at line 869 of file 22.locale.time.get.cpp.
Definition at line 976 of file 22.locale.time.get.cpp.
Definition at line 263 of file 22.locale.time.get.cpp.
Definition at line 1389 of file 22.locale.time.get.cpp.