|
Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
|
#include <ios>#include <locale>#include <climits>#include <cstdio>#include <cstdlib>#include <cstring>#include <ctime>#include <cwchar>#include <cassert>#include <rw_driver.h>#include <rw_environ.h>#include <rw_file.h>#include <rw_locale.h>#include <rw_printf.h>#include <rw_valcmp.h>
Go to the source code of this file.
Data Structures | |
| struct | Ios< charT > |
| struct | Buffer< charT > |
| struct | time_data |
| struct | time_data::era_data |
Macros | |
| #define | SLASH "\\" |
| #define | T __LINE__, charT (), tname, mktm |
| #define | TEST do_test |
Functions | |
| void | set_TZ (const char *str) |
| const char * | narrow (char *dst, const char *src) |
| const char * | widen (char *dst, const char *src) |
| const char * | narrow (char *dst, const wchar_t *src) |
| const wchar_t * | widen (wchar_t *dst, const char *src) |
| std::size_t | rw_strftime (char *buf, std::size_t bufsize, const char *pat, const std::tm *tmb) |
| std::size_t | rw_strftime (wchar_t *wbuf, std::size_t bufsize, const wchar_t *wpat, const std::tm *tmb) |
| template<class charT > | |
| void | do_test (int lineno, charT, const char *tname, const std::tm *tmb, const char *pat, int flags, int width, char fill, const char *str) |
| const char * | make_LC_TIME (const time_data *td) |
| const std::tm * | mktm (int sec=0, int min=0, int hour=0, int mday=1, int mon=0, int year=0, int wday=0, int yday=0, int isdst=0, long gmtoff=0, const char *zone=0) |
| template<class charT > | |
| void | test_POSIX (charT, const char *tname) |
| template<class charT > | |
| void | test_user (charT, const char *tname) |
| int | main (int argc, char *argv[]) |
Variables | |
| const char * | locale_root |
| #define SLASH "\\" |
22.time.put.cpp - tests exercising lib.locale.time.put
$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 2002-2008 Rogue Wave Software, Inc.
Definition at line 51 of file 22.locale.time.put.cpp.
Definition at line 747 of file 22.locale.time.put.cpp.
| #define TEST do_test |
Definition at line 748 of file 22.locale.time.put.cpp.
| void do_test | ( | int | lineno, |
| charT | , | ||
| const char * | tname, | ||
| const std::tm * | tmb, | ||
| const char * | pat, | ||
| int | flags, | ||
| int | width, | ||
| char | fill, | ||
| const char * | str | ||
| ) |
Definition at line 348 of file 22.locale.time.put.cpp.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 2063 of file 22.locale.time.put.cpp.
| const char * make_LC_TIME | ( | const time_data * | td | ) |
Definition at line 500 of file 22.locale.time.put.cpp.
| const std::tm * mktm | ( | int | sec = 0, |
| int | min = 0, |
||
| int | hour = 0, |
||
| int | mday = 1, |
||
| int | mon = 0, |
||
| int | year = 0, |
||
| int | wday = 0, |
||
| int | yday = 0, |
||
| int | isdst = 0, |
||
| long | gmtoff = 0, |
||
| const char * | zone = 0 |
||
| ) |
Definition at line 679 of file 22.locale.time.put.cpp.
| const char * narrow | ( | char * | dst, |
| const char * | src | ||
| ) |
Definition at line 75 of file 22.locale.time.put.cpp.
| const char * narrow | ( | char * | dst, |
| const wchar_t * | src | ||
| ) |
Definition at line 95 of file 22.locale.time.put.cpp.
| std::size_t rw_strftime | ( | char * | buf, |
| std::size_t | bufsize, | ||
| const char * | pat, | ||
| const std::tm * | tmb | ||
| ) |
Definition at line 137 of file 22.locale.time.put.cpp.
| std::size_t rw_strftime | ( | wchar_t * | wbuf, |
| std::size_t | bufsize, | ||
| const wchar_t * | wpat, | ||
| const std::tm * | tmb | ||
| ) |
Definition at line 296 of file 22.locale.time.put.cpp.
|
inline |
Definition at line 64 of file 22.locale.time.put.cpp.
Definition at line 752 of file 22.locale.time.put.cpp.
Definition at line 1808 of file 22.locale.time.put.cpp.
| const char * widen | ( | char * | dst, |
| const char * | src | ||
| ) |
Definition at line 85 of file 22.locale.time.put.cpp.
Definition at line 116 of file 22.locale.time.put.cpp.
| const char* locale_root |
Definition at line 57 of file 22.locale.time.put.cpp.