Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.35
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
include /
unicode /
Delete
Unzip
Name
Size
Permission
Date
Action
alphaindex.h
26.13
KB
-rw-r--r--
2021-10-12 12:29
appendable.h
8.25
KB
-rw-r--r--
2021-10-12 12:29
basictz.h
8.73
KB
-rw-r--r--
2021-10-12 12:29
brkiter.h
27.31
KB
-rw-r--r--
2021-10-12 12:29
bytestream.h
9.16
KB
-rw-r--r--
2021-10-12 12:29
bytestrie.h
19.19
KB
-rw-r--r--
2021-10-12 12:29
bytestriebuilder.h
7.06
KB
-rw-r--r--
2021-10-12 12:29
calendar.h
105.26
KB
-rw-r--r--
2021-10-12 12:29
caniter.h
7.24
KB
-rw-r--r--
2021-10-12 12:29
chariter.h
23.71
KB
-rw-r--r--
2021-10-12 12:29
choicfmt.h
23.74
KB
-rw-r--r--
2021-10-12 12:29
coleitr.h
13.57
KB
-rw-r--r--
2021-10-12 12:29
coll.h
55.46
KB
-rw-r--r--
2021-10-12 12:29
compactdecimalformat.h
16.56
KB
-rw-r--r--
2021-10-12 12:29
curramt.h
3.57
KB
-rw-r--r--
2021-10-12 12:29
currpinf.h
6.97
KB
-rw-r--r--
2021-10-12 12:29
currunit.h
2.81
KB
-rw-r--r--
2021-10-12 12:29
datefmt.h
40.07
KB
-rw-r--r--
2021-10-12 12:29
dbbi.h
1020
B
-rw-r--r--
2021-10-12 12:29
dcfmtsym.h
16.46
KB
-rw-r--r--
2021-10-12 12:29
decimfmt.h
90.45
KB
-rw-r--r--
2021-10-12 12:29
docmain.h
6.28
KB
-rw-r--r--
2021-10-12 12:29
dtfmtsym.h
37.05
KB
-rw-r--r--
2021-10-12 12:29
dtintrv.h
3.65
KB
-rw-r--r--
2021-10-12 12:29
dtitvfmt.h
42.76
KB
-rw-r--r--
2021-10-12 12:29
dtitvinf.h
18.34
KB
-rw-r--r--
2021-10-12 12:29
dtptngen.h
23.18
KB
-rw-r--r--
2021-10-12 12:29
dtrule.h
8.51
KB
-rw-r--r--
2021-10-12 12:29
enumset.h
1.94
KB
-rw-r--r--
2021-10-12 12:29
errorcode.h
4.67
KB
-rw-r--r--
2021-10-12 12:29
fieldpos.h
8.51
KB
-rw-r--r--
2021-10-12 12:29
filteredbrk.h
4.22
KB
-rw-r--r--
2021-10-12 12:29
fmtable.h
24.29
KB
-rw-r--r--
2021-10-12 12:29
format.h
12.33
KB
-rw-r--r--
2021-10-12 12:29
fpositer.h
2.87
KB
-rw-r--r--
2021-10-12 12:29
gender.h
3.07
KB
-rw-r--r--
2021-10-12 12:29
gregocal.h
31.46
KB
-rw-r--r--
2021-10-12 12:29
icudataver.h
938
B
-rw-r--r--
2021-10-12 12:29
icuplug.h
11.58
KB
-rw-r--r--
2021-10-12 12:29
idna.h
12.55
KB
-rw-r--r--
2021-10-12 12:29
listformatter.h
4.73
KB
-rw-r--r--
2021-10-12 12:29
localpointer.h
18.17
KB
-rw-r--r--
2021-10-12 12:29
locdspnm.h
6.92
KB
-rw-r--r--
2021-10-12 12:29
locid.h
31.3
KB
-rw-r--r--
2021-10-12 12:29
measfmt.h
10.43
KB
-rw-r--r--
2021-10-12 12:29
measunit.h
37.64
KB
-rw-r--r--
2021-10-12 12:29
measure.h
4.15
KB
-rw-r--r--
2021-10-12 12:29
messagepattern.h
33.53
KB
-rw-r--r--
2021-10-12 12:29
msgfmt.h
43.05
KB
-rw-r--r--
2021-10-12 12:29
normalizer2.h
28.17
KB
-rw-r--r--
2021-10-12 12:29
normlzr.h
30.65
KB
-rw-r--r--
2021-10-12 12:29
numfmt.h
45.85
KB
-rw-r--r--
2021-10-12 12:29
numsys.h
6.62
KB
-rw-r--r--
2021-10-12 12:29
parseerr.h
2.97
KB
-rw-r--r--
2021-10-12 12:29
parsepos.h
5.34
KB
-rw-r--r--
2021-10-12 12:29
platform.h
26.96
KB
-rw-r--r--
2021-10-12 12:29
plurfmt.h
25.55
KB
-rw-r--r--
2021-10-12 12:29
plurrule.h
17.16
KB
-rw-r--r--
2021-10-12 12:29
ptypes.h
3.36
KB
-rw-r--r--
2021-10-12 12:29
putil.h
6.23
KB
-rw-r--r--
2021-10-12 12:29
rbbi.h
29.2
KB
-rw-r--r--
2021-10-12 12:29
rbnf.h
46.66
KB
-rw-r--r--
2021-10-12 12:29
rbtz.h
15.36
KB
-rw-r--r--
2021-10-12 12:29
regex.h
84.75
KB
-rw-r--r--
2021-10-12 12:29
region.h
9
KB
-rw-r--r--
2021-10-12 12:29
reldatefmt.h
13.73
KB
-rw-r--r--
2021-10-12 12:29
rep.h
9.38
KB
-rw-r--r--
2021-10-12 12:29
resbund.h
17.89
KB
-rw-r--r--
2021-10-12 12:29
schriter.h
6.15
KB
-rw-r--r--
2021-10-12 12:29
scientificnumberformatter.h
6.48
KB
-rw-r--r--
2021-10-12 12:29
search.h
22.1
KB
-rw-r--r--
2021-10-12 12:29
selfmt.h
14.13
KB
-rw-r--r--
2021-10-12 12:29
simpleformatter.h
11.14
KB
-rw-r--r--
2021-10-12 12:29
simpletz.h
45.13
KB
-rw-r--r--
2021-10-12 12:29
smpdtfmt.h
69.24
KB
-rw-r--r--
2021-10-12 12:29
sortkey.h
11.01
KB
-rw-r--r--
2021-10-12 12:29
std_string.h
905
B
-rw-r--r--
2021-10-12 12:29
strenum.h
9.92
KB
-rw-r--r--
2021-10-12 12:29
stringpiece.h
6.38
KB
-rw-r--r--
2021-10-12 12:29
stringtriebuilder.h
14.56
KB
-rw-r--r--
2021-10-12 12:29
stsearch.h
21.18
KB
-rw-r--r--
2021-10-12 12:29
symtable.h
4.1
KB
-rw-r--r--
2021-10-12 12:29
tblcoll.h
36.24
KB
-rw-r--r--
2021-10-12 12:29
timezone.h
40.71
KB
-rw-r--r--
2021-10-12 12:29
tmunit.h
2.94
KB
-rw-r--r--
2021-10-12 12:29
tmutamt.h
4.69
KB
-rw-r--r--
2021-10-12 12:29
tmutfmt.h
7.61
KB
-rw-r--r--
2021-10-12 12:29
translit.h
54.41
KB
-rw-r--r--
2021-10-12 12:29
tzfmt.h
42.69
KB
-rw-r--r--
2021-10-12 12:29
tznames.h
16.25
KB
-rw-r--r--
2021-10-12 12:29
tzrule.h
35.21
KB
-rw-r--r--
2021-10-12 12:29
tztrans.h
5.96
KB
-rw-r--r--
2021-10-12 12:29
ubidi.h
88.57
KB
-rw-r--r--
2021-10-12 12:29
ubrk.h
20.05
KB
-rw-r--r--
2021-10-12 12:29
ucal.h
54.18
KB
-rw-r--r--
2021-10-12 12:29
ucasemap.h
16.45
KB
-rw-r--r--
2021-10-12 12:29
ucat.h
5.25
KB
-rw-r--r--
2021-10-12 12:29
uchar.h
122.74
KB
-rw-r--r--
2021-10-12 12:29
ucharstrie.h
20.8
KB
-rw-r--r--
2021-10-12 12:29
ucharstriebuilder.h
7.01
KB
-rw-r--r--
2021-10-12 12:29
uchriter.h
12.82
KB
-rw-r--r--
2021-10-12 12:29
uclean.h
11.03
KB
-rw-r--r--
2021-10-12 12:29
ucnv.h
82.81
KB
-rw-r--r--
2021-10-12 12:29
ucnv_cb.h
6.48
KB
-rw-r--r--
2021-10-12 12:29
ucnv_err.h
20.87
KB
-rw-r--r--
2021-10-12 12:29
ucnvsel.h
6.03
KB
-rw-r--r--
2021-10-12 12:29
ucol.h
60.51
KB
-rw-r--r--
2021-10-12 12:29
ucoleitr.h
9.34
KB
-rw-r--r--
2021-10-12 12:29
uconfig.h
11.76
KB
-rw-r--r--
2021-10-12 12:29
ucsdet.h
14.35
KB
-rw-r--r--
2021-10-12 12:29
ucurr.h
14.92
KB
-rw-r--r--
2021-10-12 12:29
udat.h
59.91
KB
-rw-r--r--
2021-10-12 12:29
udata.h
15.28
KB
-rw-r--r--
2021-10-12 12:29
udateintervalformat.h
6.68
KB
-rw-r--r--
2021-10-12 12:29
udatpg.h
23.5
KB
-rw-r--r--
2021-10-12 12:29
udisplaycontext.h
4.87
KB
-rw-r--r--
2021-10-12 12:29
uenum.h
7.76
KB
-rw-r--r--
2021-10-12 12:29
ufieldpositer.h
4.24
KB
-rw-r--r--
2021-10-12 12:29
uformattable.h
10.65
KB
-rw-r--r--
2021-10-12 12:29
ugender.h
1.89
KB
-rw-r--r--
2021-10-12 12:29
uidna.h
33.26
KB
-rw-r--r--
2021-10-12 12:29
uiter.h
22.67
KB
-rw-r--r--
2021-10-12 12:29
uldnames.h
10.34
KB
-rw-r--r--
2021-10-12 12:29
ulistformatter.h
4.43
KB
-rw-r--r--
2021-10-12 12:29
uloc.h
49.78
KB
-rw-r--r--
2021-10-12 12:29
ulocdata.h
10.57
KB
-rw-r--r--
2021-10-12 12:29
umachine.h
10.94
KB
-rw-r--r--
2021-10-12 12:29
umisc.h
1.23
KB
-rw-r--r--
2021-10-12 12:29
umsg.h
24.12
KB
-rw-r--r--
2021-10-12 12:29
unifilt.h
3.52
KB
-rw-r--r--
2021-10-12 12:29
unifunct.h
3.87
KB
-rw-r--r--
2021-10-12 12:29
unimatch.h
5.93
KB
-rw-r--r--
2021-10-12 12:29
unirepl.h
3.21
KB
-rw-r--r--
2021-10-12 12:29
uniset.h
63.86
KB
-rw-r--r--
2021-10-12 12:29
unistr.h
170.03
KB
-rw-r--r--
2021-10-12 12:29
unorm.h
20.18
KB
-rw-r--r--
2021-10-12 12:29
unorm2.h
25.11
KB
-rw-r--r--
2021-10-12 12:29
unum.h
49.13
KB
-rw-r--r--
2021-10-12 12:29
unumsys.h
7.03
KB
-rw-r--r--
2021-10-12 12:29
uobject.h
10.61
KB
-rw-r--r--
2021-10-12 12:29
upluralrules.h
4.47
KB
-rw-r--r--
2021-10-12 12:29
uregex.h
71.95
KB
-rw-r--r--
2021-10-12 12:29
uregion.h
9.58
KB
-rw-r--r--
2021-10-12 12:29
ureldatefmt.h
11.85
KB
-rw-r--r--
2021-10-12 12:29
urename.h
123.32
KB
-rw-r--r--
2021-10-12 12:29
urep.h
5.27
KB
-rw-r--r--
2021-10-12 12:29
ures.h
36.25
KB
-rw-r--r--
2021-10-12 12:29
uscript.h
25.24
KB
-rw-r--r--
2021-10-12 12:29
usearch.h
37.71
KB
-rw-r--r--
2021-10-12 12:29
uset.h
39.67
KB
-rw-r--r--
2021-10-12 12:29
usetiter.h
9.38
KB
-rw-r--r--
2021-10-12 12:29
ushape.h
17.89
KB
-rw-r--r--
2021-10-12 12:29
uspoof.h
45.43
KB
-rw-r--r--
2021-10-12 12:29
usprep.h
8.02
KB
-rw-r--r--
2021-10-12 12:29
ustdio.h
38.43
KB
-rw-r--r--
2021-10-12 12:29
ustream.h
1.8
KB
-rw-r--r--
2021-10-12 12:29
ustring.h
72.69
KB
-rw-r--r--
2021-10-12 12:29
ustringtrie.h
3.04
KB
-rw-r--r--
2021-10-12 12:29
utext.h
57.97
KB
-rw-r--r--
2021-10-12 12:29
utf.h
7.64
KB
-rw-r--r--
2021-10-12 12:29
utf16.h
18.63
KB
-rw-r--r--
2021-10-12 12:29
utf32.h
653
B
-rw-r--r--
2021-10-12 12:29
utf8.h
27.62
KB
-rw-r--r--
2021-10-12 12:29
utf_old.h
42.5
KB
-rw-r--r--
2021-10-12 12:29
utmscale.h
13.37
KB
-rw-r--r--
2021-10-12 12:29
utrace.h
13.09
KB
-rw-r--r--
2021-10-12 12:29
utrans.h
25.42
KB
-rw-r--r--
2021-10-12 12:29
utypes.h
31.05
KB
-rw-r--r--
2021-10-12 12:29
uvernum.h
5.62
KB
-rw-r--r--
2021-10-12 12:29
uversion.h
6.29
KB
-rw-r--r--
2021-10-12 12:29
vtzone.h
20.06
KB
-rw-r--r--
2021-10-12 12:29
Save
Rename
/* ***************************************************************************** * Copyright (C) 2014-2016, International Business Machines Corporation and * others. * All Rights Reserved. ***************************************************************************** * * File RELDATEFMT.H ***************************************************************************** */ #ifndef __RELDATEFMT_H #define __RELDATEFMT_H #include "unicode/utypes.h" #include "unicode/uobject.h" #include "unicode/udisplaycontext.h" #include "unicode/ureldatefmt.h" #include "unicode/locid.h" /** * \file * \brief C++ API: Formats relative dates such as "1 day ago" or "tomorrow" */ #if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_BREAK_ITERATION /** * Represents the unit for formatting a relative date. e.g "in 5 days" * or "in 3 months" * @stable ICU 53 */ typedef enum UDateRelativeUnit { /** * Seconds * @stable ICU 53 */ UDAT_RELATIVE_SECONDS, /** * Minutes * @stable ICU 53 */ UDAT_RELATIVE_MINUTES, /** * Hours * @stable ICU 53 */ UDAT_RELATIVE_HOURS, /** * Days * @stable ICU 53 */ UDAT_RELATIVE_DAYS, /** * Weeks * @stable ICU 53 */ UDAT_RELATIVE_WEEKS, /** * Months * @stable ICU 53 */ UDAT_RELATIVE_MONTHS, /** * Years * @stable ICU 53 */ UDAT_RELATIVE_YEARS, /** * Count of items in this enum. * @stable ICU 53 */ UDAT_RELATIVE_UNIT_COUNT } UDateRelativeUnit; /** * Represents an absolute unit. * @stable ICU 53 */ typedef enum UDateAbsoluteUnit { // Days of week have to remain together and in order from Sunday to // Saturday. /** * Sunday * @stable ICU 53 */ UDAT_ABSOLUTE_SUNDAY, /** * Monday * @stable ICU 53 */ UDAT_ABSOLUTE_MONDAY, /** * Tuesday * @stable ICU 53 */ UDAT_ABSOLUTE_TUESDAY, /** * Wednesday * @stable ICU 53 */ UDAT_ABSOLUTE_WEDNESDAY, /** * Thursday * @stable ICU 53 */ UDAT_ABSOLUTE_THURSDAY, /** * Friday * @stable ICU 53 */ UDAT_ABSOLUTE_FRIDAY, /** * Saturday * @stable ICU 53 */ UDAT_ABSOLUTE_SATURDAY, /** * Day * @stable ICU 53 */ UDAT_ABSOLUTE_DAY, /** * Week * @stable ICU 53 */ UDAT_ABSOLUTE_WEEK, /** * Month * @stable ICU 53 */ UDAT_ABSOLUTE_MONTH, /** * Year * @stable ICU 53 */ UDAT_ABSOLUTE_YEAR, /** * Now * @stable ICU 53 */ UDAT_ABSOLUTE_NOW, /** * Count of items in this enum. * @stable ICU 53 */ UDAT_ABSOLUTE_UNIT_COUNT } UDateAbsoluteUnit; /** * Represents a direction for an absolute unit e.g "Next Tuesday" * or "Last Tuesday" * @stable ICU 53 */ typedef enum UDateDirection { /** * Two before. Not fully supported in every locale. * @stable ICU 53 */ UDAT_DIRECTION_LAST_2, /** * Last * @stable ICU 53 */ UDAT_DIRECTION_LAST, /** * This * @stable ICU 53 */ UDAT_DIRECTION_THIS, /** * Next * @stable ICU 53 */ UDAT_DIRECTION_NEXT, /** * Two after. Not fully supported in every locale. * @stable ICU 53 */ UDAT_DIRECTION_NEXT_2, /** * Plain, which means the absence of a qualifier. * @stable ICU 53 */ UDAT_DIRECTION_PLAIN, /** * Count of items in this enum. * @stable ICU 53 */ UDAT_DIRECTION_COUNT } UDateDirection; U_NAMESPACE_BEGIN class RelativeDateTimeCacheData; class SharedNumberFormat; class SharedPluralRules; class SharedBreakIterator; class NumberFormat; class UnicodeString; /** * Formats simple relative dates. There are two types of relative dates that * it handles: * <ul> * <li>relative dates with a quantity e.g "in 5 days"</li> * <li>relative dates without a quantity e.g "next Tuesday"</li> * </ul> * <p> * This API is very basic and is intended to be a building block for more * fancy APIs. The caller tells it exactly what to display in a locale * independent way. While this class automatically provides the correct plural * forms, the grammatical form is otherwise as neutral as possible. It is the * caller's responsibility to handle cut-off logic such as deciding between * displaying "in 7 days" or "in 1 week." This API supports relative dates * involving one single unit. This API does not support relative dates * involving compound units, * e.g "in 5 days and 4 hours" nor does it support parsing. * <p> * This class is mostly thread safe and immutable with the following caveats: * 1. The assignment operator violates Immutability. It must not be used * concurrently with other operations. * 2. Caller must not hold onto adopted pointers. * <p> * This class is not intended for public subclassing. * <p> * Here are some examples of use: * <blockquote> * <pre> * UErrorCode status = U_ZERO_ERROR; * UnicodeString appendTo; * RelativeDateTimeFormatter fmt(status); * // Appends "in 1 day" * fmt.format( * 1, UDAT_DIRECTION_NEXT, UDAT_RELATIVE_DAYS, appendTo, status); * // Appends "in 3 days" * fmt.format( * 3, UDAT_DIRECTION_NEXT, UDAT_RELATIVE_DAYS, appendTo, status); * // Appends "3.2 years ago" * fmt.format( * 3.2, UDAT_DIRECTION_LAST, UDAT_RELATIVE_YEARS, appendTo, status); * // Appends "last Sunday" * fmt.format(UDAT_DIRECTION_LAST, UDAT_ABSOLUTE_SUNDAY, appendTo, status); * // Appends "this Sunday" * fmt.format(UDAT_DIRECTION_THIS, UDAT_ABSOLUTE_SUNDAY, appendTo, status); * // Appends "next Sunday" * fmt.format(UDAT_DIRECTION_NEXT, UDAT_ABSOLUTE_SUNDAY, appendTo, status); * // Appends "Sunday" * fmt.format(UDAT_DIRECTION_PLAIN, UDAT_ABSOLUTE_SUNDAY, appendTo, status); * * // Appends "yesterday" * fmt.format(UDAT_DIRECTION_LAST, UDAT_ABSOLUTE_DAY, appendTo, status); * // Appends "today" * fmt.format(UDAT_DIRECTION_THIS, UDAT_ABSOLUTE_DAY, appendTo, status); * // Appends "tomorrow" * fmt.format(UDAT_DIRECTION_NEXT, UDAT_ABSOLUTE_DAY, appendTo, status); * // Appends "now" * fmt.format(UDAT_DIRECTION_PLAIN, UDAT_ABSOLUTE_NOW, appendTo, status); * * </pre> * </blockquote> * <p> * In the future, we may add more forms, such as abbreviated/short forms * (3 secs ago), and relative day periods ("yesterday afternoon"), etc. * * The RelativeDateTimeFormatter class is not intended for public subclassing. * * @stable ICU 53 */ class U_I18N_API RelativeDateTimeFormatter : public UObject { public: /** * Create RelativeDateTimeFormatter with default locale. * @stable ICU 53 */ RelativeDateTimeFormatter(UErrorCode& status); /** * Create RelativeDateTimeFormatter with given locale. * @stable ICU 53 */ RelativeDateTimeFormatter(const Locale& locale, UErrorCode& status); /** * Create RelativeDateTimeFormatter with given locale and NumberFormat. * * @param locale the locale * @param nfToAdopt Constructed object takes ownership of this pointer. * It is an error for caller to delete this pointer or change its * contents after calling this constructor. * @status Any error is returned here. * @stable ICU 53 */ RelativeDateTimeFormatter( const Locale& locale, NumberFormat *nfToAdopt, UErrorCode& status); /** * Create RelativeDateTimeFormatter with given locale, NumberFormat, * and capitalization context. * * @param locale the locale * @param nfToAdopt Constructed object takes ownership of this pointer. * It is an error for caller to delete this pointer or change its * contents after calling this constructor. Caller may pass NULL for * this argument if they want default number format behavior. * @param style the format style. The UDAT_RELATIVE bit field has no effect. * @param capitalizationContext A value from UDisplayContext that pertains to * capitalization. * @status Any error is returned here. * @stable ICU 54 */ RelativeDateTimeFormatter( const Locale& locale, NumberFormat *nfToAdopt, UDateRelativeDateTimeFormatterStyle style, UDisplayContext capitalizationContext, UErrorCode& status); /** * Copy constructor. * @stable ICU 53 */ RelativeDateTimeFormatter(const RelativeDateTimeFormatter& other); /** * Assignment operator. * @stable ICU 53 */ RelativeDateTimeFormatter& operator=( const RelativeDateTimeFormatter& other); /** * Destructor. * @stable ICU 53 */ virtual ~RelativeDateTimeFormatter(); /** * Formats a relative date with a quantity such as "in 5 days" or * "3 months ago" * @param quantity The numerical amount e.g 5. This value is formatted * according to this object's NumberFormat object. * @param direction NEXT means a future relative date; LAST means a past * relative date. If direction is anything else, this method sets * status to U_ILLEGAL_ARGUMENT_ERROR. * @param unit the unit e.g day? month? year? * @param appendTo The string to which the formatted result will be * appended * @param status ICU error code returned here. * @return appendTo * @stable ICU 53 */ UnicodeString& format( double quantity, UDateDirection direction, UDateRelativeUnit unit, UnicodeString& appendTo, UErrorCode& status) const; /** * Formats a relative date without a quantity. * @param direction NEXT, LAST, THIS, etc. * @param unit e.g SATURDAY, DAY, MONTH * @param appendTo The string to which the formatted result will be * appended. If the value of direction is documented as not being fully * supported in all locales then this method leaves appendTo unchanged if * no format string is available. * @param status ICU error code returned here. * @return appendTo * @stable ICU 53 */ UnicodeString& format( UDateDirection direction, UDateAbsoluteUnit unit, UnicodeString& appendTo, UErrorCode& status) const; #ifndef U_HIDE_DRAFT_API /** * Format a combination of URelativeDateTimeUnit and numeric offset * using a numeric style, e.g. "1 week ago", "in 1 week", * "5 weeks ago", "in 5 weeks". * * @param offset The signed offset for the specified unit. This * will be formatted according to this object's * NumberFormat object. * @param unit The unit to use when formatting the relative * date, e.g. UDAT_REL_UNIT_WEEK, * UDAT_REL_UNIT_FRIDAY. * @param appendTo The string to which the formatted result will be * appended. * @param status ICU error code returned here. * @return appendTo * @draft ICU 57 */ UnicodeString& formatNumeric( double offset, URelativeDateTimeUnit unit, UnicodeString& appendTo, UErrorCode& status) const; /** * Format a combination of URelativeDateTimeUnit and numeric offset * using a text style if possible, e.g. "last week", "this week", * "next week", "yesterday", "tomorrow". Falls back to numeric * style if no appropriate text term is available for the specified * offset in the object's locale. * * @param offset The signed offset for the specified unit. * @param unit The unit to use when formatting the relative * date, e.g. UDAT_REL_UNIT_WEEK, * UDAT_REL_UNIT_FRIDAY. * @param appendTo The string to which the formatted result will be * appended. * @param status ICU error code returned here. * @return appendTo * @draft ICU 57 */ UnicodeString& format( double offset, URelativeDateTimeUnit unit, UnicodeString& appendTo, UErrorCode& status) const; #endif /* U_HIDE_DRAFT_API */ /** * Combines a relative date string and a time string in this object's * locale. This is done with the same date-time separator used for the * default calendar in this locale. * * @param relativeDateString the relative date, e.g 'yesterday' * @param timeString the time e.g '3:45' * @param appendTo concatenated date and time appended here * @param status ICU error code returned here. * @return appendTo * @stable ICU 53 */ UnicodeString& combineDateAndTime( const UnicodeString& relativeDateString, const UnicodeString& timeString, UnicodeString& appendTo, UErrorCode& status) const; /** * Returns the NumberFormat this object is using. * * @stable ICU 53 */ const NumberFormat& getNumberFormat() const; /** * Returns the capitalization context. * * @stable ICU 54 */ UDisplayContext getCapitalizationContext() const; /** * Returns the format style. * * @stable ICU 54 */ UDateRelativeDateTimeFormatterStyle getFormatStyle() const; private: const RelativeDateTimeCacheData* fCache; const SharedNumberFormat *fNumberFormat; const SharedPluralRules *fPluralRules; UDateRelativeDateTimeFormatterStyle fStyle; UDisplayContext fContext; const SharedBreakIterator *fOptBreakIterator; Locale fLocale; void init( NumberFormat *nfToAdopt, BreakIterator *brkIter, UErrorCode &status); void adjustForContext(UnicodeString &) const; }; U_NAMESPACE_END #endif /* !UCONFIG_NO_FORMATTING && !UCONFIG_NO_BREAK_ITERATION*/ #endif