2
0
mirror of https://github.com/boostorg/locale.git synced 2026-01-19 04:22:08 +00:00

First Version of Boost.Locale integrated into SVN trunk

[SVN r73017]
This commit is contained in:
Artyom Beilis
2011-07-12 13:57:36 +00:00
parent 88da98e37b
commit 4c30e01d23
454 changed files with 81775 additions and 0 deletions

287
build/Jamfile.v2 Normal file
View File

@@ -0,0 +1,287 @@
# copyright John Maddock 2003, Artyom Beilis 2010
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt.
project /boost/locale
: source-location ../src
;
import configure ;
import os ;
import toolset ;
import project ;
import feature ;
# Features
feature.feature boost.locale.iconv : on off : optional propagated ;
feature.feature boost.locale.icu : on off : optional propagated ;
feature.feature boost.locale.posix : on off : optional propagated ;
feature.feature boost.locale.std : on off : optional propagated ;
feature.feature boost.locale.winapi : on off : optional propagated ;
# Configuration of libraries
## iconv
obj has_iconv_libc_obj : ../build/has_iconv.cpp ;
exe has_iconv : has_iconv_libc_obj ;
explicit has_iconv ;
ICONV_PATH = [ modules.peek : ICONV_PATH ] ;
lib iconv
:
: <search>$(ICONV_PATH)/lib <link>shared <runtime-link>shared
:
: <include>$(ICONV_PATH)/include
;
explicit iconv ;
obj has_iconv_libc_ext : ../build/has_iconv.cpp iconv ;
exe has_external_iconv : has_iconv_libc_ext iconv ;
explicit has_external_iconv ;
ICU_PATH = [ modules.peek : ICU_PATH ] ;
ICU_LINK = [ modules.peek : ICU_LINK ] ;
if $(ICU_LINK)
{
ICU_OPTS = <include>$(ICU_PATH)/include <linkflags>$(ICU_LINK) <dll-path>$(ICU_PATH)/bin <runtime-link>shared ;
}
else
{
searched-lib icuuc : : <search>$(ICU_PATH)/lib <link>shared <runtime-link>shared ;
searched-lib icuuc : : <toolset>msvc <variant>debug <name>icuucd <search>$(ICU_PATH)/lib <link>shared <runtime-link>shared ;
searched-lib icuuc : : <name>this_is_an_invalid_library_name ;
searched-lib icudt : : <search>$(ICU_PATH)/lib <name>icudata <link>shared <runtime-link>shared ;
searched-lib icudt : : <search>$(ICU_PATH)/lib <name>icudt <toolset>msvc <link>shared <runtime-link>shared ;
searched-lib icudt : : <name>this_is_an_invalid_library_name ;
searched-lib icuin : : <search>$(ICU_PATH)/lib <name>icui18n <link>shared <runtime-link>shared ;
searched-lib icuin : : <toolset>msvc <variant>debug <name>icuind <search>$(ICU_PATH)/lib <link>shared <runtime-link>shared ;
searched-lib icuin : : <toolset>msvc <variant>release <name>icuin <search>$(ICU_PATH)/lib <link>shared <runtime-link>shared ;
searched-lib icuin : : <name>this_is_an_invalid_library_name ;
explicit icuuc icudt icuin ;
ICU_OPTS = <include>$(ICU_PATH)/include
<library>icuuc/<link>shared/<runtime-link>shared
<library>icudt/<link>shared/<runtime-link>shared
<library>icuin/<link>shared/<runtime-link>shared
<dll-path>$(ICU_PATH)/bin
<runtime-link>shared ;
}
exe has_icu : ../build/has_icu_test.cpp : $(ICU_OPTS) ;
explicit has_icu ;
# This function is called whenever the 'boost_locale' metatarget
# below is generated and figures what external components we have,
# what user wants, and what sources have to be compiled in the end.
rule configure-full ( properties * : flags-only )
{
local result ;
local flags-result ;
local found-iconv ;
if <boost.locale.iconv>on in $(properties)
|| ! <boost.locale.iconv> in $(properties:G)
&& ! <target-os>solaris in $(properties)
{
# See if iconv is bundled with standard library.
if [ configure.builds has_iconv : $(properties) : "iconv (libc)" ]
{
found-iconv = true ;
}
else
{
if [ configure.builds has_external_iconv : $(properties) : "iconv (separate)" ]
{
found-iconv = true ;
result += <library>iconv ;
}
}
}
if $(found-iconv)
{
flags-result += <define>BOOST_LOCALE_WITH_ICONV=1 ;
}
local found-icu ;
if ! <boost.locale.icu>off in $(properties)
{
if [ configure.builds has_icu : $(properties) : "icu" ]
{
found-icu = true ;
flags-result += <define>BOOST_LOCALE_WITH_ICU=1 $(ICU_OPTS) ;
for s in boundary codecvt collator conversion date_time formatter
icu_backend numeric time_zone
{
result += <source>icu/$(s).cpp ;
}
result += <library>../../thread/build//boost_thread ;
}
}
if ! $(found-iconv) && ! $(found-icu) && ! <target-os>windows in $(properties) && ! <target-os>cygwin in $(properties)
{
ECHO "error: Boost.Locale needs either iconv or ICU library to be built." ;
EXIT ;
}
if ! <boost.locale.std> in $(properties:G)
{
if <toolset>sun in $(properties)
{
properties += <boost.locale.std>off ;
}
else
{
properties += <boost.locale.std>on ;
}
}
if <boost.locale.std>off in $(properties)
{
flags-result += <define>BOOST_LOCALE_NO_STD_BACKEND=1 ;
}
else
{
STD_SOURCES =
codecvt
collate
converter
numeric
std_backend
;
result += <source>std/$(STD_SOURCES).cpp ;
}
if ! <boost.locale.winapi> in $(properties:G)
{
if <target-os>windows in $(properties)
|| <target-os>cygwin in $(properties)
{
properties += <boost.locale.winapi>on ;
}
else
{
properties += <boost.locale.winapi>off ;
}
}
if <boost.locale.winapi>off in $(properties)
{
flags-result += <define>BOOST_LOCALE_NO_WINAPI_BACKEND=1 ;
}
else
{
WINAPI_SOURCES =
collate
converter
numeric
win_backend
;
result += <source>win32/$(WINAPI_SOURCES).cpp ;
}
if ( ! <boost.locale.winapi>off in $(properties) || ! <boost.locale.std>off in $(properties) )
&& ( <target-os>windows in $(properties) || <target-os>cygwin in $(properties) )
{
result += <source>win32/lcid.cpp ;
}
if ! <boost.locale.posix> in $(properties:G)
{
if <target-os>linux in $(properties) || <target-os>darwin in $(properties)
{
properties += <boost.locale.posix>on ;
}
else
{
properties += <boost.locale.posix>off ;
}
}
if <boost.locale.posix>off in $(properties)
{
flags-result += <define>BOOST_LOCALE_NO_POSIX_BACKEND=1 ;
}
else
{
POSIX_SOURCES =
collate
converter
numeric
codecvt
posix_backend
;
result += <source>posix/$(POSIX_SOURCES).cpp ;
}
if <boost.locale.posix>on in $(properties) || <boost.locale.std>on in $(properties) || <boost.locale.winapi>on in $(properties)
{
result += <source>util/gregorian.cpp ;
}
if "$(flags-only)" = "flags"
{
return $(flags-result) ;
}
else {
result += $(flags-result) ;
return $(result) ;
}
}
rule configure ( properties * )
{
local result = [ configure-full $(properties) : "all" ] ;
return $(result) ;
}
rule configure-flags ( properties * )
{
local result ;
result = [ configure-full $(properties) : "flags" ] ;
return $(result) ;
}
alias build_options : : : : <conditional>@configure ;
alias build_flags : : : : <conditional>@configure-flags ;
lib boost_locale
:
encoding/codepage.cpp
shared/date_time.cpp
shared/format.cpp
shared/formatting.cpp
shared/generator.cpp
shared/ids.cpp
shared/localization_backend.cpp
shared/message.cpp
shared/mo_lambda.cpp
util/codecvt_converter.cpp
util/default_locale.cpp
util/info.cpp
util/locale_data.cpp
:
# Don't link explicitly, not required
<define>BOOST_THREAD_NO_LIB=1
<link>shared:<define>BOOST_LOCALE_DYN_LINK=1
<threading>multi
# Meanwhile remove this
<conditional>@configure
;
boost-install boost_locale ;
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4

7
build/has_iconv.cpp Normal file
View File

@@ -0,0 +1,7 @@
#include <iconv.h>
int main()
{
iconv_t d = iconv_open(0,0);
(void)(d);
}

29
build/has_icu_test.cpp Normal file
View File

@@ -0,0 +1,29 @@
/*
*
* Copyright (c) 2010
* John Maddock
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*
*/
#include <unicode/uversion.h>
#include <unicode/locid.h>
#include <unicode/utypes.h>
#include <unicode/uchar.h>
#include <unicode/coll.h>
#if defined(_MSC_VER) && !defined(_DLL)
#error "Mixing ICU with a static runtime doesn't work"
#endif
int main()
{
icu::Locale loc;
UErrorCode err = U_ZERO_ERROR;
UChar32 c = ::u_charFromName(U_UNICODE_CHAR_NAME, "GREEK SMALL LETTER ALPHA", &err);
return err;
}

1635
doc/Doxyfile Normal file

File diff suppressed because it is too large Load Diff

18
doc/appendix.txt Normal file
View File

@@ -0,0 +1,18 @@
// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 filetype=cpp.doxygen
/*!
\page appendix Appendix
\section appendix_toc Table of Contents
- \subpage rationale
- \subpage faq
- \subpage default_encoding_under_windows
- \subpage running_examples_under_windows
- \subpage gettext_for_windows
- \subpage glossary
- \subpage tested_compilers_and_paltforms
- \subpage status_of_cpp0x_characters_support
- \subpage special_thanks
*/

495
doc/boundary_analysys.txt Normal file
View File

@@ -0,0 +1,495 @@
// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 filetype=cpp.doxygen
/*!
\page boundary_analysys Boundary analysis
- \ref boundary_analysys_basics
- \ref boundary_analysys_segments
- \ref boundary_analysys_segments_basics
- \ref boundary_analysys_segments_rules
- \ref boundary_analysys_segments_search
- \ref boundary_analysys_break
- \ref boundary_analysys_break_basics
- \ref boundary_analysys_break_rules
- \ref boundary_analysys_break_search
\section boundary_analysys_basics Basics
Boost.Locale provides a boundary analysis tool, allowing you to split text into characters,
words, or sentences, and find appropriate places for line breaks.
\note This task is not a trivial task.
\par
A Unicode code point and a character are not equivalent, for example:
Hebrew word Shalom - "שָלוֹם" that consists of 4 characters and 6 code points (4 base letters and 2 diacritical marks)
\par
Words may not be separated by space characters in some languages like in Japanese or Chinese.
Boost.Locale provides 2 major classes for boundary analysis:
- \ref boost::locale::boundary::segment_index - an object that holds an index of segments in the text (like words, characters,
sentences). It provides an access to \ref boost::locale::boundary::segment "segment" objects via iterators.
- \ref boost::locale::boundary::boundary_point_index - an object that holds an index of boundary points in the text.
It allows to iterate over the \ref boost::locale::boundary::boundary_point "boundary_point" objects.
Each of the classes above use an iterator type as template parameter.
Both of these classes accept in their constructor:
- A flag that defines boundary analysis \ref boost::locale::boundary::boundary_type "boundary_type".
- The pair of iterators that define the text range that should be analysed
- A locale parameter (if not given the global one is used)
For example:
\code
namespace ba=boost::locale::boundary;
std::string text= ... ;
std::locale loc = ... ;
ba::segment_index<std::string::const_iterator> map(ba::word,text.begin(),text.end(),loc);
\endcode
Each of them provide a members \c begin(), \c end() and \c find() that allow to iterate
over the selected segments or boundaries in the text or find a location of a segment or
boundary for given iterator.
Convenience a typedefs like \ref boost::locale::boundary::ssegment_index "ssegment_index"
or \ref boost::locale::boundary::wcboundary_point_index "wcboundary_point_index" provided as well,
where "w", "u16" and "u32" prefixes define a character type \c wchar_t,
\c char16_t and \c char32_t and "c" and "s" prefixes define whether <tt>std::basic_string<CharType>::const_iterator</tt>
or <tt>CharType const *</tt> are used.
\section boundary_analysys_segments Iterating Over Segments
\section boundary_analysys_segments_basics Basic Iteration
The text segments analysis is done using \ref boost::locale::boundary::segment_index "segment_index" class.
It provides a bidirectional iterator that returns \ref boost::locale::boundary::segment "segment" object.
The segment object represents a pair of iterators that define this segment and a rule according to which it was selected.
It can be automatically converted to \c std::basic_string object.
To perform boundary analysis, we first create an index object and then iterate over it:
For example:
\code
using namespace boost::locale::boundary;
boost::locale::generator gen;
std::string text="To be or not to be, that is the question."
// Create mapping of text for token iterator using global locale.
ssegment_index map(word,text.begin(),text.end(),gen("en_US.UTF-8"));
// Print all "words" -- chunks of word boundary
for(ssegment_index::iterator it=map.begin(),e=map.end();it!=e;++it)
std::cout <<"\""<< * it << "\", ";
std::cout << std::endl;
\endcode
Would print:
\verbatim
"To", " ", "be", " ", "or", " ", "not", " ", "to", " ", "be", ",", " ", "that", " ", "is", " ", "the", " ", "question", ".",
\endverbatim
This sentence "生きるか死ぬか、それが問題だ。" (<a href="http://tatoeba.org/eng/sentences/show/868189">from Tatoeba database</a>)
would be split into following segments in \c ja_JP.UTF-8 (Japanese) locale:
\verbatim
"生", "きるか", "死", "ぬか", "、", "それが", "問題", "だ", "。",
\endverbatim
The boundary analysis that is done by Boost.Locale
is much more complicated then just splitting the text according
to white space characters.
Of course it may be not per
\section boundary_analysys_segments_rules Using Rules
The segments selection can be customized using \ref boost::locale::boundary::segment_index::rule(rule_type) "rule()" and
\ref boost::locale::boundary::segment_index::full_select(bool) "full_select()" member functions.
By default segment_index's iterator return each text segment defined by two boundary points regardless
the way they were selected. Thus in the example above we could see text segments like "." or " "
that were selected as words.
Using a \c rule() member function we can specify a binary mask of rules we want to use for selection of
the boundary points using \ref bl_boundary_word_rules "word", \ref bl_boundary_line_rules "line"
and \ref bl_boundary_sentence_rules "sentence" boundary rules.
For example, by calling
\code
map.rule(word_any);
\endcode
Before starting the iteration process, specify a selection mask that fetches: numbers, letter, Kana letters and
ideographic characters ignoring all non-word related characters like white space or punctuation marks.
So the code:
\code
using namespace boost::locale::boundary;
std::string text="To be or not to be, that is the question."
// Create mapping of text for token iterator using global locale.
ssegment_index map(word,text.begin(),text.end());
// Define a rule
map.rule(word_any);
// Print all "words" -- chunks of word boundary
for(ssegment_index::iterator it=map.begin(),e=map.end();it!=e;++it)
std::cout <<"\""<< * it << "\", ";
std::cout << std::endl;
\endcode
Would print:
\verbatim
"To", "be", "or", "not", "to", "be", "that", "is", "the", "question",
\endverbatim
And the for given text="生きるか死ぬか、それが問題だ。" and rule(\ref boost::locale::boundary::word_ideo "word_ideo"), the example above would print.
\verbatim
"生", "死", "問題",
\endverbatim
You can access specific rules the segments where selected it using \ref boost::locale::boundary::segment::rule() "segment::rule()" member
function. Using a bit-mask of rules.
For example:
\code
boost::locale::generator gen;
using namespace boost::locale::boundary;
std::string text="生きるか死ぬか、それが問題だ。";
ssegment_index map(word,text.begin(),text.end(),gen("ja_JP.UTF-8"));
for(ssegment_index::iterator it=map.begin(),e=map.end();it!=e;++it) {
std::cout << "Segment " << *it << " contains: ";
if(it->rule() & word_none)
std::cout << "white space or punctuation marks ";
if(it->rule() & word_kana)
std::cout << "kana characters ";
if(it->rule() & word_ideo)
std::cout << "ideographic characters";
std::cout<< std::endl;
}
\endcode
Would print
\verbatim
Segment 生 contains: ideographic characters
Segment きるか contains: kana characters
Segment 死 contains: ideographic characters
Segment ぬか contains: kana characters
Segment 、 contains: white space or punctuation marks
Segment それが contains: kana characters
Segment 問題 contains: ideographic characters
Segment だ contains: kana characters
Segment 。 contains: white space or punctuation marks
\endverbatim
One important things that should be noted that each segment is defined
by a pair of boundaries and the rule of its ending point defines
if it is selected or not.
In some cases it may be not what we actually look like.
For example we have a text:
\verbatim
Hello! How
are you?
\endverbatim
And we want to fetch all sentences from the text.
The \ref bl_boundary_sentence_rules "sentence rules" have two options:
- Split the text on the point where sentence terminator like ".!?" detected: \ref boost::locale::boundary::sentence_term "sentence_term"
- Split the text on the point where sentence separator like "line feed" detected: \ref boost::locale::boundary::sentence_sep "sentence_sep"
Naturally to ignore sentence separators we would call \ref boost::locale::boundary::segment_index::rule(rule_type v) "segment_index::rule(rule_type v)"
with sentence_term parameter and then run the iterator.
\code
boost::locale::generator gen;
using namespace boost::locale::boundary;
std::string text= "Hello! How\n"
"are you?\n";
ssegment_index map(sentence,text.begin(),text.end(),gen("en_US.UTF-8"));
map.rule(sentence_term);
for(ssegment_index::iterator it=map.begin(),e=map.end();it!=e;++it)
std::cout << "Sentence [" << *it << "]" << std::endl;
\endcode
However we would get the expected segments:
\verbatim
Sentence [Hello! ]
Sentence [are you?
]
\endverbatim
The reason is that "How\n" is still considered a sentence but selected by different
rule.
This behavior can be changed by setting \ref boost::locale::boundary::segment_index::full_select(bool) "segment_index::full_select(bool)"
to \c true. It would force iterator to join the current segment with all previous segments that may not fit the required rule.
So we add this line:
\code
map.full_select(true);
\endcode
Right after "map.rule(sentence_term);" and get expected output:
\verbatim
Sentence [Hello! ]
Sentence [How
are you?
]
\endverbatim
\subsection boundary_analysys_segments_search Locating Segments
Sometimes it is useful to find a segment that some specific iterator is pointing on.
For example a user had clicked at specific point, we want to select a word on this
location.
\ref boost::locale::boundary::segment_index "segment_index" provides
\ref boost::locale::boundary::segment_index::find() "find(base_iterator p)"
member function for this purpose.
This function returns the iterator to the segmet such that \a p points to.
For example:
\code
text="to be or ";
ssegment_index map(word,text.begin(),text.end(),gen("en_US.UTF-8"));
ssegment_index::iterator p = map.find(text.begin() + 4);
if(p!=map.end())
std::cout << *p << std::endl;
\endcode
Would print:
\verbatim
be
\endverbatim
\note
if the iterator lays inside the segment this segment returned. If the segment does
not fit the selection rules, then the segment following requested position
is returned.
For example: For \ref boost::locale::boundary::word "word" boundary analysis with \ref boost::locale::boundary::word_any "word_any" rule:
- "t|o be or ", would point to "to" - the iterator in the middle of segment "to".
- "to |be or ", would point to "be" - the iterator at the beginning of the segment "be"
- "to| be or ", would point to "be" - the iterator does is not point to segment with required rule so next valid segment is selected "be".
- "to be or| ", would point to end as not valid segment found.
\section boundary_analysys_break Iterating Over Boundary Points
\section boundary_analysys_break_basics Basic Iteration
The \ref boost::locale::boundary::boundary_point_index "boundary_point_index" is similar to
\ref boost::locale::boundary::segment_index "segment_index" in its interface but as a different role.
Instead of returning text chunks (\ref boost::locale::boundary::segment "segment"s, it returns
\ref boost::locale::boundary::boundary_point "boundary_point" object that
represents a position in text - a base iterator used that is used for
iteration of the source text C++ characters.
The \ref boost::locale::boundary::boundary_point "boundary_point" object
also provides a \ref boost::locale::boundary::boundary_point::rule() "rule()" member
function that defines a rule this boundary was selected according to.
\note The beginning and the ending of the text are considered boundary points, so even
an empty text consists of at least one boundary point.
Lets see an example of selecting first two sentences from a text:
\code
using namespace boost::locale::boundary;
boost::locale::generator gen;
// our text sample
std::string const text="First sentence. Second sentence! Third one?";
// Create an index
sboundary_point_index map(sentence,text.begin(),text.end(),gen("en_US.UTF-8"));
// Count two boundary points
sboundary_point_index::iterator p = map.begin(),e=map.end();
int count = 0;
while(p!=e && count < 2) {
++count;
++p;
}
if(p!=e) {
std::cout << "First two sentences are: "
<< std::string(text.begin(),p->iterator())
<< std::endl;
}
else {
std::cout <<"There are less then two sentences in this "
<<"text: " << text << std::endl;
}\endcode
Would print:
\verbatim
First two sentences are: First sentence. Second sentence!
\endverbatim
\section boundary_analysys_break_rules Using Rules
Similarly to the \ref boost::locale::boundary::segment_index "segment_index" the
\ref boost::locale::boundary::boundary_point_index "boundary_point_index" provides
a \ref boost::locale::boundary::boundary_point_index::rule(rule_type r) "rule(rule_type mask)"
member function to filter boundary points that interest us.
It allows to set \ref bl_boundary_word_rules "word", \ref bl_boundary_line_rules "line"
and \ref bl_boundary_sentence_rules "sentence" rules for filtering boundary points.
Lets change an example above a little:
\code
// our text sample
std::string const text= "First sentence. Second\n"
"sentence! Third one?";
\endcode
If we run our program as is on the sample above we would get:
\verbatim
First two sentences are: First sentence. Second
\endverbatim
Which is not something that we really expected. As the "Second\n"
is considered an independent sentence that was separated by
a line separator "Line Feed".
However, we can set set a rule \ref boost::locale::boundary::sentence_term "sentence_term"
and the iterator would use only boundary points that are created
by a sentence terminators like ".!?".
So by adding:
\code
map.rule(sentence_term);
\endcode
Right after the generation of the index we would get the desired output:
\verbatim
First two sentences are: First sentence. Second
sentence!
\endverbatim
You can also use \ref boost::locale::boundary::boundary_point::rule() "boundary_point::rule()" member
function to learn about the reason this boundary point was created by comparing it with an appropriate
mask.
For example:
\code
using namespace boost::locale::boundary;
boost::locale::generator gen;
// our text sample
std::string const text= "First sentence. Second\n"
"sentence! Third one?";
sboundary_point_index map(sentence,text.begin(),text.end(),gen("en_US.UTF-8"));
for(sboundary_point_index::iterator p = map.begin(),e=map.end();p!=e;++p) {
if(p->rule() & sentence_term)
std::cout << "There is a sentence terminator: ";
else if(p->rule() & sentence_sep)
std::cout << "There is a sentence separator: ";
if(p->rule()!=0) // print if some rule exists
std::cout << "[" << std::string(text.begin(),p->iterator())
<< "|" << std::string(p->iterator(),text.end())
<< "]\n";
}
\endcode
Would give the following output:
\verbatim
There is a sentence terminator: [First sentence. |Second
sentence! Third one?]
There is a sentence separator: [First sentence. Second
|sentence! Third one?]
There is a sentence terminator: [First sentence. Second
sentence! |Third one?]
There is a sentence terminator: [First sentence. Second
sentence! Third one?|]
\endverbatim
\subsection boundary_analysys_break_search Locating Boundary Points
Sometimes it is useful to find a specific boundary point according to given
iterator.
\ref boost::locale::boundary::boundary_point_index "boundary_point_index" provides
a \ref boost::locale::boundary::boundary_point_index::find() "iterator find(base_iterator p)" member
function.
It would return an iterator to a boundary point on \a p's location or at the
location following it if \a p does not point to appropriate position.
For example, for word boundary analysis:
- If a base iterator points to "to |be", then the returned boundary point would be "to |be" (same position)
- If a base iterator points to "t|o be", then the returned boundary point would be "to| be" (next valid position)
For example if we want to select 6 words around specific boundary point we can use following code:
\code
using namespace boost::locale::boundary;
boost::locale::generator gen;
// our text sample
std::string const text= "To be or not to be, that is the question.";
// Create a mapping
sboundary_point_index map(word,text.begin(),text.end(),gen("en_US.UTF-8"));
// Ignore wite space
map.rule(word_any);
// define our arbitraty point
std::string::const_iterator pos = text.begin() + 12; // "no|t";
// Get the search range
sboundary_point_index::iterator
begin =map.begin(),
end = map.end(),
it = map.find(pos); // find a boundary
// go 3 words backward
for(int count = 0;count <3 && it!=begin; count ++)
--it;
// Save the start
std::string::const_iterator start = *it;
// go 6 words forward
for(int count = 0;count < 6 && it!=end; count ++)
++it;
// make sure we at valid position
if(it==end)
--it;
// print the text
std::cout << std::string(start,it->iterator()) << std::endl;
\endcode
That would print:
\verbatim
be or not to be, that
\endverbatim
*/

View File

@@ -0,0 +1,209 @@
// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 filetype=cpp.doxygen
/*!
\page building_boost_locale Building The library
Boost.Locale presently supports CMake build system and Boost Build.
\note You need Boost 1.46 and above to use Boost.Build
- \ref building_boost_locale_bb
- \ref building_boost_locale_cmake
- \ref binary_compatibility
\section building_boost_locale_bb Building With Boost.Build
You need Boost 1.46 and above to use Boost.Build, it includes important
patches that allow you to build the library correctly.
\subsection bb_building_deps Dependencies
- Boost 1.46 and above.
- ICU library 3.6 or above is strongly recommended
- If no ICU library is given, iconv support is required under POSIX platforms.
\subsection bb_building_proc Building Process
First of all we need to prepare our sources of Boost with Boost.Locale
- Download latest version of Boost and extract its sources
- Download the latest version of Boost.Locale and extract its sources
- Copy boost and libs subdirectory of Boost.Locale sources into the location
of boost sources.
- Bootstrap latest bjam version running bootstrap.sh or bootstrap.bat.
Now all you need to do is invoke bjam command:
\verbatim
./bjam --with-locale stage
\endverbatim
Or on Windows
\verbatim
.\bjam --with-locale stage
\endverbatim
If you are using custom ICU build or you are using Microsoft Windows
you need to provide a path to location of ICU library using \c -sICU_PATH option
For example:
- If your icu build is placed at \c /opt/icu46 such that the files are placed like\n
\c /opt/icu46/include/unicode/uversion.h\n
\c /opt/icu46/include/unicode/calendar.h\n
\c ... \n
\c /opt/icu46/lib/libicudata.so \n
\c /opt/icu46/lib/libicui18n.so \n
\c ... \n
then you need to provide an option \c -sICU_PATH=/opt/icu46
\verbatim
./bjam --with-locale -sICU_PATH=/opt/icu46 stage
\endverbatim
- If your icu build is placed at <tt>c:\\icu46</tt> such that the files are placed like \n
<tt>c:\\icu46\\include\\unicode\\uversion.h</tt> \n
<tt>c:\\icu46\\include\\unicode\\calendar.h</tt> \n
<tt>...</tt> \n
<tt>c:\\icu46\\bin\\icudt.dll</tt> \n
<tt>c:\\icu46\\bin\\icuin.dll</tt> \n
<tt>...</tt> \n
<tt>c:\\icu46\\lib\\icudt.lib</tt> \n
<tt>c:\\icu46\\lib\\icuin.lib</tt> \n
<tt>...</tt> \n
then you need to provide an option \c -sICU_PATH=c:\\icu46
\verbatim
.\bjam --with-locale -sICU_PATH=c:\icu46 stage
\endverbatim
\note Don't forget to put both debug and release versions of ICU libraries in this path
when using Microsoft Visual Studio so Boost.Build will link correctly debug and release
versions of boost_locale library.
\section bb_build_opts Build Options
Boost.Locale supports following options with values \c off or \c on
- \c boost.locale.icu=off disable build of ICU backend even if ICU library exists
- \c boost.locale.iconv=off or \c boost.locale.iconv=on enable or disable use of iconv
library. It is off by default on Windows and Solaris
- \c boost.locale.winapi=off - disable winapi backend, it is on by default on Windows and Cygwin
- \c boost.locale.std=off or \c boost.locale.winapi=on Disable or enable std backends. \c std backend
is disabled by default when using Sun Studio.
- \c boost.locale.posix=on or \c boost.locale.posix=off Enable or disable support of POSIX backend,
it is on by default on Linux and Mac OS X
Also Boost.Locale supports following options
- \c -sICU_PATH=/path/to/location/of/icu - the location of custom ICU library
- \c -sICONV_PATH=/path/to/location/of/iconv - the location of custom iconv library
For example:
- Build the library on Windows with ICU backend only:
\verbatim
.\bjam boost.locale.winapi=off boost.locale.std=off -sICU_PATH=c:\icu46 --with-locale stage
\endverbatim
- Build the library on Linux with std backend only
\verbatim
.\bjam boost.locale.posix=off boost.locale.icu=off --with-locale stage
\endverbatim
\section bb_build_test Running Unit Tests
You can run unit tests by invoking \c bjam with \c libs/locale/test project parameter
\verbatim
./bjam libs/locale/test
\endverbatim
\section building_boost_locale_cmake Building With CMake
\note CMake build does not provide mangled library names like boost_locale-mt-gd.lib, so if you
rely on auto-linking use Boost.Build.
\subsection cmake_building_deps Dependencies
- CMake 2.6 and above.
- Boost 1.35 and above.
- Boost.Thread (when using ICU or when using Boost < 1.43)
- ICU library 3.6 or above is strongly recommended
- If no ICU library is given, iconv support is required under POSIX platforms.
\subsection cmake_building_proc Building Process
The library build should be fairly simple for users familiar with CMake.
\note
- MSVC Users: use \c nmake for building the library, MSVC projects are not supported!
- Windows users: don't forget to set the PATH environment variable to point to ICU's dlls.
The simplest way to build the library is:
- Extract its sources
- Go to the sources directory
- Create a subdirectory named "build"
- Go into this directory and run:
\code
cmake ..
make
make test
\endcode
For windows you may need to specify:
\code
cmake -DCMAKE_INCLUDE_PATH=/path/to/icu/include:/path/to/boost/include -DCMAKE_LIBRARY_PATH=/path/to/icu/lib ..
\endcode
And then:
\code
nmake
nmake test
\endcode
Or
\code
make && make test
\endcode
Depending on your compiler.
\section cmake_build_opts Build Options
This options can be passed to CMake to configure the library to your needs.
- \c DISABLE_SHARED - build only the static library
- \c DISABLE_STATIC - build only the shared library
- \c DISABLE_ICU - Disable the ICU backend (strongly discouraged)
- \c DISABLE_STD_BACKED - Disable the "std" backend
- \c DISABLE_POSIX_BACKEND - Disable the "posix" backend (ON by default on all but Linux and Mac OS X)
- \c DISABLE_WINAPI_BACKEND - Disable the "winapi" backend (ON by default on POSIX platforms).
- \c DISABLE_ICONV - Disable iconv-based conversion (ON by default on Windows)
Useful CMake options:
- \c CMAKE_INCLUDE_PATH - path to the boost library (if not system-wide)
- \c CMAKE_INSTALL_PREFIX - installation path
- \c CMAKE_BUILD_TYPE - default is Debug on Windows/MSVC and RelWithDebInfo on all other platforms.
Examples:
- Build Boost.Locale with only the "icu" backend on Linux
\code
cmake -DDISABLE_POSIX_BACKEND=ON -DDISABLE_STD_BACKEND=ON -DDISABLE_ICONV=ON ..
\endcode
- Build Boost.Locale with the "winapi" and "std" backends on Windows
\code
cmake -G "NMake Makefiles" -DDISABLE_ICU_BACKEND=ON -DCMAKE_INCLUDE_PATH=c:/boost_1_43_0 ..
\endcode
\section binary_compatibility Binary Compatibility
Boost.Locale is built with binary compatibility in mind. Switching localization back ends on or off,
or using iconv or not, does not affect binary compatibility. So if a dynamic library was built
with all possible backends, other dynamic libraries compiled with, for example, only the \c std, \c posix
or \c winapi backends would still be binary-compatible with it.
However this definitely has an effect on some features. For example, if you
try to use boundary analysis or a calendar facet when the library does not support the icu backend
you would get an exception.
*/

143
doc/charset_handling.txt Normal file
View File

@@ -0,0 +1,143 @@
// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 filetype=cpp.doxygen
/*!
\page charset_handling Character Set Conversions
\section codecvt Convenience Interface
Boost.Locale provides \ref boost::locale::conv::to_utf() "to_utf", \ref boost::locale::conv::from_utf() "from_utf" and
\ref boost::locale::conv::utf_to_utf() "utf_to_utf" functions in
the \c boost::locale::conv namespace. They are simple and
convenient functions to convert a string to and from
UTF-8/16/32 strings and strings using other encodings.
For example:
\code
std::string utf8_string = to_utf<char>(latin1_string,"Latin1");
std::wstring wide_string = to_utf<wchar_t>(latin1_string,"Latin1");
std::string latin1_string = from_utf(wide_string,"Latin1");
std::string utf8_string2 = utf_to_utf<char>(wide_string);
\endcode
This function may use an explicit encoding name like "Latin1" or "ISO-8859-8",
or use std::locale as a parameter to fetch this information from it.
It also receives a policy parameter that tells it how to behave if the
conversion can't be performed (i.e. an illegal or unsupported character is found).
By default this function skips all illegal characters and tries to do the best it
can, however, it is possible ask it to throw
a \ref boost::locale::conv::conversion_error "conversion_error" exception
by passing the \c stop flag to it:
\code
std::wstring s=to_utf<wchar_t>("\xFF\xFF","UTF-8",stop);
// Throws because this string is illegal in UTF-8
\endcode
\section codecvt_codecvt std::codecvt facet
Boost.Locale provides stream codepage conversion facets based on the \c std::codecvt facet.
This allows conversion between wide-character encodings and 8-bit encodings like UTF-8, ISO-8859 or Shift-JIS.
Most of compilers provide such facets, but:
- Under Windows MSVC does not support UTF-8 encodings at all.
- Under Linux the encodings are supported only if the required locales are generated. For example
it may be impossible to create a \c he_IL.CP1255 locale even when the \c he_IL locale is available.
Thus Boost.Locale provides an option to generate code-page conversion facets for use with
Boost.Iostreams filters or \c std::wfstream. For example:
\code
std::locale loc= generator().generate("he_IL.UTF-8");
std::wofstream file.
file.imbue(loc);
file.open("hello.txt");
file << L"שלום!" << endl;
\endcode
Would create a file \c hello.txt encoded as UTF-8 with "שלום!" (shalom) in it.
\section codecvt_iostreams_integration Integration with Boost.Iostreams
You can use the \c std::codecvt facet directly, but this is quite tricky and
requires accurate buffer and error management.
You can use the \c boost::iostreams::code_converter class for stream-oriented
conversions between the wide-character set and narrow locale character set.
This is a sample program that converts wide to narrow characters for an arbitrary
stream:
\code
#include <boost/iostreams/stream.hpp>
#include <boost/iostreams/categories.hpp>
#include <boost/iostreams/code_converter.hpp>
#include <boost/locale.hpp>
#include <iostream>
namespace io = boost::iostreams;
// Device that consumes the converted text,
// In our case it just writes to standard output
class consumer {
public:
typedef char char_type;
typedef io::sink_tag category;
std::streamsize write(const char* s, std::streamsize n)
{
std::cout.write(s,n);
return n;
}
};
int main()
{
// the device that converts wide characters
// to narrow
typedef io::code_converter<consumer> converter_device;
// the stream that uses this device
typedef io::stream<converter_device> converter_stream;
consumer cons;
// setup out converter to work
// with he_IL.UTF-8 locale
converter_device dev;
boost::locale::generator gen;
dev.imbue(gen("he_IL.UTF-8"));
dev.open(cons);
converter_stream stream;
stream.open(dev);
// Now wide characters that are written
// to the stream would be given to
// our consumer as narrow characters
// in UTF-8 encoding
stream << L"שלום" << std::flush;
}
\endcode
\section codecvt_limitations Limitations of std::codecvt
The Standard does not provide any information about \c std::mbstate_t that could be used to save
intermediate code-page conversion states. It leaves the definition up to the compiler implementation, making it
impossible to reimplement <tt>std::codecvt<wchar_t,char,mbstate_t></tt> for stateful encodings.
Thus, Boost.Locale's \c codecvt facet implementation may be used with stateless encodings like UTF-8,
ISO-8859, and Shift-JIS, but not with stateful encodings like UTF-7 or SCSU.
\b Recommendation: Prefer the Unicode UTF-8 encoding for \c char based strings and files in your application.
\note
The implementation of codecvt for single byte encodings like ISO-8859-X and for UTF-8 is very efficent
and would allow fast conversion of the content, however its performance may be sub-optimal for
double-width encodings like Shift-JIS, due to the stateless problem described above.
*/

44
doc/collation.txt Normal file
View File

@@ -0,0 +1,44 @@
// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 filetype=cpp.doxygen
/*!
\page collation Collation
Boost.Locale provides a \ref boost::locale::collator "collator" class, derived from \c std::collate, that adds support for
primary, secondary, tertiary, quaternary and identical comparison levels. They can be approximately defined as:
-# Primary -- ignore accents and character case, comparing base letters only. For example "facade" and "Façade" are the same.
-# Secondary -- ignore character case but consider accents. "facade" and "façade" are different but "Façade" and "façade" are the same.
-# Tertiary -- consider both case and accents: "Façade" and "façade" are different. Ignore punctuation.
-# Quaternary -- consider all case, accents, and punctuation. The words must be identical in terms of Unicode representation.
-# Identical -- as quaternary, but compare code points as well.
There are two ways of using the \ref boost::locale::collator "collator" facet: directly, by calling its member functions \ref boost::locale::collator::compare() "compare", \ref boost::locale::collator::transform() "transform" and \ref
boost::locale::collator::hash() "hash", or indirectly by using the \ref boost::locale::comparator "comparator" template
class in STL algorithms.
For example:
\code
wstring a=L"Façade", b=L"facade";
bool eq = 0 == use_facet<collator<wchar_t> >(loc).compare(collator_base::secondary,a,b);
wcout << a <<L" and "<<b<<L" are " << (eq ? L"identical" : L"different")<<endl;
\endcode
\c std::locale is designed to be useful as a comparison class in STL collections and algorithms.
To get similar functionality with comparison levels, you must use the comparator class.
\code
std::map<std::string,std::string,comparator<char,collator_base::secondary> > strings;
// Now strings uses the default system locale for string comparison
\endcode
You can also set a specific locale or level when creating and using the \ref boost::locale::comparator "comparator" class:
\code
comparator<char> comp(some_locale,some_level);
std::map<std::string,std::string,comparator<char> > strings(comp);
\endcode
*/

92
doc/conversions.txt Normal file
View File

@@ -0,0 +1,92 @@
// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 filetype=cpp.doxygen
/*!
\page conversions Text Conversions
There is a set of functions that perform basic string conversion operations:
upper, lower and \ref term_title_case "title case" conversions, \ref term_case_folding "case folding"
and Unicode \ref term_normalization "normalization". These are \ref boost::locale::to_upper "to_upper" , \ref boost::locale::to_lower "to_lower", \ref boost::locale::to_title "to_title", \ref boost::locale::fold_case "fold_case" and \ref boost::locale::normalize "normalize".
All these functions receive an \c std::locale object as parameter or use a global locale by default.
Global locale is used in all examples below.
\section conversions_case Case Handing
For example:
\code
std::string grussen = "grüßEN";
std::cout <<"Upper "<< boost::locale::to_upper(grussen) << std::endl
<<"Lower "<< boost::locale::to_lower(grussen) << std::endl
<<"Title "<< boost::locale::to_title(grussen) << std::endl
<<"Fold "<< boost::locale::fold_case(grussen) << std::endl;
\endcode
Would print:
\verbatim
Upper GRÜSSEN
Lower grüßen
Title Grüßen
Fold grüssen
\endverbatim
You may notice that there are existing functions \c to_upper and \c to_lower in the Boost.StringAlgo library.
The difference is that these function operate over an entire string instead of performing incorrect character-by-character conversions.
For example:
\code
std::wstring grussen = L"grüßen";
std::wcout << boost::algorithm::to_upper_copy(grussen) << " " << boost::locale::to_upper(grussen) << std::endl;
\endcode
Would give in output:
\verbatim
GRÜßEN GRÜSSEN
\endverbatim
Where a letter "ß" was not converted correctly to double-S in first case because of a limitation of \c std::ctype facet.
This is even more problematic in case of UTF-8 encodings where non US-ASCII are not converted at all.
For example, this code
\code
std::string grussen = "grüßen";
std::cout << boost::algorithm::to_upper_copy(grussen) << " " << boost::locale::to_upper(grussen) << std::endl;
\endcode
Would modify ASCII characters only
\verbatim
GRüßEN GRÜSSEN
\endverbatim
\section conversions_normalization Unicode Normalization
Unicode normalization is the process of converting strings to a standard form, suitable for text processing and
comparison. For example, character "ü" can be represented by a single code point or a combination of the character "u" and the
diaeresis "¨". Normalization is an important part of Unicode text processing.
Unicode defines four normalization forms. Each specific form is selected by a flag passed
to \ref boost::locale::normalize() "normalize" function:
- NFD - Canonical decomposition - boost::locale::norm_nfd
- NFC - Canonical decomposition followed by canonical composition - boost::locale::norm_nfc or boost::locale::norm_default
- NFKD - Compatibility decomposition - boost::locale::norm_nfkd
- NFKC - Compatibility decomposition followed by canonical composition - boost::locale::norm_nfkc
For more details on normalization forms, read <a href="http://unicode.org/reports/tr15/#Norm_Forms">this article</a>.
\section conversions_notes Notes
- \ref boost::locale::normalize() "normalize" operates only on Unicode-encoded strings, i.e.: UTF-8, UTF-16 and UTF-32 depending on the
character width. So be careful when using non-UTF encodings as they may be treated incorrectly.
- \ref boost::locale::fold_case() "fold_case" is generally a locale-independent operation, but it receives a locale as a parameter to
determine the 8-bit encoding.
- All of these functions can work with an STL string, a NUL terminated string, or a range defined by two pointers. They always
return a newly created STL string.
- The length of the string may change, see the above example.
*/

View File

@@ -0,0 +1,203 @@
// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 filetype=cpp.doxygen
/*!
\page dates_times_timezones Working with dates, times, timezones and calendars.
\section dates_times_timezones_intro Introduction
There are several important flaws in the standard C, C++ and Boost libraries that handle dates and time:
-# The biggest flaw of most libraries that provide operations over dates is the fact that they only support
the Gregorian calendar. \c boost::date_time , \c std::tm , and standard functions like \c localtime and \c gmtime,
all assume the Gregorian calendar.
-# The information about local start of week is not provided.
\n
For example the standard C and C++ library has \c mktime and \c localtime, but they do not give
user the information about the first day of week. This information is locale dependent.
It is Monday in France and it is Sunday in United States.
Boost.Locale provides generic \ref boost::locale::date_time "date_time", and \ref boost::locale::calendar "calendar" classes
that allow you to perform operations on dates and times for non-Gregorian calendars such as Hebrew, Islamic, Japanese and others.
\ref using_localization_backends "Non-ICU based backends" support the Gregorian calendar only.
Unlike \c boost::date_time, they are fully aware of the local first day of week. Thus,
if the current day of week is Monday, then setting "current day of week" to Sunday would move the actual date 6 days
forward in Russian or French locales and move one day backward in USA and Israeli locales.
\section dates_times_timezones_dt Handling Dates and Time
- \ref boost::locale::calendar -- represents generic information about the calendar, independent from a specific time point. For example, you can get the maximum number of days in a month for a specific calendar.
- \ref boost::locale::date_time -- represents a time point. It is constructed from a calendar and allows manipulation of various time periods.
- \ref boost::locale::period -- holds a list of functions that represent various periods, such as month, year, day, and hour, allowing
manipulation of dates and times. You can add periods, multiply them by integers, get or set them, or add them to
\ref boost::locale::date_time "date_time" objects.
For example:
\code
using namespace boost::locale;
date_time now; // Create date_time class with default calendar initialized to current time
date_time tomorrow = now + period::day();
cout << "Let's meet tomorrow at " << as::date << tomorrow << endl;
date_time some_point = period::year(1995) + period::january() + period::day(1);
// Set some_point's date to 1995-Jan-1.
cout << "The "<< as::date << some_point << " is the "
<< as::ordinal << some_point / period::day_of_week_local() << " day of the week" << endl;
\endcode
You can calculate the difference between dates by dividing the difference by a period:
\code
date_time now;
cout << " There are " << (now + 2 * period::month() - now) / period::day() << " days "
"between " << as::date << now << " and " << now + 2*period::month() << endl;
\endcode
You can also use different syntax (less operator overloading)
\code
date_time now;
cout << " There are " << period::day(now + period::month(2) - now) << " days "
"between " << as::date << now << " and " << now + period::month(2) << endl;
\endcode
\ref boost::locale::date_time "date_time" -- provides the member functions \ref boost::locale::date_time::minimum() "minimum" and
\ref boost::locale::date_time::maximum() "maximum" to get the information about smallest and largest
possible values of a certain period for a specific time.
For example, for February the <tt>maximum(period::day())</tt> would be 28 (or 29 for a leap year), and for January it would be 31.
\note Be very careful with assumptions about calendars. For example, in the Hebrew calendar, the
number of months is different for leap years and non-leap years.
We recommend you to look at the \c calendar.cpp example provided with this library to get an understanding of how
to manipulate dates and times using these classes.
To convert between various calendar dates, you may get the current POSIX time via the
\ref boost::locale::date_time::time "time" member function.
For example:
\code
using namespace boost::locale;
using namespace boost::locale::period;
generator gen;
// Create locales with Hebrew and Gregorian (default) calendars.
std::locale l_hebrew=gen("en_US.UTF-8@calendar=hebrew");
std::locale l_gregorian=gen("en_US.UTF-8");
// Create a Gregorian date from fields
date_time greg(year(2010) + february() + day(5),l_gregorian);
// Assign a time point taken from the Gregorian date to date_time with
// the Hebrew calendar
date_time heb(greg.time(),l_hebrew);
// Now we can query the year.
std::cout << "Hebrew year is " << heb / year << std::endl;
\endcode
\note
Non-ICU based backends support the same date-time range as \c mktime and \c localtime C library functions.
- Unix 32 bit: dates between 1901 and 2038
- Unix 64 bit: dates from 1 BC
- Windows: dates from 1970. If the \c time_t is 32 bits wide (mingw), then the upper limit is year 2038
\section dates_times_timezones_tz Time Zone
The current operating system's time zone is used by default, however the time zone can be modified at
several different levels:
-# Calendar level: you can specify a timezone when creating a new instance of \ref boost::locale::calendar
in its constructor.
-# iostream level: you can use \ref boost::locale::as::time_zone "as::time_zone" manipulator to set a specific
time zone to the iostream so all dates and times would be represented in this time zone
-# You can specify the default global time zone by calling: \ref boost::locale::time_zone::global(std::string const &).
This time zone would be the default one for newly created iostream object and calendar instances.
\note
\ref using_localization_backends "Non-ICU based backends" support only two kinds of time zones:
-# The current OS time zone, as it is handled by \c localtime and \c mktime the standard
library functions - the default time zone
-# Simple time zone in format "GMT+HH:MM" - the time zone represented using fixed shift from
the UTC without support of daylight saving time.
\section dates_times_timezones_io I/O Operations on date_time objects
Writing a \ref boost::locale::date_time "date_time" is equivalent
to:
- Applying \ref boost::locale::as::datetime "as::datetime" manipulator on the stream
- Writing POSIX time as number that is fetched by calling \ref boost::locale::date_time::time()
"date_time::time()" function.
- Reverting the manipulator effect back.
For example this code:
\code
using namespace boost::locale;
date_time now;
std::cout << now << std::endl;
\endcode
Would print in the default format, something like:
\verbatim
2/3/2011 12:00 am
\endverbatim
However if you need to change the default behavior (for example show only date),
then you need to use specific iostream manipulator in order to display current date or time,
it would override the default formatting.
For example
\code
using namespace boost::locale;
date_time now;
std::cout << as::date << now << std::endl;
\endcode
Would print something like:
\verbatim
2/3/2011
\endverbatim
This is important to remember that \c date_time object is always rendered and parsed in the context
of the \c iostream's locale and time zone and not in the context of specific \c date_time object.
\section dates_times_timezones_qna Questions and Answers
<b>Why should I use Boost.Locale over Boost.DateTime when I need Gregorian calendar only?</b>
- Boost.DateTime is locale agnostic library and ignores the fact that the first day of week
varies by the locale.
- Boost.Locale provides a unified access to date and time in time zone aware way.
It represents a time as universal scalar - the POSIX time and over that builds dates,
local times and time-zones handling.
\n
For example, <tt>date_time(some_time.time() + 3600)</tt> may be not equal to
<tt>some_time + hour()</tt>, because of the daylight savings time.
<b>Why don't you use Boost.DateTime time zone support?</b>
Boost.DateTime's time zone support is broken. Time zones can not be represented with
a simple table of rules where daylight saving depend only on certain n'th day of week in month.
The daylight savings time may vary by year, political issues and many other things.
Most of the modern operating systems (Linux, *BSD, Mac OS X, OpenVMS) and many important software packages
(ICU, Java, Python) use so called Olson database in order to handle daylight saving time
correctly.
If you need full time zone database support, then you should use ICU library.
*/

View File

@@ -0,0 +1,57 @@
// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 filetype=cpp.doxygen
/*!
\page default_encoding_under_windows Default Encoding under Microsoft Windows
All modern operating systems use Unicode.
- Unix operating system family use UTF-8 encoding by default.
- Microsoft Windows had migrated to Wide/UTF-16 API.
The narrow encodings had been deprecated and the native OS API became so called "Wide API"
As a result of radically different approaches, it is very hard to write portable Unicode aware applications.
Boost Locale fully supports both narrow and wide API. The default character
encoding is assumed to be UTF-8 on Windows.
So if the default operating system Locale is "English_USA.1252" the default
locale for Boost.Locale on Windows would be "en_US.UTF-8".
When the created locale object is installed globally then any libraries
that use \c std::codecvt for conversion between narrow API and the native
wide API would handle UTF-8 correctly.
A good example of such library is Boost.Filesystem v3.
For example
\code
#include <boost/locale.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/filesystem/fstream.hpp>
int main()
{
// Create and install global locale
std::locale::global(boost::locale::generator().generate(""));
// Make boost.filesystem use it
boost::filesystem::path::imbue(std::locale());
// Now Works perfectly fine with UTF-8!
boost::filesystem::ofstream hello("שלום.txt");
}
\endcode
However such behavior may break existing software that assumes that the current
encoding is single byte encodings like code page 1252.
\ref boost::locale::generator class has a property \ref boost::locale::generator::use_ansi_encoding() "use_ansi_encoding()"
that allows to change the behavior to legacy one and select an ANSI code page as
default system encoding.
So, when the current locale is "English_USA.1252" and the \c use_ansi_encoding is turned on
then the default locale would be "en_US.windows-1252"
\note \c winapi backend does not support ANSI encodings, thus UTF-8 encoding is always used for narrow characters.
*/

42
doc/faq.txt Normal file
View File

@@ -0,0 +1,42 @@
// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 filetype=cpp.doxygen
/*!
\page faq Frequently Asked Questions
- \anchor faq_bad_cast <b>I try to use some Boost.Locale functions and I get an \c std::bad_cast exception thrown?</b>
\n
\n
\b Answer: You probably try to use incorrect \c std::locale object. All Boost.Locale tools relay on \c std::locale object's facets.
The locale object should be generated with \ref boost::locale::generator "generator" class and then passed to
the function or alternatively global locale should be set using \c std::locale::global() function such that
global locale (and default created one) would have required facets to use.
- \anchor faq_number <b>I had installed global locale and try to write something to stream but still get wrong output?</b>
For example:
\code
#include <boost/locale.hpp>
#include <iostream>
int main()
{
boost::locale::generator gen;
std::locale::global(gen(""));
std::cout << boost::locale::as::date << std::time(0) << std::endl;
}
\endcode
Prints a number instead of a date.
\n
\b Answer: You forget to imbue the locale to the stream. Changing the global locale does not affect the
locale in existing \c iostream objects. Thus because \c std::out and other global streams were created
before changing the global locale Boost.Locale manipulators have no effect. You need to write:
\code
#include <boost/locale.hpp>
#include <iostream>
int main()
{
boost::locale::generator gen;
std::locale l = gen("");
std::locale::global(l);
std::cout.imbue(l);
std::cout << boost::locale::as::date << std::time(0) << std::endl;
}
\endcode
*/

5
doc/footer.html Normal file
View File

@@ -0,0 +1,5 @@
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,154 @@
// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 filetype=cpp.doxygen
/*!
\page formatting_and_parsing Numbers, Time and Currency formatting and parsing
All formatting and parsing is performed via the standard I/O streams. Each of the above information types is represented as a number.
The formatting information is set using iostream manipulators. All manipulators are placed in the boost::locale::as namespace.
For example:
\code
cout << as::currency << 123.45 << endl;
// display 123.45 in local currency representation.
cin >> as::currency >> x ;
// Parse currency representation and store it in x
\endcode
There is a special manipulator \c as::posix that "unsets" locale-specific settings and returns them to the default \c iostream formatting
and parsing methods. Please note, such formats may still be localized by the default \c std::num_put and \c std::num_get facets.
\section numbers_formatting Numbers and number manipulators
Here are the manipulators for number formatting:
- \c as::number -- format number according to local specifications, it takes into account various \c std::ios_base flags like scientific
format and precision.
\n
- \c as::percent -- format number as "percent" format. For example:
\code
cout << as::percent << 0.25 <<endl;
\endcode
Would create an output that may look like this:
\verbatim
25%
\endverbatim
\n
- \c as::spellout -- spell the number. For example, under the English locale, 103 may be displayed as "one hundred three".
\b Note: not all locales provide rules for spelling numbers. In such a case the number would be displayed in decimal format.
\n
- \c as::ordinal -- display an order-of element. For example "2" would be displayed as "2nd" under the English locale. As in
the above case, not all locales provide ordinal rules.
\section currency_formatting Currency formatting
These are the manipulators for currency formatting:
- \c as::currency -- set the format to currency mode.
- \c as::currency_iso -- change the currency format to international, like "USD" instead of "$". This flag is supported
when using ICU 4.2 and above.
- \c as::currency_national -- change currency format to national, like "$".
- \c as::currency_default -- return to the default (national) currency format.
\note \c as::currency_XYZ manipulators have no effect on general formatting, only on the currency format. You must use both currency
and number manipulators to use a non-default format.
\section date_and_time_formatting Date and Time formatting
Dates and times are represented as POSIX time. When date-time formatting is turned on in the \c iostream, each number is treated as a
POSIX time. The number may be an integer or a double.
There are four major manipulators for Date and Time formatting:
- \c as::date -- date only
- \c as::time -- time only
- \c as::datetime -- both date and time
- \c as::ftime -- parameterized manipulator that allows specification of time in the format that is used in the \c strftime function.
\b Note: not all formatting flags of \c strftime are supported.
For example:
\code
time_t now=time(0);
cout << "Today is "<< as::date << now << " and tomorrow is " << now+24*3600 << endl;
cout << "Current time is "<< as::time << now << endl;
cout << "The current weekday is "<< as::ftime("%A") << now << endl;
\endcode
More fine-grained control of date-time formatting is also available:
- \c as::time_default , \c as::time_short , \c as::time_medium , \c as::time_long , \c as::time_full -- change time formatting.
- \c as::date_default , \c as::date_short , \c as::date_medium , \c as::date_long , \c as::date_full -- change date formatting.
These manipulators, when used together with the \c as::date, \c as::time, or \c as::datetime manipulators, change the date-time representation.
The default format is medium.
By default, the date and time are shown in the local time zone. This behavior may be changed with the following manipulators:
- \c as::gmt -- display date and time in GMT.
- \c as::local_time -- display in local time zone (default).
- \c as::time_zone -- parameterized manipulator that sets the time-zone ID for date-time formatting and parsing. It
takes a string parameter that represents the time zone ID.
For example:
\code
double now=time(0);
cout << as::datetime << as::local_time << "Local time is: "<< now << endl;
cout << as::gmt << "GMT Time is: "<< now <<endl;
cout << as::time_zone("EST") << "Eastern Standard Time is: "<< now <<endl;
\endcode
There is a list of supported \c strftime flags by ICU backend:
- \c \%a -- Abbreviated weekday (Sun.)
- \c \%A -- Full weekday (Sunday)
- \c \%b -- Abbreviated month (Jan.)
- \c \%B -- Full month (January)
- \c \%c -- Locale date-time format. \b Note: prefer using \c as::datetime
- \c \%d -- Day of Month [01,31]
- \c \%e -- Day of Month [1,31]
- \c \%h -- Same as \c \%b
- \c \%H -- 24 clock hour [00,23]
- \c \%I -- 12 clock hour [01,12]
- \c \%j -- Day of year [1,366]
- \c \%m -- Month [01,12]
- \c \%M -- Minute [00,59]
- \c \%n -- New Line
- \c \%p -- AM/PM in locale representation
- \c \%r -- Time with AM/PM, same as \c \%I:\%M:\%S \%p
- \c \%R -- Same as \c \%H:\%M
- \c \%S -- Second [00,61]
- \c \%t -- Tab character
- \c \%T -- Same as \c \%H:\%M:\%S
- \c \%x -- Local date representation. **Note:** prefer using \c as::date
- \c \%X -- Local time representation. **Note:** prefer using \c as::time
- \c \%y -- Year [00,99]
- \c \%Y -- 4 digits year. (2009)
- \c \%Z -- Time Zone
- \c \%\% -- Percent symbol
Unsupported \c strftime flags are: \c \%C , \c \%u , \c \%U , \c \%V , \c \%w , \c \%W . Also, the \c O and \c E modifiers are not supported.
\b General \b recommendations
- Prefer using generic date-time manipulators rather than specifying the full format using \c as::ftime.
- Remember that current calendars may be not Gregorian.
\section formatting_internals Internals
Formatting information is stored in a stream class by using the \c xalloc, \c pword, and \c register_callback member functions
of \c std::ios_base . All the information is stored and managed using a special object bound to \c iostream, and the manipulators just
change its state.
When a number is written to or read from the stream, a custom Boost.Locale facet accesses the object and checks the required formatting
information. Then it creates a special object that actually formats the number and caches it in the \c iostream. The
next time a number is written to the stream, the same formatter would be used unless some flags had changed and formatter object is
invalid.
*/

2
doc/gendoc.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
rm -fr html && doxygen && cp index.template.html html/index.html

View File

@@ -0,0 +1,88 @@
// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 filetype=cpp.doxygen
/*!
\page gettext_for_windows Using Gettext Tools on Windows
In order to get the Gettext tools like \c msgfmt, \c msgmerge, \c xgettext for Windows you have
basically several options:
- Download the package from <a href="http://cppcms.sourceforge.net">CppCMS</a> project (where the Boost.Locale was developed originally)
- Download the a set of packages from MinGW project
- Build it on your own
- Use Cygwin's packages
\section gettext_for_windows_cppcms Getting gettext utilities from CppCMS project
Boost.Locale was developed for needs of <a href="http://cppcms.sourceforge.net">CppCMS</a> project
and thus CppCMS hosts a convince package for Windows users of pre-build, statically liked \c gettext
runtime utilities like \c xgettext, \c msgfmt, etc.
So you can download a zip file \c gettext-tools-static-XXX.zip from a CppCMS downloads page
under <a href="https://sourceforge.net/projects/cppcms/files/boost_locale/gettext_for_windows/">boost_locale/gettext_for_windows</a>.
Extract the file and use the executable files inside.
\section gettext_for_windows_mingw Getting Gettext via MinGW project
MinGW project provides GNU tools for Windows, including GNU compilers and various runtime utilities.
Thus you can always install full MinGW distribution including gettext tools. However, if you
a want minimalistic runtime version that allows you to extract messages and create catalogs
you need to download several packages manually.
In order to install Gettext via MinGW distributing you need to download, a GCC's runtime,
iconv library and gettext itself.
So visit a <a href="https://sourceforge.net/projects/mingw/files/">downloads page</a> of MinGW project
and download following files (chose the latest versions of each package):
- From: \c MinGW/BaseSystem/GCC/Version4/gcc-xxx/ \n
File: \c libgcc-xxx-mingw32-dll-1.tar.lzma
- From \c MinGW/Gettext/gettext-yyy/ \n
Files: \c gettext-yyy-mingw32-dev.tar.lzma,
\c libgettextpo-yyy-mingw32-dll-0.tar.lzma,
\c libintl-yyy-mingw32-dll-8.tar.lzma
- From \c MinGW/libiconv/libiconv-zzz/ \n
Files: \c libiconv-zzz-mingw32-dll-2.tar.lzma, \c libcharset-zzz-mingw32-dll-1.tar.lzma
For example, at June 23, 2011 it was:
- GNU Runtime: \c libgcc-4.5.2-1-mingw32-dll-1.tar.lzma
- \c iconv: \c libiconv-1.13.1-1-mingw32-dll-2.tar.lzma and \c libcharset-1.13.1-1-mingw32-dll-1.tar.lzma
- \c gettext: \c libintl-0.17-1-mingw32-dll-8.tar.lzma, \c libgettextpo-0.17-1-mingw32-dll-0.tar.lzma and \c gettext-0.17-1-mingw32-dev.tar.lzma.
After you download the packages, extract all the files to the same directory using tools like
\c 7zip and you'll get all the executables and \c dll's you need under \c bin subdirectory.
\note the version on MinGW site is slightly outdated (0.17.1) while gettext provides currently 0.18.1.
\section gettext_for_windows_build Building latest version on your own.
You can build your own version of GNU Gettext using MinGW environment, you'll need to have up-to-date gcc compiler
and the shell, you'll need to install iconv first and then build a gettext with it.
Basic and simplest way would be to open a MinGW shell
Build \c iconv:
\code
cd libiconv-SOMEVERSION
./configure --prefix=c:/mygettext --disable-shared
make
make install
cd ..
cd gettext-SOMEVERSION
./configure --prefix=c:/mygettext --disable-shared --with-libiconv-prefix=c:/mygettext
make
make install
\endcode
And now you have in <tt>c:\\mygettext\\bin</tt> all appropriate executable files
to use.
\section gettext_for_windows_cygwin Using Cygwin
If you already have Cygwin - just use gettext tools provided with it.
*/

71
doc/glossary.txt Normal file
View File

@@ -0,0 +1,71 @@
// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 filetype=cpp.doxygen
/*!
\page glossary Glossary
- \anchor term_bmp <b>Basic Multilingual Plane (BMP)</b> -- a part of
the <i>Universal Character Set</i> with code points in the range U-0000--U-FFFF.
The most commonly used UCS characters lay in this plane, including all Western, Cyrillic, Hebrew, Thai, Arabic and CJK characters.
However there are many characters that lay outside the BMP and they are absolutely required for correct support of East Asian languages.
- \b Code \b Point -- a unique number that represents a "character" in the Universal Character Set. Code points lay in the range of
0-0x10FFFF, and are usually displayed as U+XXXX or U+XXXXXX, where X represents a hexadecimal digit.
- \anchor term_collation \b Collation -- a sorting order for text, usually alphabetical. It can differ between languages and countries, even for the same
characters.
- \b Encoding - a representation of a character set. Some encodings are capable of representing the full UCS range, like UTF-8, and
others can only represent a subset of it -- ISO-8859-8 represents only a small subset of about 250 characters of the UCS.
\n
Non-Unicode encodings are still very popular, for example the Latin-1 (or ISO-8859-1) encoding covers most of the characters for
Western European languages and significantly simplifies the processing of text for applications designed to handle only such languages.
\n
For Boost.Locale you should provide an eight-bit (\c std::string) encoding as part of the locale name, like \c en_US.UTF-8 or
\c he_IL.cp1255 . \c UTF-8 is recommended.
- \b Facet - or \c std::locale::facet -- a base class that every object that describes a specific locale is derived from. Facets can be
added to a locale to provide additional culture information.
- \b Formatting - representation of various values according to locale preferences. For example, a number 1234.5 (C representation)
should be displayed as 1,234.5 in the US locale and 1.234,5 in the Russian locale. The date November 1st, 2005 would be represented as
11/01/2005 in the United States, and 01.11.2005 in Russia. This is an important part of localization.
\n
For example: does "You have to bring 134,230 kg of rice on 04/01/2010" means "134 tons of rice on the first of April" or "134 kg 230 g
of rice on January 4th"? That is quite different.
- \b Gettext - The GNU localization library used for message formatting. Today it is the de-facto standard localization library in the
Open Source world. Boost.Locale message formatting is entirely built on Gettext message catalogs.
- \b Locale - a set of parameters that define specific preferences for users in different cultures. It is generally defined by language,
country, variants, and encoding, and provides information like: collation order, date-time formatting, message formatting, number
formatting and many others. In C++, locale information is represented by the \c std::locale class.
- \b Message \b Formatting -- the representation of user interface strings in the user's language. The process of translation of UI
strings is generally done using some dictionary provided by the program's translator.
- \b Message \b Domain -- in \a gettext terms, the keyword that represents a message catalog. This is usually an application name. When
\a gettext and Boost.Locale search for a specific message catalog, they search in the specified path for a file named after the domain.
- \anchor term_normalization
\b Normalization - Unicode normalization is the process of converting strings to a standard form, suitable for text processing and
comparison. For example, character "ü" can be represented by a single code point or a combination of the character "u" and the
diaeresis "¨". Normalization is an important part of Unicode text processing.
\n
Normalization is not locale-dependent, but because it is an important part of Unicode processing, it is included in the Boost.Locale
library.
- \b UCS-2 - a fixed-width Unicode encoding, capable of representing only code points in the <i>Basic Multilingual Plane (BMP)</i>.
It is a legacy encoding and is not recommended for use.
- \b Unicode -- the industry standard that defines the representation and manipulation of text suitable for most languages and countries.
It should not be confused with the <i>Universal Character Set</i>, it is a much larger standard that also defines algorithms like
bidirectional display order, Arabic shaping, etc.
- <b>Universal Character Set (UCS)</b> - an international standard that defines a set of characters for many scripts and their
\a code \a points.
- \b UTF-8 - a variable-width Unicode transformation format. Each UCS code point is represented as a sequence of between 1 and 4 octets
that can be easily distinguished. It includes ASCII as a subset. It is the most popular Unicode encoding for web applications, data
transfer and storage, and is the de-facto standard encoding for most POSIX operation systems.
- \b UTF-16 - a variable-width Unicode transformation format. Each UCS code point is represented as a sequence of one or two 16-bit words.
It is a very popular encoding for platforms such as the Win32 API, Java, C#, Python, etc. However, it is frequently confused with the
_UCS-2_ fixed-width encoding, which can only represent characters in the <i>Basic Multilingual Plane (BMP)</i>.
\n
This encoding is used for \c std::wstring under the Win32 platform, where <tt>sizeof(wchar_t)==2</tt>.
- \b UTF-32/UCS-4 - a fixed-width Unicode transformation format, where each code point is represented as a single 32-bit word. It has
the advantage of simple code point representation, but is wasteful in terms of memory usage. It is used for \c std::wstring encoding
for most POSIX platforms, where <tt>sizeof(wchar_t)==4</tt>.
- \anchor term_case_folding <b>Case Folding</b> - is a process of converting a text to case independent representation.
For example case folding for a word "Grüßen" is "grüssen" - where the letter "ß" is represented in case independent way as "ss".
- \anchor term_title_case <b>Title Case</b> -
Is a text conversion where the words are capitalized. For example "hello world" is converted
to "Hello World"
*/

47
doc/header.html Normal file
View File

@@ -0,0 +1,47 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>$title</title>
<link href="$relpath$tabs.css" rel="stylesheet" type="text/css"/>
<link href="$relpath$doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>

115
doc/html/annotated.html Normal file
View File

@@ -0,0 +1,115 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Class List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li class="current"><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>Class List</h1> </div>
</div>
<div class="contents">
Here are the classes, structs, unions and interfaces with brief descriptions:<table>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html">boost::locale::util::base_converter</a></td><td class="indexvalue">This class represent a simple stateless converter from UCS-4 and to UCS-4 for each single code point </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1basic__format.html">boost::locale::basic_format&lt; CharType &gt;</a></td><td class="indexvalue">Printf like class that allows type-safe and locale aware message formatting </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a></td><td class="indexvalue">This class represents a message that can be converted to a specific locale message </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__indexing.html">boost::locale::boundary::boundary_indexing&lt; Char &gt;</a></td><td class="indexvalue">This facet generates an index for boundary analysis for a given text </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point&lt; IteratorType &gt;</a></td><td class="indexvalue">This class represents a boundary point in the text </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt;</a></td><td class="indexvalue">This class holds an index of <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boundary points</a> and allows iterating over them </td></tr>
<tr><td class="indexkey"><a class="el" href="structboost_1_1locale_1_1boundary_1_1break__info.html">boost::locale::boundary::break_info</a></td><td class="indexvalue">This structure is used for representing boundary point that follows the offset </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1calendar.html">boost::locale::calendar</a></td><td class="indexvalue">This class provides an access to general calendar information </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1calendar__facet.html">boost::locale::calendar_facet</a></td><td class="indexvalue">Facet that generates calendar for specific locale </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator&lt; CharType &gt;</a></td><td class="indexvalue">Collation facet </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1collator__base.html">boost::locale::collator_base</a></td><td class="indexvalue">Base class that includes collation level flags </td></tr>
<tr><td class="indexkey"><a class="el" href="structboost_1_1locale_1_1comparator.html">boost::locale::comparator&lt; CharType, default_level &gt;</a></td><td class="indexvalue">This class can be used in STL algorithms and containers for comparison of strings with a level other than primary </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1conv_1_1conversion__error.html">boost::locale::conv::conversion_error</a></td><td class="indexvalue">The excepton that is thrown in case of conversion error </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1converter.html">boost::locale::converter&lt; Char &gt;</a></td><td class="indexvalue">The facet that implements text manipulation </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1converter__base.html">boost::locale::converter_base</a></td><td class="indexvalue">This class provides base flags for text manipulation. It is used as base for converter facet </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td class="indexvalue">This class represents a date time and allows to perform various operation according to the locale settings </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1date__time__duration.html">boost::locale::date_time_duration</a></td><td class="indexvalue">This class represents a period: a pair of two <a class="el" href="classboost_1_1locale_1_1date__time.html" title="this class represents a date time and allows to perform various operation according to the locale set...">date_time</a> objects </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1date__time__error.html">boost::locale::date_time_error</a></td><td class="indexvalue">This error is thrown in case of invalid state that occurred </td></tr>
<tr><td class="indexkey"><a class="el" href="structboost_1_1locale_1_1date__time__period.html">boost::locale::date_time_period</a></td><td class="indexvalue">This class represents a pair of period_type and the integer values that describes its amount. For example 3 days or 4 years </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1date__time__period__set.html">boost::locale::date_time_period_set</a></td><td class="indexvalue">This class that represents a set of periods, </td></tr>
<tr><td class="indexkey"><a class="el" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html">boost::locale::gnu_gettext::messages_info::domain</a></td><td class="indexvalue">This type represents GNU Gettext domain name for the messages </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a></td><td class="indexvalue">Major class used for locale generation </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr&lt; T &gt;</a></td><td class="indexvalue">Smart pointer similar to std::auto_ptr but it is non-copyable and the underlying object has the same constness as the pointer itself (unlike an ordinary pointer) </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1info.html">boost::locale::info</a></td><td class="indexvalue">Facet that holds general information about locale </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1conv_1_1invalid__charset__error.html">boost::locale::conv::invalid_charset_error</a></td><td class="indexvalue">This exception is thrown in case of use of unsupported or invalid character set </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1ios__info.html">boost::locale::ios_info</a></td><td class="indexvalue">This class holds an external data - beyond existing fmtflags that std::ios_base holds </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1localization__backend.html">boost::locale::localization_backend</a></td><td class="indexvalue">This class represents a localization backend that can be used for localizing your application </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">boost::locale::localization_backend_manager</a></td><td class="indexvalue">Localization backend manager is a class that holds various backend and allows creation of their combination or selection </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1message__format.html">boost::locale::message_format&lt; CharType &gt;</a></td><td class="indexvalue">This facet provides message formatting abilities </td></tr>
<tr><td class="indexkey"><a class="el" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html">boost::locale::gnu_gettext::messages_info</a></td><td class="indexvalue">This structure holds all information required for creating gnu-gettext message catalogs, </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">boost::locale::period::period_type</a></td><td class="indexvalue">This class holds a type that represents certain period of time like year, hour, second and so on </td></tr>
<tr><td class="indexkey"><a class="el" href="structboost_1_1locale_1_1posix__time.html">boost::locale::posix_time</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment&lt; IteratorType &gt;</a></td><td class="indexvalue">Segment object that represents a pair of two iterators that define the range where this segment exits and a rule that defines it </td></tr>
<tr><td class="indexkey"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">boost::locale::boundary::segment_index&lt; BaseIterator &gt;</a></td><td class="indexvalue">This class holds an index of segments in the text range and allows to iterate over them </td></tr>
</table>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

89
doc/html/appendix.html Normal file
View File

@@ -0,0 +1,89 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Appendix</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><a class="el" href="main.html">Boost.Locale</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>Appendix </h1> </div>
</div>
<div class="contents">
<h2><a class="anchor" id="appendix_toc"></a>
Table of Contents</h2>
<ul>
<li><a class="el" href="rationale.html">Design Rationale</a></li>
<li><a class="el" href="faq.html">Frequently Asked Questions</a></li>
<li><a class="el" href="default_encoding_under_windows.html">Default Encoding under Microsoft Windows</a></li>
<li><a class="el" href="running_examples_under_windows.html">Running Examples under Microsoft Windows</a></li>
<li><a class="el" href="gettext_for_windows.html">Using Gettext Tools on Windows</a></li>
<li><a class="el" href="glossary.html">Glossary</a></li>
<li><a class="el" href="tested_compilers_and_paltforms.html">Tested Compilers and Platforms</a></li>
<li><a class="el" href="status_of_cpp0x_characters_support.html">Status of C++0x char16_t/char32_t support</a></li>
<li><a class="el" href="special_thanks.html">Special Thanks</a> </li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

BIN
doc/html/bc_s.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 677 B

View File

@@ -0,0 +1,143 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boundary.cpp</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boundary.cpp</h1> </div>
</div>
<div class="contents">
<p>Example of using segment_index</p>
<div class="fragment"><pre class="fragment"><span class="comment">//</span>
<span class="comment">// Copyright (c) 2009-2011 Artyom Beilis (Tonkikh)</span>
<span class="comment">//</span>
<span class="comment">// Distributed under the Boost Software License, Version 1.0. (See</span>
<span class="comment">// accompanying file LICENSE_1_0.txt or copy at</span>
<span class="comment">// http://www.boost.org/LICENSE_1_0.txt)</span>
<span class="comment">//</span>
<span class="preprocessor">#include &lt;boost/locale.hpp&gt;</span>
<span class="preprocessor">#include &lt;iostream&gt;</span>
<span class="preprocessor">#include &lt;cassert&gt;</span>
<span class="preprocessor">#include &lt;ctime&gt;</span>
<span class="keywordtype">int</span> main()
{
<span class="keyword">using namespace </span>boost::locale;
<span class="keyword">using namespace </span>std;
<a name="_a0"></a><a class="code" href="classboost_1_1locale_1_1generator.html" title="the major class used for locale generation">generator</a> gen;
<span class="comment">// Make system default locale global</span>
std::locale loc = gen(<span class="stringliteral">&quot;&quot;</span>);
locale::global(loc);
cout.imbue(loc);
<span class="keywordtype">string</span> text=<span class="stringliteral">&quot;Hello World! あにま! Linux2.6 and Windows7 is word and number. שָלוֹם עוֹלָם!&quot;</span>;
cout&lt;&lt;text&lt;&lt;endl;
<a name="_a1"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1segment__index.html" title="This class holds an index of segments in the text range and allows to iterate over them...">boundary::ssegment_index</a> index(<a name="a2"></a><a class="code" href="group__boundary.html#gga15de9963ce9bb6037c8525901dfbf641a99aad8b8a5e25baa9f695abe5e574bb6" title="Analyse the text for word boundaries.">boundary::word</a>,text.begin(),text.end());
<a class="code" href="group__boundary.html#gaf7a775e77dbbca3495e11d646df96fd2">boundary::ssegment_index::iterator</a> p,e;
<span class="keywordflow">for</span>(p=index.begin(),e=index.end();p!=e;++p) {
cout&lt;&lt;<span class="stringliteral">&quot;Part [&quot;</span>&lt;&lt;*p&lt;&lt;<span class="stringliteral">&quot;] has &quot;</span>;
<span class="keywordflow">if</span>(p-&gt;rule() &amp; <a name="a3"></a><a class="code" href="group__boundary.html#gaac78a3a6b9e671e253a2591cb56a479b" title="Word that appear to be a number.">boundary::word_number</a>)
cout&lt;&lt;<span class="stringliteral">&quot;number(s) &quot;</span>;
<span class="keywordflow">if</span>(p-&gt;rule() &amp; <a name="a4"></a><a class="code" href="group__boundary.html#ga8b7e6ce2fcb185845fa85a1a4c42b3c4" title="Word that contains letters, excluding kana and ideographic characters.">boundary::word_letter</a>)
cout&lt;&lt;<span class="stringliteral">&quot;letter(s) &quot;</span>;
<span class="keywordflow">if</span>(p-&gt;rule() &amp; <a name="a5"></a><a class="code" href="group__boundary.html#ga52d8c63e1f3f8c898c645352206a78ef" title="Word that contains kana characters.">boundary::word_kana</a>)
cout&lt;&lt;<span class="stringliteral">&quot;kana character(s) &quot;</span>;
<span class="keywordflow">if</span>(p-&gt;rule() &amp; <a name="a6"></a><a class="code" href="group__boundary.html#ga705ab96f9e62810c8ed977c90d404ef8" title="Word that contains ideographic characters.">boundary::word_ideo</a>)
cout&lt;&lt;<span class="stringliteral">&quot;ideographic character(s) &quot;</span>;
<span class="keywordflow">if</span>(p-&gt;rule() &amp; <a name="a7"></a><a class="code" href="group__boundary.html#ga90cf4f01b95658f659685377226677e7" title="Not a word, like white space or punctuation mark.">boundary::word_none</a>)
cout&lt;&lt;<span class="stringliteral">&quot;no word characters&quot;</span>;
cout&lt;&lt;endl;
}
index.map(<a name="a8"></a><a class="code" href="group__boundary.html#gga15de9963ce9bb6037c8525901dfbf641ae80c964112541d88af9b875dafb6605d" title="Analyse the text for character boundaries.">boundary::character</a>,text.begin(),text.end());
<span class="keywordflow">for</span>(p=index.begin(),e=index.end();p!=e;++p) {
cout&lt;&lt;<span class="stringliteral">&quot;|&quot;</span> &lt;&lt;*p ;
}
cout&lt;&lt;<span class="stringliteral">&quot;|\n\n&quot;</span>;
index.map(<a name="a9"></a><a class="code" href="group__boundary.html#gga15de9963ce9bb6037c8525901dfbf641a72895419fdd7219b3695cf0abd602ea4" title="Analyse the text for positions suitable for line breaks.">boundary::line</a>,text.begin(),text.end());
<span class="keywordflow">for</span>(p=index.begin(),e=index.end();p!=e;++p) {
cout&lt;&lt;<span class="stringliteral">&quot;|&quot;</span> &lt;&lt;*p ;
}
cout&lt;&lt;<span class="stringliteral">&quot;|\n\n&quot;</span>;
index.map(<a name="a10"></a><a class="code" href="group__boundary.html#gga15de9963ce9bb6037c8525901dfbf641a88aa1509eace7589f5df87d4694871e9" title="Analyse the text for Find sentence boundaries.">boundary::sentence</a>,text.begin(),text.end());
<span class="keywordflow">for</span>(p=index.begin(),e=index.end();p!=e;++p) {
cout&lt;&lt;<span class="stringliteral">&quot;|&quot;</span> &lt;&lt;*p ;
}
cout&lt;&lt;<span class="stringliteral">&quot;|\n\n&quot;</span>;
}
<span class="comment">// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4</span>
</pre></div> </div>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,94 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost/locale/boundary.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
</ul>
</div>
<div class="header">
<div class="headertitle">
<h1>boost/locale/boundary.hpp</h1> </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//</span>
<a name="l00002"></a>00002 <span class="comment">// Copyright (c) 2009-2011 Artyom Beilis (Tonkikh)</span>
<a name="l00003"></a>00003 <span class="comment">//</span>
<a name="l00004"></a>00004 <span class="comment">// Distributed under the Boost Software License, Version 1.0. (See</span>
<a name="l00005"></a>00005 <span class="comment">// accompanying file LICENSE_1_0.txt or copy at</span>
<a name="l00006"></a>00006 <span class="comment">// http://www.boost.org/LICENSE_1_0.txt)</span>
<a name="l00007"></a>00007 <span class="comment">//</span>
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef BOOST_LOCALE_BOUNDARY_HPP_INCLUDED</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define BOOST_LOCALE_BOUNDARY_HPP_INCLUDED</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;boost/locale/boundary/types.hpp&gt;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;boost/locale/boundary/facets.hpp&gt;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &lt;boost/locale/boundary/segment.hpp&gt;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;boost/locale/boundary/boundary_point.hpp&gt;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;boost/locale/boundary/index.hpp&gt;</span>
<a name="l00016"></a>00016
<a name="l00017"></a>00017 <span class="preprocessor">#endif</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="comment">// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,187 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost/locale/boundary/boundary_point.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
</ul>
</div>
<div class="header">
<div class="headertitle">
<h1>boost/locale/boundary/boundary_point.hpp</h1> </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//</span>
<a name="l00002"></a>00002 <span class="comment">// Copyright (c) 2009-2011 Artyom Beilis (Tonkikh)</span>
<a name="l00003"></a>00003 <span class="comment">//</span>
<a name="l00004"></a>00004 <span class="comment">// Distributed under the Boost Software License, Version 1.0. (See</span>
<a name="l00005"></a>00005 <span class="comment">// accompanying file LICENSE_1_0.txt or copy at</span>
<a name="l00006"></a>00006 <span class="comment">// http://www.boost.org/LICENSE_1_0.txt)</span>
<a name="l00007"></a>00007 <span class="comment">//</span>
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef BOOST_LOCALE_BOUNDARY_BOUNDARY_POINT_HPP_INCLUDED</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define BOOST_LOCALE_BOUNDARY_BOUNDARY_POINT_HPP_INCLUDED</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;boost/locale/boundary/types.hpp&gt;</span>
<a name="l00012"></a>00012
<a name="l00013"></a>00013 <span class="keyword">namespace </span>boost {
<a name="l00014"></a>00014 <span class="keyword">namespace </span>locale {
<a name="l00015"></a><a class="code" href="namespaceboost_1_1locale_1_1boundary.html">00015</a> <span class="keyword">namespace </span>boundary {
<a name="l00016"></a>00016
<a name="l00020"></a>00020
<a name="l00047"></a>00047 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> IteratorType&gt;
<a name="l00048"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">00048</a> <span class="keyword">class </span><a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html" title="This class represents a boundary point in the text.">boundary_point</a> {
<a name="l00049"></a>00049 <span class="keyword">public</span>:
<a name="l00053"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af3c3a74a9a79690ff44f38d267b3b694">00053</a> <span class="keyword">typedef</span> IteratorType iterator_type;
<a name="l00054"></a>00054
<a name="l00058"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#aabbbee60c2c97ffd95210206a86c9298">00058</a> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#aabbbee60c2c97ffd95210206a86c9298">boundary_point</a>() : rule_(0) {}
<a name="l00059"></a>00059
<a name="l00063"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a653a1c0d7480006ff647a656c74521df">00063</a> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#aabbbee60c2c97ffd95210206a86c9298">boundary_point</a>(<a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af3c3a74a9a79690ff44f38d267b3b694">iterator_type</a> p,<a class="code" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095" title="Flags used with word boundary analysis -- the type of the word, line or sentence boundary found...">rule_type</a> r) :
<a name="l00064"></a>00064 iterator_(p),
<a name="l00065"></a>00065 rule_(r)
<a name="l00066"></a>00066 {
<a name="l00067"></a>00067 }
<a name="l00071"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a5ea18137618a1a84ff0b75c3b166c495">00071</a> <span class="keywordtype">void</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af279d5382e1b28c2ce82035c1929ea66">iterator</a>(<a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af3c3a74a9a79690ff44f38d267b3b694">iterator_type</a> i)
<a name="l00072"></a>00072 {
<a name="l00073"></a>00073 iterator_ = i;
<a name="l00074"></a>00074 }
<a name="l00078"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a757b28e11c66f9871d3f51fe93a51bdb">00078</a> <span class="keywordtype">void</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a75e2f04f0f7c1065470f722d1f2e004b">rule</a>(<a class="code" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095" title="Flags used with word boundary analysis -- the type of the word, line or sentence boundary found...">rule_type</a> r)
<a name="l00079"></a>00079 {
<a name="l00080"></a>00080 rule_ = r;
<a name="l00081"></a>00081 }
<a name="l00085"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af279d5382e1b28c2ce82035c1929ea66">00085</a> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af3c3a74a9a79690ff44f38d267b3b694">iterator_type</a> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af279d5382e1b28c2ce82035c1929ea66">iterator</a>()<span class="keyword"> const </span>
<a name="l00086"></a>00086 <span class="keyword"> </span>{
<a name="l00087"></a>00087 <span class="keywordflow">return</span> iterator_;
<a name="l00088"></a>00088 }
<a name="l00092"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a75e2f04f0f7c1065470f722d1f2e004b">00092</a> <a class="code" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095" title="Flags used with word boundary analysis -- the type of the word, line or sentence boundary found...">rule_type</a> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a75e2f04f0f7c1065470f722d1f2e004b">rule</a>()<span class="keyword"> const</span>
<a name="l00093"></a>00093 <span class="keyword"> </span>{
<a name="l00094"></a>00094 <span class="keywordflow">return</span> rule_;
<a name="l00095"></a>00095 }
<a name="l00099"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a058ffbcbd43fc41a40a4a1cf5be987f2">00099</a> <span class="keywordtype">bool</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a058ffbcbd43fc41a40a4a1cf5be987f2">operator==</a>(<a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html" title="This class represents a boundary point in the text.">boundary_point</a> <span class="keyword">const</span> &amp;other)<span class="keyword"> const</span>
<a name="l00100"></a>00100 <span class="keyword"> </span>{
<a name="l00101"></a>00101 <span class="keywordflow">return</span> iterator_ == other.iterator_ &amp;&amp; rule_ = other.rule_;
<a name="l00102"></a>00102 }
<a name="l00106"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a4347b22dd7edb8af49d1316a6f86d0c2">00106</a> <span class="keywordtype">bool</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a4347b22dd7edb8af49d1316a6f86d0c2">operator!=</a>(<a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html" title="This class represents a boundary point in the text.">boundary_point</a> <span class="keyword">const</span> &amp;other)<span class="keyword"> const</span>
<a name="l00107"></a>00107 <span class="keyword"> </span>{
<a name="l00108"></a>00108 <span class="keywordflow">return</span> !(*<span class="keyword">this</span>==other);
<a name="l00109"></a>00109 }
<a name="l00113"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a87a96a1745184ff7495db87943aca424">00113</a> <span class="keywordtype">bool</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a058ffbcbd43fc41a40a4a1cf5be987f2">operator==</a>(<a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af3c3a74a9a79690ff44f38d267b3b694">iterator_type</a> <span class="keyword">const</span> &amp;other)<span class="keyword"> const</span>
<a name="l00114"></a>00114 <span class="keyword"> </span>{
<a name="l00115"></a>00115 <span class="keywordflow">return</span> iterator_ == other;
<a name="l00116"></a>00116 }
<a name="l00120"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a4cd03f39d75bb054be9a0ae23189fa7a">00120</a> <span class="keywordtype">bool</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a4347b22dd7edb8af49d1316a6f86d0c2">operator!=</a>(<a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af3c3a74a9a79690ff44f38d267b3b694">iterator_type</a> <span class="keyword">const</span> &amp;other)<span class="keyword"> const</span>
<a name="l00121"></a>00121 <span class="keyword"> </span>{
<a name="l00122"></a>00122 <span class="keywordflow">return</span> iterator_ != other;
<a name="l00123"></a>00123 }
<a name="l00124"></a>00124
<a name="l00128"></a><a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#aa2dc88b4d02151aea939a01b7fc88730">00128</a> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#aa2dc88b4d02151aea939a01b7fc88730">operator iterator_type </a>()<span class="keyword">const</span>
<a name="l00129"></a>00129 <span class="keyword"> </span>{
<a name="l00130"></a>00130 <span class="keywordflow">return</span> iterator_;
<a name="l00131"></a>00131 }
<a name="l00132"></a>00132
<a name="l00133"></a>00133 <span class="keyword">private</span>:
<a name="l00134"></a>00134 <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af3c3a74a9a79690ff44f38d267b3b694">iterator_type</a> iterator_;
<a name="l00135"></a>00135 <a class="code" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095" title="Flags used with word boundary analysis -- the type of the word, line or sentence boundary found...">rule_type</a> rule_;
<a name="l00136"></a>00136
<a name="l00137"></a>00137 };
<a name="l00141"></a>00141 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> BaseIterator&gt;
<a name="l00142"></a><a class="code" href="group__boundary.html#ga43283ecda927605b1b802a3c3306bfb1">00142</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga43283ecda927605b1b802a3c3306bfb1">operator==</a>(BaseIterator <span class="keyword">const</span> &amp;l,<a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html" title="This class represents a boundary point in the text.">boundary_point&lt;BaseIterator&gt;</a> <span class="keyword">const</span> &amp;r)
<a name="l00143"></a>00143 {
<a name="l00144"></a>00144 <span class="keywordflow">return</span> r==l;
<a name="l00145"></a>00145 }
<a name="l00149"></a>00149 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> BaseIterator&gt;
<a name="l00150"></a><a class="code" href="group__boundary.html#ga11ff477ceecc7cbc274d998c3676126e">00150</a> <span class="keywordtype">bool</span> <a class="code" href="group__boundary.html#ga11ff477ceecc7cbc274d998c3676126e">operator!=</a>(BaseIterator <span class="keyword">const</span> &amp;l,<a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html" title="This class represents a boundary point in the text.">boundary_point&lt;BaseIterator&gt;</a> <span class="keyword">const</span> &amp;r)
<a name="l00151"></a>00151 {
<a name="l00152"></a>00152 <span class="keywordflow">return</span> r!=l;
<a name="l00153"></a>00153 }
<a name="l00154"></a>00154
<a name="l00156"></a>00156
<a name="l00157"></a><a class="code" href="namespaceboost_1_1locale_1_1boundary.html#ae8869288e9cc33aa283078654ef0dae2">00157</a> <span class="keyword">typedef</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html" title="This class represents a boundary point in the text.">boundary_point&lt;std::string::const_iterator&gt;</a> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html" title="This class represents a boundary point in the text.">sboundary_point</a>;
<a name="l00158"></a><a class="code" href="namespaceboost_1_1locale_1_1boundary.html#a7828f6884b8a654b9b14fc1ab96ce0d9">00158</a> <span class="keyword">typedef</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html" title="This class represents a boundary point in the text.">boundary_point&lt;std::wstring::const_iterator&gt;</a> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html" title="This class represents a boundary point in the text.">wsboundary_point</a>;
<a name="l00159"></a>00159 <span class="preprocessor"> #ifdef BOOST_HAS_CHAR16_T</span>
<a name="l00160"></a><a class="code" href="namespaceboost_1_1locale_1_1boundary.html#a64be9f4ec7ff991f73fc793a80f1fadc">00160</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html" title="This class represents a boundary point in the text.">boundary_point&lt;std::u16string::const_iterator&gt;</a> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html" title="This class represents a boundary point in the text.">u16sboundary_point</a>;
<a name="l00161"></a>00161 <span class="preprocessor"> #endif</span>
<a name="l00162"></a>00162 <span class="preprocessor"></span><span class="preprocessor"> #ifdef BOOST_HAS_CHAR32_T</span>
<a name="l00163"></a><a class="code" href="namespaceboost_1_1locale_1_1boundary.html#a9eb3d6aa912102a115dc6ff80fe9c22d">00163</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html" title="This class represents a boundary point in the text.">boundary_point&lt;std::u32string::const_iterator&gt;</a> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html" title="This class represents a boundary point in the text.">u32sboundary_point</a>;
<a name="l00164"></a>00164 <span class="preprocessor"> #endif</span>
<a name="l00165"></a>00165 <span class="preprocessor"></span>
<a name="l00166"></a><a class="code" href="namespaceboost_1_1locale_1_1boundary.html#ade880ec8623692375afbfd460d28163c">00166</a> <span class="keyword">typedef</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html" title="This class represents a boundary point in the text.">boundary_point&lt;char const *&gt;</a> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html" title="This class represents a boundary point in the text.">cboundary_point</a>;
<a name="l00167"></a><a class="code" href="namespaceboost_1_1locale_1_1boundary.html#a1c06a716653700b74922e4cc9df0da1b">00167</a> <span class="keyword">typedef</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html" title="This class represents a boundary point in the text.">boundary_point&lt;wchar_t const *&gt;</a> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html" title="This class represents a boundary point in the text.">wcboundary_point</a>;
<a name="l00168"></a>00168 <span class="preprocessor"> #ifdef BOOST_HAS_CHAR16_T</span>
<a name="l00169"></a><a class="code" href="namespaceboost_1_1locale_1_1boundary.html#a79a665091fadab07227c0b129ddcde9d">00169</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html" title="This class represents a boundary point in the text.">boundary_point&lt;char16_t const *&gt;</a> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html" title="This class represents a boundary point in the text.">u16cboundary_point</a>;
<a name="l00170"></a>00170 <span class="preprocessor"> #endif</span>
<a name="l00171"></a>00171 <span class="preprocessor"></span><span class="preprocessor"> #ifdef BOOST_HAS_CHAR32_T</span>
<a name="l00172"></a><a class="code" href="namespaceboost_1_1locale_1_1boundary.html#aaa106d43f8b06fec14964e19c55356fb">00172</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html" title="This class represents a boundary point in the text.">boundary_point&lt;char32_t const *&gt;</a> <a class="code" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html" title="This class represents a boundary point in the text.">u32cboundary_point</a>;
<a name="l00173"></a>00173 <span class="preprocessor"> #endif</span>
<a name="l00174"></a>00174 <span class="preprocessor"></span>
<a name="l00175"></a>00175
<a name="l00176"></a>00176 } <span class="comment">// boundary</span>
<a name="l00177"></a>00177 } <span class="comment">// locale</span>
<a name="l00178"></a>00178 } <span class="comment">// boost</span>
<a name="l00179"></a>00179
<a name="l00180"></a>00180
<a name="l00181"></a>00181 <span class="preprocessor">#endif</span>
<a name="l00182"></a>00182 <span class="preprocessor"></span>
<a name="l00183"></a>00183 <span class="comment">// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,386 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Boundary analysis</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><a class="el" href="main.html">Boost.Locale</a> </li>
<li><a class="el" href="using_boost_locale.html">Using Boost.Locale</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>Boundary analysis </h1> </div>
</div>
<div class="contents">
<ul>
<li><a class="el" href="boundary_analysys.html#boundary_analysys_basics">Basics</a></li>
<li><a class="el" href="boundary_analysys.html#boundary_analysys_segments">Iterating Over Segments</a><ul>
<li><a class="el" href="boundary_analysys.html#boundary_analysys_segments_basics">Basic Iteration</a></li>
<li><a class="el" href="boundary_analysys.html#boundary_analysys_segments_rules">Using Rules</a></li>
<li><a class="el" href="boundary_analysys.html#boundary_analysys_segments_search">Locating Segments</a></li>
</ul>
</li>
<li><a class="el" href="boundary_analysys.html#boundary_analysys_break">Iterating Over Boundary Points</a><ul>
<li><a class="el" href="boundary_analysys.html#boundary_analysys_break_basics">Basic Iteration</a></li>
<li><a class="el" href="boundary_analysys.html#boundary_analysys_break_rules">Using Rules</a></li>
<li><a class="el" href="boundary_analysys.html#boundary_analysys_break_search">Locating Boundary Points</a></li>
</ul>
</li>
</ul>
<h2><a class="anchor" id="boundary_analysys_basics"></a>
Basics</h2>
<p>Boost.Locale provides a boundary analysis tool, allowing you to split text into characters, words, or sentences, and find appropriate places for line breaks.</p>
<dl class="note"><dt><b>Note:</b></dt><dd>This task is not a trivial task. </dd></dl>
<dl class="user"><dt><b></b></dt><dd>A Unicode code point and a character are not equivalent, for example: Hebrew word Shalom - "שָלוֹם" that consists of 4 characters and 6 code points (4 base letters and 2 diacritical marks) </dd></dl>
<dl class="user"><dt><b></b></dt><dd>Words may not be separated by space characters in some languages like in Japanese or Chinese.</dd></dl>
<p>Boost.Locale provides 2 major classes for boundary analysis:</p>
<ul>
<li><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">boost::locale::boundary::segment_index</a> - an object that holds an index of segments in the text (like words, characters, sentences). It provides an access to <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">segment</a> objects via iterators.</li>
<li><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boost::locale::boundary::boundary_point_index</a> - an object that holds an index of boundary points in the text. It allows to iterate over the <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boundary_point</a> objects.</li>
</ul>
<p>Each of the classes above use an iterator type as template parameter. Both of these classes accept in their constructor:</p>
<ul>
<li>A flag that defines boundary analysis <a class="el" href="group__boundary.html#ga15de9963ce9bb6037c8525901dfbf641">boundary_type</a>.</li>
<li>The pair of iterators that define the text range that should be analysed</li>
<li>A locale parameter (if not given the global one is used)</li>
</ul>
<p>For example: </p>
<div class="fragment"><pre class="fragment"><span class="keyword">namespace </span>ba=boost::locale::boundary;
std::string text= ... ;
std::locale loc = ... ;
ba::segment_index&lt;std::string::const_iterator&gt; map(<a class="code" href="group__boundary.html#gga15de9963ce9bb6037c8525901dfbf641a99aad8b8a5e25baa9f695abe5e574bb6" title="Analyse the text for word boundaries.">ba::word</a>,text.begin(),text.end(),loc);
</pre></div><p>Each of them provide a members <code>begin()</code>, <code>end()</code> and <code>find()</code> that allow to iterate over the selected segments or boundaries in the text or find a location of a segment or boundary for given iterator.</p>
<p>Convenience a typedefs like <a class="el" href="group__boundary.html#gad4785439a3f03ee455c93830b8f1366c">ssegment_index</a> or <a class="el" href="group__boundary.html#gabcb5bcc788909afeb8c68d857284cb59">wcboundary_point_index</a> provided as well, where "w", "u16" and "u32" prefixes define a character type <code>wchar_t</code>, <code>char16_t</code> and <code>char32_t</code> and "c" and "s" prefixes define whether <code>std::basic_string&lt;CharType&gt;::const_iterator</code> or <code>CharType const *</code> are used.</p>
<h2><a class="anchor" id="boundary_analysys_segments"></a>
Iterating Over Segments</h2>
<h2><a class="anchor" id="boundary_analysys_segments_basics"></a>
Basic Iteration</h2>
<p>The text segments analysis is done using <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">segment_index</a> class.</p>
<p>It provides a bidirectional iterator that returns <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">segment</a> object. The segment object represents a pair of iterators that define this segment and a rule according to which it was selected. It can be automatically converted to <code>std::basic_string</code> object.</p>
<p>To perform boundary analysis, we first create an index object and then iterate over it:</p>
<p>For example:</p>
<div class="fragment"><pre class="fragment"><span class="keyword">using namespace </span>boost::locale::boundary;
<a class="code" href="classboost_1_1locale_1_1generator.html" title="the major class used for locale generation">boost::locale::generator</a> gen;
std::string text=<span class="stringliteral">&quot;To be or not to be, that is the question.&quot;</span>
<span class="comment">// Create mapping of text for token iterator using global locale.</span>
<a class="code" href="group__boundary.html#gad4785439a3f03ee455c93830b8f1366c">ssegment_index</a> map(<a class="code" href="group__boundary.html#gga15de9963ce9bb6037c8525901dfbf641a99aad8b8a5e25baa9f695abe5e574bb6" title="Analyse the text for word boundaries.">word</a>,text.begin(),text.end(),gen(<span class="stringliteral">&quot;en_US.UTF-8&quot;</span>));
<span class="comment">// Print all &quot;words&quot; -- chunks of word boundary</span>
<span class="keywordflow">for</span>(<a class="code" href="group__boundary.html#gaf7a775e77dbbca3495e11d646df96fd2">ssegment_index::iterator</a> it=map.begin(),e=map.end();it!=e;++it)
std::cout &lt;&lt;<span class="stringliteral">&quot;\&quot;&quot;</span>&lt;&lt; * it &lt;&lt; <span class="stringliteral">&quot;\&quot;, &quot;</span>;
std::cout &lt;&lt; std::endl;
</pre></div><p>Would print:</p>
<div class="fragment"><pre class="fragment">
"To", " ", "be", " ", "or", " ", "not", " ", "to", " ", "be", ",", " ", "that", " ", "is", " ", "the", " ", "question", ".",
</pre></div><p>This sentence "生きるか死ぬか、それが問題だ。" (<a href="http://tatoeba.org/eng/sentences/show/868189">from Tatoeba database</a>) would be split into following segments in <code>ja_JP.UTF-8</code> (Japanese) locale:</p>
<div class="fragment"><pre class="fragment">
"生", "きるか", "死", "ぬか", "、", "それが", "問題", "だ", "。",
</pre></div><p>The boundary analysis that is done by Boost.Locale is much more complicated then just splitting the text according to white space characters.</p>
<p>Of course it may be not per</p>
<h2><a class="anchor" id="boundary_analysys_segments_rules"></a>
Using Rules</h2>
<p>The segments selection can be customized using <a class="el" href="group__boundary.html#gad19735180401edb15acbdbbeb21e5a73">rule()</a> and <a class="el" href="group__boundary.html#ga205fd51daa439a18527675e663a0802f">full_select()</a> member functions.</p>
<p>By default segment_index's iterator return each text segment defined by two boundary points regardless the way they were selected. Thus in the example above we could see text segments like "." or " " that were selected as words.</p>
<p>Using a <code>rule()</code> member function we can specify a binary mask of rules we want to use for selection of the boundary points using <a class="el" href="group__boundary.html#bl_boundary_word_rules">word</a>, <a class="el" href="group__boundary.html#bl_boundary_line_rules">line</a> and <a class="el" href="group__boundary.html#bl_boundary_sentence_rules">sentence</a> boundary rules.</p>
<p>For example, by calling</p>
<div class="fragment"><pre class="fragment">map.rule(<a class="code" href="group__boundary.html#ga3ab98808dbb1cc4a346dcc2554c9d8dc" title="Any word including numbers, 0 is special flag, equivalent to 15.">word_any</a>);
</pre></div><p>Before starting the iteration process, specify a selection mask that fetches: numbers, letter, Kana letters and ideographic characters ignoring all non-word related characters like white space or punctuation marks.</p>
<p>So the code:</p>
<div class="fragment"><pre class="fragment"><span class="keyword">using namespace </span>boost::locale::boundary;
std::string text=<span class="stringliteral">&quot;To be or not to be, that is the question.&quot;</span>
<span class="comment">// Create mapping of text for token iterator using global locale.</span>
<a class="code" href="group__boundary.html#gad4785439a3f03ee455c93830b8f1366c">ssegment_index</a> map(<a class="code" href="group__boundary.html#gga15de9963ce9bb6037c8525901dfbf641a99aad8b8a5e25baa9f695abe5e574bb6" title="Analyse the text for word boundaries.">word</a>,text.begin(),text.end());
<span class="comment">// Define a rule</span>
map.rule(<a class="code" href="group__boundary.html#ga3ab98808dbb1cc4a346dcc2554c9d8dc" title="Any word including numbers, 0 is special flag, equivalent to 15.">word_any</a>);
<span class="comment">// Print all &quot;words&quot; -- chunks of word boundary</span>
<span class="keywordflow">for</span>(<a class="code" href="group__boundary.html#gaf7a775e77dbbca3495e11d646df96fd2">ssegment_index::iterator</a> it=map.begin(),e=map.end();it!=e;++it)
std::cout &lt;&lt;<span class="stringliteral">&quot;\&quot;&quot;</span>&lt;&lt; * it &lt;&lt; <span class="stringliteral">&quot;\&quot;, &quot;</span>;
std::cout &lt;&lt; std::endl;
</pre></div><p>Would print:</p>
<div class="fragment"><pre class="fragment">
"To", "be", "or", "not", "to", "be", "that", "is", "the", "question",
</pre></div><p>And the for given text="生きるか死ぬか、それが問題だ。" and rule(<a class="el" href="group__boundary.html#ga705ab96f9e62810c8ed977c90d404ef8">word_ideo</a>), the example above would print.</p>
<div class="fragment"><pre class="fragment">
"生", "死", "問題",
</pre></div><p>You can access specific rules the segments where selected it using <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a5b36a522d7013306617dbcccc9919343">segment::rule()</a> member function. Using a bit-mask of rules.</p>
<p>For example:</p>
<div class="fragment"><pre class="fragment"><a class="code" href="classboost_1_1locale_1_1generator.html" title="the major class used for locale generation">boost::locale::generator</a> gen;
<span class="keyword">using namespace </span>boost::locale::boundary;
std::string text=<span class="stringliteral">&quot;生きるか死ぬか、それが問題だ。&quot;</span>;
<a class="code" href="group__boundary.html#gad4785439a3f03ee455c93830b8f1366c">ssegment_index</a> map(<a class="code" href="group__boundary.html#gga15de9963ce9bb6037c8525901dfbf641a99aad8b8a5e25baa9f695abe5e574bb6" title="Analyse the text for word boundaries.">word</a>,text.begin(),text.end(),gen(<span class="stringliteral">&quot;ja_JP.UTF-8&quot;</span>));
<span class="keywordflow">for</span>(<a class="code" href="group__boundary.html#gaf7a775e77dbbca3495e11d646df96fd2">ssegment_index::iterator</a> it=map.begin(),e=map.end();it!=e;++it) {
std::cout &lt;&lt; <span class="stringliteral">&quot;Segment &quot;</span> &lt;&lt; *it &lt;&lt; <span class="stringliteral">&quot; contains: &quot;</span>;
<span class="keywordflow">if</span>(it-&gt;rule() &amp; <a class="code" href="group__boundary.html#ga90cf4f01b95658f659685377226677e7" title="Not a word, like white space or punctuation mark.">word_none</a>)
std::cout &lt;&lt; <span class="stringliteral">&quot;white space or punctuation marks &quot;</span>;
<span class="keywordflow">if</span>(it-&gt;rule() &amp; <a class="code" href="group__boundary.html#ga52d8c63e1f3f8c898c645352206a78ef" title="Word that contains kana characters.">word_kana</a>)
std::cout &lt;&lt; <span class="stringliteral">&quot;kana characters &quot;</span>;
<span class="keywordflow">if</span>(it-&gt;rule() &amp; <a class="code" href="group__boundary.html#ga705ab96f9e62810c8ed977c90d404ef8" title="Word that contains ideographic characters.">word_ideo</a>)
std::cout &lt;&lt; <span class="stringliteral">&quot;ideographic characters&quot;</span>;
std::cout&lt;&lt; std::endl;
}
</pre></div><p>Would print</p>
<div class="fragment"><pre class="fragment">
Segment 生 contains: ideographic characters
Segment きるか contains: kana characters
Segment 死 contains: ideographic characters
Segment ぬか contains: kana characters
Segment 、 contains: white space or punctuation marks
Segment それが contains: kana characters
Segment 問題 contains: ideographic characters
Segment だ contains: kana characters
Segment 。 contains: white space or punctuation marks
</pre></div><p>One important things that should be noted that each segment is defined by a pair of boundaries and the rule of its ending point defines if it is selected or not.</p>
<p>In some cases it may be not what we actually look like.</p>
<p>For example we have a text:</p>
<div class="fragment"><pre class="fragment">
Hello! How
are you?
</pre></div><p>And we want to fetch all sentences from the text.</p>
<p>The <a class="el" href="group__boundary.html#bl_boundary_sentence_rules">sentence rules</a> have two options:</p>
<ul>
<li>Split the text on the point where sentence terminator like ".!?" detected: <a class="el" href="group__boundary.html#ga3befefe67f79691c117bf5588741355b">sentence_term</a></li>
<li>Split the text on the point where sentence separator like "line feed" detected: <a class="el" href="group__boundary.html#gaf67883341dd3d8f786e7281d40790000">sentence_sep</a></li>
</ul>
<p>Naturally to ignore sentence separators we would call <a class="el" href="group__boundary.html#gad19735180401edb15acbdbbeb21e5a73">segment_index::rule(rule_type v)</a> with sentence_term parameter and then run the iterator.</p>
<div class="fragment"><pre class="fragment"><a class="code" href="classboost_1_1locale_1_1generator.html" title="the major class used for locale generation">boost::locale::generator</a> gen;
<span class="keyword">using namespace </span>boost::locale::boundary;
std::string text= <span class="stringliteral">&quot;Hello! How\n&quot;</span>
<span class="stringliteral">&quot;are you?\n&quot;</span>;
<a class="code" href="group__boundary.html#gad4785439a3f03ee455c93830b8f1366c">ssegment_index</a> map(<a class="code" href="group__boundary.html#gga15de9963ce9bb6037c8525901dfbf641a88aa1509eace7589f5df87d4694871e9" title="Analyse the text for Find sentence boundaries.">sentence</a>,text.begin(),text.end(),gen(<span class="stringliteral">&quot;en_US.UTF-8&quot;</span>));
map.rule(<a class="code" href="group__boundary.html#ga3befefe67f79691c117bf5588741355b" title="The sentence was terminated with a sentence terminator like &amp;quot;.&amp;quot;, &amp;quot;!&amp;quot; possible fol...">sentence_term</a>);
<span class="keywordflow">for</span>(<a class="code" href="group__boundary.html#gaf7a775e77dbbca3495e11d646df96fd2">ssegment_index::iterator</a> it=map.begin(),e=map.end();it!=e;++it)
std::cout &lt;&lt; <span class="stringliteral">&quot;Sentence [&quot;</span> &lt;&lt; *it &lt;&lt; <span class="stringliteral">&quot;]&quot;</span> &lt;&lt; std::endl;
</pre></div><p>However we would get the expected segments: </p>
<div class="fragment"><pre class="fragment">
Sentence [Hello! ]
Sentence [are you?
]
</pre></div><p>The reason is that "How\n" is still considered a sentence but selected by different rule.</p>
<p>This behavior can be changed by setting <a class="el" href="group__boundary.html#ga205fd51daa439a18527675e663a0802f">segment_index::full_select(bool)</a> to <code>true</code>. It would force iterator to join the current segment with all previous segments that may not fit the required rule.</p>
<p>So we add this line:</p>
<div class="fragment"><pre class="fragment">map.full_select(<span class="keyword">true</span>);
</pre></div><p>Right after "map.rule(sentence_term);" and get expected output:</p>
<div class="fragment"><pre class="fragment">
Sentence [Hello! ]
Sentence [How
are you?
]
</pre></div><h3><a class="anchor" id="boundary_analysys_segments_search"></a>
Locating Segments</h3>
<p>Sometimes it is useful to find a segment that some specific iterator is pointing on.</p>
<p>For example a user had clicked at specific point, we want to select a word on this location.</p>
<p><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">segment_index</a> provides <a class="el" href="group__boundary.html#ga2480236106971797460187777f2a4411">find(base_iterator p)</a> member function for this purpose.</p>
<p>This function returns the iterator to the segmet such that <em>p</em> points to.</p>
<p>For example:</p>
<div class="fragment"><pre class="fragment">text=<span class="stringliteral">&quot;to be or &quot;</span>;
<a class="code" href="group__boundary.html#gad4785439a3f03ee455c93830b8f1366c">ssegment_index</a> map(<a class="code" href="group__boundary.html#gga15de9963ce9bb6037c8525901dfbf641a99aad8b8a5e25baa9f695abe5e574bb6" title="Analyse the text for word boundaries.">word</a>,text.begin(),text.end(),gen(<span class="stringliteral">&quot;en_US.UTF-8&quot;</span>));
ssegment_index::iterator p = map.find(text.begin() + 4);
<span class="keywordflow">if</span>(p!=map.end())
std::cout &lt;&lt; *p &lt;&lt; std::endl;
</pre></div><p>Would print:</p>
<div class="fragment"><pre class="fragment">
be
</pre></div><dl class="note"><dt><b>Note:</b></dt><dd></dd></dl>
<p>if the iterator lays inside the segment this segment returned. If the segment does not fit the selection rules, then the segment following requested position is returned.</p>
<p>For example: For <a class="el" href="group__boundary.html#gga15de9963ce9bb6037c8525901dfbf641a99aad8b8a5e25baa9f695abe5e574bb6">word</a> boundary analysis with <a class="el" href="group__boundary.html#ga3ab98808dbb1cc4a346dcc2554c9d8dc">word_any</a> rule:</p>
<ul>
<li>"t|o be or ", would point to "to" - the iterator in the middle of segment "to".</li>
<li>"to |be or ", would point to "be" - the iterator at the beginning of the segment "be"</li>
<li>"to| be or ", would point to "be" - the iterator does is not point to segment with required rule so next valid segment is selected "be".</li>
<li>"to be or| ", would point to end as not valid segment found.</li>
</ul>
<h2><a class="anchor" id="boundary_analysys_break"></a>
Iterating Over Boundary Points</h2>
<h2><a class="anchor" id="boundary_analysys_break_basics"></a>
Basic Iteration</h2>
<p>The <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boundary_point_index</a> is similar to <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">segment_index</a> in its interface but as a different role. Instead of returning text chunks (<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">segment</a>s, it returns <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boundary_point</a> object that represents a position in text - a base iterator used that is used for iteration of the source text C++ characters. The <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boundary_point</a> object also provides a <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a757b28e11c66f9871d3f51fe93a51bdb">rule()</a> member function that defines a rule this boundary was selected according to.</p>
<dl class="note"><dt><b>Note:</b></dt><dd>The beginning and the ending of the text are considered boundary points, so even an empty text consists of at least one boundary point.</dd></dl>
<p>Lets see an example of selecting first two sentences from a text:</p>
<div class="fragment"><pre class="fragment"><span class="keyword">using namespace </span>boost::locale::boundary;
<a class="code" href="classboost_1_1locale_1_1generator.html" title="the major class used for locale generation">boost::locale::generator</a> gen;
<span class="comment">// our text sample</span>
std::string <span class="keyword">const</span> text=<span class="stringliteral">&quot;First sentence. Second sentence! Third one?&quot;</span>;
<span class="comment">// Create an index </span>
<a class="code" href="group__boundary.html#ga485e82cdd9debd15dc4fd6f57be10727" title="convenience typedef">sboundary_point_index</a> map(<a class="code" href="group__boundary.html#gga15de9963ce9bb6037c8525901dfbf641a88aa1509eace7589f5df87d4694871e9" title="Analyse the text for Find sentence boundaries.">sentence</a>,text.begin(),text.end(),gen(<span class="stringliteral">&quot;en_US.UTF-8&quot;</span>));
<span class="comment">// Count two boundary points</span>
<a class="code" href="group__boundary.html#ga1af6e72b3c384edcebc0cf319fe97efe">sboundary_point_index::iterator</a> p = map.begin(),e=map.end();
<span class="keywordtype">int</span> count = 0;
<span class="keywordflow">while</span>(p!=e &amp;&amp; count &lt; 2) {
++count;
++p;
}
<span class="keywordflow">if</span>(p!=e) {
std::cout &lt;&lt; <span class="stringliteral">&quot;First two sentences are: &quot;</span>
&lt;&lt; std::string(text.begin(),p-&gt;iterator())
&lt;&lt; std::endl;
}
<span class="keywordflow">else</span> {
std::cout &lt;&lt;<span class="stringliteral">&quot;There are less then two sentences in this &quot;</span>
&lt;&lt;<span class="stringliteral">&quot;text: &quot;</span> &lt;&lt; text &lt;&lt; std::endl;
}
</pre></div><p>Would print:</p>
<div class="fragment"><pre class="fragment">
First two sentences are: First sentence. Second sentence!
</pre></div><h2><a class="anchor" id="boundary_analysys_break_rules"></a>
Using Rules</h2>
<p>Similarly to the <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">segment_index</a> the <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boundary_point_index</a> provides a <a class="el" href="group__boundary.html#ga56e63913f51109e05a24a7136472a975">rule(rule_type mask)</a> member function to filter boundary points that interest us.</p>
<p>It allows to set <a class="el" href="group__boundary.html#bl_boundary_word_rules">word</a>, <a class="el" href="group__boundary.html#bl_boundary_line_rules">line</a> and <a class="el" href="group__boundary.html#bl_boundary_sentence_rules">sentence</a> rules for filtering boundary points.</p>
<p>Lets change an example above a little:</p>
<div class="fragment"><pre class="fragment"><span class="comment">// our text sample</span>
std::string <span class="keyword">const</span> text= <span class="stringliteral">&quot;First sentence. Second\n&quot;</span>
<span class="stringliteral">&quot;sentence! Third one?&quot;</span>;
</pre></div><p>If we run our program as is on the sample above we would get: </p>
<div class="fragment"><pre class="fragment">
First two sentences are: First sentence. Second
</pre></div><p>Which is not something that we really expected. As the "Second\n" is considered an independent sentence that was separated by a line separator "Line Feed".</p>
<p>However, we can set set a rule <a class="el" href="group__boundary.html#ga3befefe67f79691c117bf5588741355b">sentence_term</a> and the iterator would use only boundary points that are created by a sentence terminators like ".!?".</p>
<p>So by adding: </p>
<div class="fragment"><pre class="fragment">map.rule(<a class="code" href="group__boundary.html#ga3befefe67f79691c117bf5588741355b" title="The sentence was terminated with a sentence terminator like &amp;quot;.&amp;quot;, &amp;quot;!&amp;quot; possible fol...">sentence_term</a>);
</pre></div><p>Right after the generation of the index we would get the desired output:</p>
<div class="fragment"><pre class="fragment">
First two sentences are: First sentence. Second
sentence!
</pre></div><p>You can also use <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a757b28e11c66f9871d3f51fe93a51bdb">boundary_point::rule()</a> member function to learn about the reason this boundary point was created by comparing it with an appropriate mask.</p>
<p>For example:</p>
<div class="fragment"><pre class="fragment"><span class="keyword">using namespace </span>boost::locale::boundary;
<a class="code" href="classboost_1_1locale_1_1generator.html" title="the major class used for locale generation">boost::locale::generator</a> gen;
<span class="comment">// our text sample</span>
std::string <span class="keyword">const</span> text= <span class="stringliteral">&quot;First sentence. Second\n&quot;</span>
<span class="stringliteral">&quot;sentence! Third one?&quot;</span>;
<a class="code" href="group__boundary.html#ga485e82cdd9debd15dc4fd6f57be10727" title="convenience typedef">sboundary_point_index</a> map(<a class="code" href="group__boundary.html#gga15de9963ce9bb6037c8525901dfbf641a88aa1509eace7589f5df87d4694871e9" title="Analyse the text for Find sentence boundaries.">sentence</a>,text.begin(),text.end(),gen(<span class="stringliteral">&quot;en_US.UTF-8&quot;</span>));
<span class="keywordflow">for</span>(<a class="code" href="group__boundary.html#ga1af6e72b3c384edcebc0cf319fe97efe">sboundary_point_index::iterator</a> p = map.begin(),e=map.end();p!=e;++p) {
<span class="keywordflow">if</span>(p-&gt;rule() &amp; <a class="code" href="group__boundary.html#ga3befefe67f79691c117bf5588741355b" title="The sentence was terminated with a sentence terminator like &amp;quot;.&amp;quot;, &amp;quot;!&amp;quot; possible fol...">sentence_term</a>)
std::cout &lt;&lt; <span class="stringliteral">&quot;There is a sentence terminator: &quot;</span>;
<span class="keywordflow">else</span> <span class="keywordflow">if</span>(p-&gt;rule() &amp; <a class="code" href="group__boundary.html#gaf67883341dd3d8f786e7281d40790000" title="The sentence does not contain terminator like &amp;quot;.&amp;quot;, &amp;quot;!&amp;quot; but ended with hard separa...">sentence_sep</a>)
std::cout &lt;&lt; <span class="stringliteral">&quot;There is a sentence separator: &quot;</span>;
<span class="keywordflow">if</span>(p-&gt;rule()!=0) <span class="comment">// print if some rule exists</span>
std::cout &lt;&lt; <span class="stringliteral">&quot;[&quot;</span> &lt;&lt; std::string(text.begin(),p-&gt;iterator())
&lt;&lt; <span class="stringliteral">&quot;|&quot;</span> &lt;&lt; std::string(p-&gt;iterator(),text.end())
&lt;&lt; <span class="stringliteral">&quot;]\n&quot;</span>;
}
</pre></div><p>Would give the following output: </p>
<div class="fragment"><pre class="fragment">
There is a sentence terminator: [First sentence. |Second
sentence! Third one?]
There is a sentence separator: [First sentence. Second
|sentence! Third one?]
There is a sentence terminator: [First sentence. Second
sentence! |Third one?]
There is a sentence terminator: [First sentence. Second
sentence! Third one?|]
</pre></div><h3><a class="anchor" id="boundary_analysys_break_search"></a>
Locating Boundary Points</h3>
<p>Sometimes it is useful to find a specific boundary point according to given iterator.</p>
<p><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boundary_point_index</a> provides a <a class="el" href="group__boundary.html#ga0bb71a287afca990e85b17246568492d">iterator find(base_iterator p)</a> member function.</p>
<p>It would return an iterator to a boundary point on <em>p's</em> location or at the location following it if <em>p</em> does not point to appropriate position.</p>
<p>For example, for word boundary analysis:</p>
<ul>
<li>If a base iterator points to "to |be", then the returned boundary point would be "to |be" (same position)</li>
<li>If a base iterator points to "t|o be", then the returned boundary point would be "to| be" (next valid position)</li>
</ul>
<p>For example if we want to select 6 words around specific boundary point we can use following code:</p>
<div class="fragment"><pre class="fragment"><span class="keyword">using namespace </span>boost::locale::boundary;
<a class="code" href="classboost_1_1locale_1_1generator.html" title="the major class used for locale generation">boost::locale::generator</a> gen;
<span class="comment">// our text sample</span>
std::string <span class="keyword">const</span> text= <span class="stringliteral">&quot;To be or not to be, that is the question.&quot;</span>;
<span class="comment">// Create a mapping</span>
<a class="code" href="group__boundary.html#ga485e82cdd9debd15dc4fd6f57be10727" title="convenience typedef">sboundary_point_index</a> map(<a class="code" href="group__boundary.html#gga15de9963ce9bb6037c8525901dfbf641a99aad8b8a5e25baa9f695abe5e574bb6" title="Analyse the text for word boundaries.">word</a>,text.begin(),text.end(),gen(<span class="stringliteral">&quot;en_US.UTF-8&quot;</span>));
<span class="comment">// Ignore wite space</span>
map.rule(<a class="code" href="group__boundary.html#ga3ab98808dbb1cc4a346dcc2554c9d8dc" title="Any word including numbers, 0 is special flag, equivalent to 15.">word_any</a>);
<span class="comment">// define our arbitraty point</span>
std::string::const_iterator pos = text.begin() + 12; <span class="comment">// &quot;no|t&quot;;</span>
<span class="comment">// Get the search range</span>
<a class="code" href="group__boundary.html#ga1af6e72b3c384edcebc0cf319fe97efe">sboundary_point_index::iterator</a>
begin =map.begin(),
end = map.end(),
it = map.find(pos); <span class="comment">// find a boundary</span>
<span class="comment">// go 3 words backward</span>
<span class="keywordflow">for</span>(<span class="keywordtype">int</span> count = 0;count &lt;3 &amp;&amp; it!=begin; count ++)
--it;
<span class="comment">// Save the start</span>
std::string::const_iterator start = *it;
<span class="comment">// go 6 words forward</span>
<span class="keywordflow">for</span>(<span class="keywordtype">int</span> count = 0;count &lt; 6 &amp;&amp; it!=end; count ++)
++it;
<span class="comment">// make sure we at valid position</span>
<span class="keywordflow">if</span>(it==end)
--it;
<span class="comment">// print the text</span>
std::cout &lt;&lt; std::string(start,it-&gt;iterator()) &lt;&lt; std::endl;
</pre></div><p>That would print:</p>
<div class="fragment"><pre class="fragment">
be or not to be, that
</pre></div> </div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,228 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Building The library</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><a class="el" href="main.html">Boost.Locale</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>Building The library </h1> </div>
</div>
<div class="contents">
<p>Boost.Locale presently supports CMake build system and Boost Build.</p>
<dl class="note"><dt><b>Note:</b></dt><dd>You need Boost 1.46 and above to use Boost.Build</dd></dl>
<ul>
<li><a class="el" href="building_boost_locale.html#building_boost_locale_bb">Building With Boost.Build</a></li>
<li><a class="el" href="building_boost_locale.html#building_boost_locale_cmake">Building With CMake</a></li>
<li><a class="el" href="building_boost_locale.html#binary_compatibility">Binary Compatibility</a></li>
</ul>
<h2><a class="anchor" id="building_boost_locale_bb"></a>
Building With Boost.Build</h2>
<p>You need Boost 1.46 and above to use Boost.Build, it includes important patches that allow you to build the library correctly.</p>
<h3><a class="anchor" id="bb_building_deps"></a>
Dependencies</h3>
<ul>
<li>Boost 1.46 and above.</li>
<li>ICU library 3.6 or above is strongly recommended</li>
<li>If no ICU library is given, iconv support is required under POSIX platforms.</li>
</ul>
<h3><a class="anchor" id="bb_building_proc"></a>
Building Process</h3>
<p>First of all we need to prepare our sources of Boost with Boost.Locale</p>
<ul>
<li>Download latest version of Boost and extract its sources</li>
<li>Download the latest version of Boost.Locale and extract its sources</li>
<li>Copy boost and libs subdirectory of Boost.Locale sources into the location of boost sources.</li>
<li>Bootstrap latest bjam version running bootstrap.sh or bootstrap.bat.</li>
</ul>
<p>Now all you need to do is invoke bjam command:</p>
<div class="fragment"><pre class="fragment">
./bjam --with-locale stage
</pre></div><p>Or on Windows </p>
<div class="fragment"><pre class="fragment">
.\bjam --with-locale stage
</pre></div><p>If you are using custom ICU build or you are using Microsoft Windows you need to provide a path to location of ICU library using <code>-sICU_PATH</code> option</p>
<p>For example:</p>
<ul>
<li>If your icu build is placed at <code>/opt/icu46</code> such that the files are placed like<br/>
<code>/opt/icu46/include/unicode/uversion</code>.h<br/>
<code>/opt/icu46/include/unicode/calendar</code>.h<br/>
<code></code>... <br/>
<code>/opt/icu46/lib/libicudata</code>.so <br/>
<code>/opt/icu46/lib/libicui18n</code>.so <br/>
<code></code>... <br/>
then you need to provide an option <code>-sICU_PATH=/opt/icu46</code> <div class="fragment"><pre class="fragment">
./bjam --with-locale -sICU_PATH=/opt/icu46 stage
</pre></div></li>
<li>If your icu build is placed at <code>c:\icu46</code> such that the files are placed like <br/>
<code>c:\icu46\include\unicode\uversion.h</code> <br/>
<code>c:\icu46\include\unicode\calendar.h</code> <br/>
<code>...</code> <br/>
<code>c:\icu46\bin\icudt.dll</code> <br/>
<code>c:\icu46\bin\icuin.dll</code> <br/>
<code>...</code> <br/>
<code>c:\icu46\lib\icudt.lib</code> <br/>
<code>c:\icu46\lib\icuin.lib</code> <br/>
<code>...</code> <br/>
then you need to provide an option <code>-sICU_PATH=c</code>:\icu46 <div class="fragment"><pre class="fragment">
.\bjam --with-locale -sICU_PATH=c:\icu46 stage
</pre></div></li>
</ul>
<dl class="note"><dt><b>Note:</b></dt><dd>Don't forget to put both debug and release versions of ICU libraries in this path when using Microsoft Visual Studio so Boost.Build will link correctly debug and release versions of boost_locale library.</dd></dl>
<h2><a class="anchor" id="bb_build_opts"></a>
Build Options</h2>
<p>Boost.Locale supports following options with values <code>off</code> or <code>on</code> </p>
<ul>
<li><code>boost.locale.icu=off</code> disable build of ICU backend even if ICU library exists</li>
<li><code>boost.locale.iconv=off</code> or <code>boost.locale.iconv=on</code> enable or disable use of iconv library. It is off by default on Windows and Solaris</li>
<li><code>boost.locale.winapi=off</code> - disable winapi backend, it is on by default on Windows and Cygwin</li>
<li><code>boost.locale.std=off</code> or <code>boost.locale.winapi=on</code> Disable or enable std backends. <code>std</code> backend is disabled by default when using Sun Studio.</li>
<li><code>boost.locale.posix=on</code> or <code>boost.locale.posix=off</code> Enable or disable support of POSIX backend, it is on by default on Linux and Mac OS X</li>
</ul>
<p>Also Boost.Locale supports following options</p>
<ul>
<li><code>-sICU_PATH=/path/to/location/of/icu</code> - the location of custom ICU library</li>
<li><code>-sICONV_PATH=/path/to/location/of/iconv</code> - the location of custom iconv library</li>
</ul>
<p>For example:</p>
<ul>
<li>Build the library on Windows with ICU backend only: <div class="fragment"><pre class="fragment">
.\bjam boost.locale.winapi=off boost.locale.std=off -sICU_PATH=c:\icu46 --with-locale stage
</pre></div></li>
<li>Build the library on Linux with std backend only <div class="fragment"><pre class="fragment">
.\bjam boost.locale.posix=off boost.locale.icu=off --with-locale stage
</pre></div></li>
</ul>
<h2><a class="anchor" id="bb_build_test"></a>
Running Unit Tests</h2>
<p>You can run unit tests by invoking <code>bjam</code> with <code>libs/locale/test</code> project parameter </p>
<div class="fragment"><pre class="fragment">
./bjam libs/locale/test
</pre></div><h2><a class="anchor" id="building_boost_locale_cmake"></a>
Building With CMake</h2>
<dl class="note"><dt><b>Note:</b></dt><dd>CMake build does not provide mangled library names like boost_locale-mt-gd.lib, so if you rely on auto-linking use Boost.Build.</dd></dl>
<h3><a class="anchor" id="cmake_building_deps"></a>
Dependencies</h3>
<ul>
<li>CMake 2.6 and above.</li>
<li>Boost 1.35 and above.</li>
<li>Boost.Thread (when using ICU or when using Boost &lt; 1.43)</li>
<li>ICU library 3.6 or above is strongly recommended</li>
<li>If no ICU library is given, iconv support is required under POSIX platforms.</li>
</ul>
<h3><a class="anchor" id="cmake_building_proc"></a>
Building Process</h3>
<p>The library build should be fairly simple for users familiar with CMake.</p>
<dl class="note"><dt><b>Note:</b></dt><dd></dd></dl>
<ul>
<li>MSVC Users: use <code>nmake</code> for building the library, MSVC projects are not supported!</li>
<li>Windows users: don't forget to set the PATH environment variable to point to ICU's dlls.</li>
</ul>
<p>The simplest way to build the library is:</p>
<ul>
<li>Extract its sources</li>
<li>Go to the sources directory</li>
<li>Create a subdirectory named "build"</li>
<li>Go into this directory and run: <div class="fragment"><pre class="fragment"> cmake ..
make
make test
</pre></div> For windows you may need to specify: <div class="fragment"><pre class="fragment"> cmake -DCMAKE_INCLUDE_PATH=/path/to/icu/include:/path/to/boost/include -DCMAKE_LIBRARY_PATH=/path/to/icu/lib ..
</pre></div> And then: <div class="fragment"><pre class="fragment"> nmake
nmake test
</pre></div> Or <div class="fragment"><pre class="fragment"> make &amp;&amp; make test
</pre></div> Depending on your compiler.</li>
</ul>
<h2><a class="anchor" id="cmake_build_opts"></a>
Build Options</h2>
<p>This options can be passed to CMake to configure the library to your needs.</p>
<ul>
<li><code>DISABLE_SHARED</code> - build only the static library</li>
<li><code>DISABLE_STATIC</code> - build only the shared library</li>
<li><code>DISABLE_ICU</code> - Disable the ICU backend (strongly discouraged)</li>
<li><code>DISABLE_STD_BACKED</code> - Disable the "std" backend</li>
<li><code>DISABLE_POSIX_BACKEND</code> - Disable the "posix" backend (ON by default on all but Linux and Mac OS X)</li>
<li><code>DISABLE_WINAPI_BACKEND</code> - Disable the "winapi" backend (ON by default on POSIX platforms).</li>
<li><code>DISABLE_ICONV</code> - Disable iconv-based conversion (ON by default on Windows)</li>
</ul>
<p>Useful CMake options:</p>
<ul>
<li><code>CMAKE_INCLUDE_PATH</code> - path to the boost library (if not system-wide)</li>
<li><code>CMAKE_INSTALL_PREFIX</code> - installation path</li>
<li><code>CMAKE_BUILD_TYPE</code> - default is Debug on Windows/MSVC and RelWithDebInfo on all other platforms.</li>
</ul>
<p>Examples:</p>
<ul>
<li>Build Boost.Locale with only the "icu" backend on Linux <div class="fragment"><pre class="fragment"> cmake -DDISABLE_POSIX_BACKEND=ON -DDISABLE_STD_BACKEND=ON -DDISABLE_ICONV=ON ..
</pre></div></li>
<li>Build Boost.Locale with the "winapi" and "std" backends on Windows <div class="fragment"><pre class="fragment"> cmake -G <span class="stringliteral">&quot;NMake Makefiles&quot;</span> -DDISABLE_ICU_BACKEND=ON -DCMAKE_INCLUDE_PATH=c:/boost_1_43_0 ..
</pre></div></li>
</ul>
<h2><a class="anchor" id="binary_compatibility"></a>
Binary Compatibility</h2>
<p>Boost.Locale is built with binary compatibility in mind. Switching localization back ends on or off, or using iconv or not, does not affect binary compatibility. So if a dynamic library was built with all possible backends, other dynamic libraries compiled with, for example, only the <code>std</code>, <code>posix</code> or <code>winapi</code> backends would still be binary-compatible with it.</p>
<p>However this definitely has an effect on some features. For example, if you try to use boundary analysis or a calendar facet when the library does not support the icu backend you would get an exception. </p>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,144 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: calendar.cpp</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>calendar.cpp</h1> </div>
</div>
<div class="contents">
<p>Example of using date_time functions for generating calendar for current year.</p>
<div class="fragment"><pre class="fragment"><span class="comment">//</span>
<span class="comment">// Copyright (c) 2009-2011 Artyom Beilis (Tonkikh)</span>
<span class="comment">//</span>
<span class="comment">// Distributed under the Boost Software License, Version 1.0. (See</span>
<span class="comment">// accompanying file LICENSE_1_0.txt or copy at</span>
<span class="comment">// http://www.boost.org/LICENSE_1_0.txt)</span>
<span class="comment">//</span>
<span class="preprocessor">#include &lt;boost/locale.hpp&gt;</span>
<span class="preprocessor">#include &lt;iostream&gt;</span>
<span class="preprocessor">#include &lt;iomanip&gt;</span>
<span class="preprocessor">#include &lt;ctime&gt;</span>
<span class="keywordtype">int</span> main()
{
<span class="keyword">using namespace </span>boost::locale;
<a name="_a0"></a><a class="code" href="classboost_1_1locale_1_1generator.html" title="the major class used for locale generation">generator</a> gen;
std::locale::global(gen(<span class="stringliteral">&quot;&quot;</span>));
std::cout.imbue(std::locale());
<span class="comment">// Setup environment</span>
<a name="_a1"></a><a class="code" href="classboost_1_1locale_1_1date__time.html" title="this class represents a date time and allows to perform various operation according to the locale set...">boost::locale::date_time</a> now;
<a class="code" href="classboost_1_1locale_1_1date__time.html" title="this class represents a date time and allows to perform various operation according to the locale set...">date_time</a> start=now;
<span class="comment">// Set the first day of the first month of this year</span>
start.set(<a name="a2"></a><a class="code" href="namespaceboost_1_1locale_1_1period.html#aa6aafbd111a9c729266f2aa28b895d68">period::month</a>(),now.minimum(<a class="code" href="namespaceboost_1_1locale_1_1period.html#aa6aafbd111a9c729266f2aa28b895d68">period::month</a>()));
start.set(<a name="a3"></a><a class="code" href="namespaceboost_1_1locale_1_1period.html#a72438d8d7da8493457e043aa442f0d9d">period::day</a>(),start.minimum(<a class="code" href="namespaceboost_1_1locale_1_1period.html#a72438d8d7da8493457e043aa442f0d9d">period::day</a>()));
<span class="keywordtype">int</span> current_year = <a name="a4"></a><a class="code" href="namespaceboost_1_1locale_1_1period.html#a9ea8d1453bed512ee16bea3199fd92af">period::year</a>(now);
<span class="comment">// Display current year</span>
std::cout &lt;&lt; <a name="a5"></a><a class="code" href="group__format.html#gad7914df7b54382c1ad7f5360676fe2e8">format</a>(<span class="stringliteral">&quot;{1,ftime=&#39;%Y&#39;}&quot;</span>) % now &lt;&lt; std::endl;
<span class="comment">//</span>
<span class="comment">// Run forward untill current year is the date</span>
<span class="comment">//</span>
<span class="keywordflow">for</span>(now=start; <a class="code" href="namespaceboost_1_1locale_1_1period.html#a9ea8d1453bed512ee16bea3199fd92af">period::year</a>(now) == current_year;) {
<span class="comment">// Print heading of month</span>
<span class="keywordflow">if</span>(<a name="_a6"></a><a class="code" href="classboost_1_1locale_1_1calendar.html" title="this class provides an access to general calendar information.">calendar</a>().is_gregorian())
std::cout &lt;&lt; <a class="code" href="group__format.html#gad7914df7b54382c1ad7f5360676fe2e8">format</a>(<span class="stringliteral">&quot;{1,ftime=&#39;%B&#39;}&quot;</span>) % now &lt;&lt;std::endl;
<span class="keywordflow">else</span>
std::cout &lt;&lt; <a class="code" href="group__format.html#gad7914df7b54382c1ad7f5360676fe2e8">format</a>(<span class="stringliteral">&quot;{1,ftime=&#39;%B&#39;} ({1,ftime=&#39;%Y-%m-%d&#39;,locale=en} - {2,locale=en,ftime=&#39;%Y-%m-%d&#39;})&quot;</span>)
% now
% <a class="code" href="classboost_1_1locale_1_1date__time.html" title="this class represents a date time and allows to perform various operation according to the locale set...">date_time</a>(now,now.maximum(<a class="code" href="namespaceboost_1_1locale_1_1period.html#a72438d8d7da8493457e043aa442f0d9d">period::day</a>())*<a class="code" href="namespaceboost_1_1locale_1_1period.html#a72438d8d7da8493457e043aa442f0d9d">period::day</a>()) &lt;&lt; std::endl;
<span class="keywordtype">int</span> first = <a class="code" href="classboost_1_1locale_1_1calendar.html" title="this class provides an access to general calendar information.">calendar</a>().first_day_of_week();
<span class="comment">// Print weeks days</span>
<span class="keywordflow">for</span>(<span class="keywordtype">int</span> i=0;i&lt;7;i++) {
<a class="code" href="classboost_1_1locale_1_1date__time.html" title="this class represents a date time and allows to perform various operation according to the locale set...">date_time</a> tmp(now,<a name="a7"></a><a class="code" href="namespaceboost_1_1locale_1_1period.html#ac1b424cae5ed4ab32aed3c3aedc306e9">period::day_of_week</a>() * (first + i));
std::cout &lt;&lt; <a class="code" href="group__format.html#gad7914df7b54382c1ad7f5360676fe2e8">format</a>(<span class="stringliteral">&quot;{1,w=8,ftime=&#39;%a&#39;} &quot;</span>) % tmp;
}
std::cout &lt;&lt; std::endl;
<span class="keywordtype">int</span> current_month = now / <a class="code" href="namespaceboost_1_1locale_1_1period.html#aa6aafbd111a9c729266f2aa28b895d68">period::month</a>();
<span class="keywordtype">int</span> <a name="a8"></a><a class="code" href="group__codepage.html#gga8e3c5a274f57107ec5745e227c26ba84ae9b554a2955deddf714757788819edf9" title="Skip illegal/unconvertable characters.">skip</a> = now / <a name="a9"></a><a class="code" href="namespaceboost_1_1locale_1_1period.html#a57d6b8f97bd6604e13c6982ed0953678">period::day_of_week_local</a>() - 1;
<span class="keywordflow">for</span>(<span class="keywordtype">int</span> i=0;i&lt;skip*9;i++)
std::cout &lt;&lt; <span class="charliteral">&#39; &#39;</span>;
<span class="keywordflow">for</span>(;now / <a class="code" href="namespaceboost_1_1locale_1_1period.html#aa6aafbd111a9c729266f2aa28b895d68">period::month</a>() == current_month ;now += <a class="code" href="namespaceboost_1_1locale_1_1period.html#a72438d8d7da8493457e043aa442f0d9d">period::day</a>()) {
std::cout &lt;&lt; <a class="code" href="group__format.html#gad7914df7b54382c1ad7f5360676fe2e8">format</a>(<span class="stringliteral">&quot;{1,w=8,ftime=&#39;%e&#39;} &quot;</span>) % now;
<span class="keywordflow">if</span>(now / <a class="code" href="namespaceboost_1_1locale_1_1period.html#a57d6b8f97bd6604e13c6982ed0953678">period::day_of_week_local</a>() == 7)
std::cout &lt;&lt; std::endl;
}
std::cout &lt;&lt; std::endl;
}
}
<span class="comment">// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4</span>
</pre></div> </div>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,161 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Character Set Conversions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><a class="el" href="main.html">Boost.Locale</a> </li>
<li><a class="el" href="using_boost_locale.html">Using Boost.Locale</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>Character Set Conversions </h1> </div>
</div>
<div class="contents">
<h2><a class="anchor" id="codecvt"></a>
Convenience Interface</h2>
<p>Boost.Locale provides <a class="el" href="group__codepage.html#gad659f9c9c8b291e2ac6af24c49b42e43">to_utf</a>, <a class="el" href="group__codepage.html#gadc41bd2517e6e3bdcecdfc93b339204c">from_utf</a> and <a class="el" href="group__codepage.html#ga2de4d9d38004e5d7146abf2bd6a3df0b">utf_to_utf</a> functions in the <code><a class="el" href="namespaceboost_1_1locale_1_1conv.html" title="Namespace that contains all functions related to character set conversion.">boost::locale::conv</a></code> namespace. They are simple and convenient functions to convert a string to and from UTF-8/16/32 strings and strings using other encodings.</p>
<p>For example:</p>
<div class="fragment"><pre class="fragment">std::string utf8_string = to_utf&lt;char&gt;(latin1_string,<span class="stringliteral">&quot;Latin1&quot;</span>);
std::wstring wide_string = to_utf&lt;wchar_t&gt;(latin1_string,<span class="stringliteral">&quot;Latin1&quot;</span>);
std::string latin1_string = <a class="code" href="group__codepage.html#gadc41bd2517e6e3bdcecdfc93b339204c">from_utf</a>(wide_string,<span class="stringliteral">&quot;Latin1&quot;</span>);
std::string utf8_string2 = utf_to_utf&lt;char&gt;(wide_string);
</pre></div><p>This function may use an explicit encoding name like "Latin1" or "ISO-8859-8", or use std::locale as a parameter to fetch this information from it. It also receives a policy parameter that tells it how to behave if the conversion can't be performed (i.e. an illegal or unsupported character is found). By default this function skips all illegal characters and tries to do the best it can, however, it is possible ask it to throw a <a class="el" href="classboost_1_1locale_1_1conv_1_1conversion__error.html">conversion_error</a> exception by passing the <code>stop</code> flag to it:</p>
<div class="fragment"><pre class="fragment">std::wstring s=to_utf&lt;wchar_t&gt;(<span class="stringliteral">&quot;\xFF\xFF&quot;</span>,<span class="stringliteral">&quot;UTF-8&quot;</span>,stop);
<span class="comment">// Throws because this string is illegal in UTF-8</span>
</pre></div><h2><a class="anchor" id="codecvt_codecvt"></a>
std::codecvt facet</h2>
<p>Boost.Locale provides stream codepage conversion facets based on the <code>std::codecvt</code> facet. This allows conversion between wide-character encodings and 8-bit encodings like UTF-8, ISO-8859 or Shift-JIS.</p>
<p>Most of compilers provide such facets, but:</p>
<ul>
<li>Under Windows MSVC does not support UTF-8 encodings at all.</li>
<li>Under Linux the encodings are supported only if the required locales are generated. For example it may be impossible to create a <code>he_IL.CP1255</code> locale even when the <code>he_IL</code> locale is available.</li>
</ul>
<p>Thus Boost.Locale provides an option to generate code-page conversion facets for use with Boost.Iostreams filters or <code>std::wfstream</code>. For example:</p>
<div class="fragment"><pre class="fragment"> std::locale loc= generator().generate(<span class="stringliteral">&quot;he_IL.UTF-8&quot;</span>);
std::wofstream file.
file.imbue(loc);
file.open(<span class="stringliteral">&quot;hello.txt&quot;</span>);
file &lt;&lt; L<span class="stringliteral">&quot;שלום!&quot;</span> &lt;&lt; endl;
</pre></div><p>Would create a file <code>hello.txt</code> encoded as UTF-8 with "שלום!" (shalom) in it.</p>
<h2><a class="anchor" id="codecvt_iostreams_integration"></a>
Integration with Boost.Iostreams</h2>
<p>You can use the <code>std::codecvt</code> facet directly, but this is quite tricky and requires accurate buffer and error management.</p>
<p>You can use the <code>boost::iostreams::code_converter</code> class for stream-oriented conversions between the wide-character set and narrow locale character set.</p>
<p>This is a sample program that converts wide to narrow characters for an arbitrary stream:</p>
<div class="fragment"><pre class="fragment"><span class="preprocessor">#include &lt;boost/iostreams/stream.hpp&gt;</span>
<span class="preprocessor">#include &lt;boost/iostreams/categories.hpp&gt;</span>
<span class="preprocessor">#include &lt;boost/iostreams/code_converter.hpp&gt;</span>
<span class="preprocessor">#include &lt;boost/locale.hpp&gt;</span>
<span class="preprocessor">#include &lt;iostream&gt;</span>
<span class="keyword">namespace </span>io = boost::iostreams;
<span class="comment">// Device that consumes the converted text,</span>
<span class="comment">// In our case it just writes to standard output</span>
<span class="keyword">class </span>consumer {
<span class="keyword">public</span>:
<span class="keyword">typedef</span> <span class="keywordtype">char</span> char_type;
<span class="keyword">typedef</span> io::sink_tag category;
std::streamsize write(<span class="keyword">const</span> <span class="keywordtype">char</span>* s, std::streamsize n)
{
std::cout.write(s,n);
<span class="keywordflow">return</span> n;
}
};
<span class="keywordtype">int</span> main()
{
<span class="comment">// the device that converts wide characters</span>
<span class="comment">// to narrow</span>
<span class="keyword">typedef</span> io::code_converter&lt;consumer&gt; converter_device;
<span class="comment">// the stream that uses this device</span>
<span class="keyword">typedef</span> io::stream&lt;converter_device&gt; converter_stream;
consumer cons;
<span class="comment">// setup out converter to work</span>
<span class="comment">// with he_IL.UTF-8 locale </span>
converter_device dev;
<a class="code" href="classboost_1_1locale_1_1generator.html" title="the major class used for locale generation">boost::locale::generator</a> gen;
dev.imbue(gen(<span class="stringliteral">&quot;he_IL.UTF-8&quot;</span>));
dev.open(cons);
converter_stream stream;
stream.open(dev);
<span class="comment">// Now wide characters that are written</span>
<span class="comment">// to the stream would be given to</span>
<span class="comment">// our consumer as narrow characters </span>
<span class="comment">// in UTF-8 encoding</span>
stream &lt;&lt; L<span class="stringliteral">&quot;שלום&quot;</span> &lt;&lt; std::flush;
}
</pre></div><h2><a class="anchor" id="codecvt_limitations"></a>
Limitations of std::codecvt</h2>
<p>The Standard does not provide any information about <code>std::mbstate_t</code> that could be used to save intermediate code-page conversion states. It leaves the definition up to the compiler implementation, making it impossible to reimplement <code>std::codecvt&lt;wchar_t,char,mbstate_t&gt;</code> for stateful encodings. Thus, Boost.Locale's <code>codecvt</code> facet implementation may be used with stateless encodings like UTF-8, ISO-8859, and Shift-JIS, but not with stateful encodings like UTF-7 or SCSU.</p>
<p><b>Recommendation:</b> Prefer the Unicode UTF-8 encoding for <code>char</code> based strings and files in your application.</p>
<dl class="note"><dt><b>Note:</b></dt><dd></dd></dl>
<p>The implementation of codecvt for single byte encodings like ISO-8859-X and for UTF-8 is very efficent and would allow fast conversion of the content, however its performance may be sub-optimal for double-width encodings like Shift-JIS, due to the stateless problem described above. </p>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,107 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::abstract_calendar Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#af786b3e65294d70769f2826ef95c7bd5ab5d1af0b2698fee942a1486dfcc6552b">absolute_maximum</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#af786b3e65294d70769f2826ef95c7bd5a28694319e58f559df9ca41b22f03427e">absolute_minimum</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#af786b3e65294d70769f2826ef95c7bd5a3d2648e95466623ba20502281e0208af">actual_maximum</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#af786b3e65294d70769f2826ef95c7bd5a5aa2c2d439c6e801e3bc48a35972932b">actual_minimum</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#afb8e3a4d2ad93274ec119dc3dd0b103a">adjust_value</a>(period::marks::period_mark p, update_type u, int difference)=0</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a5f1927f4c71fafa4712265e6b68958b5">calendar_option_type</a> enum name</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a73bc2d023be4c6ac6a6f441f74ded2f9">clone</a>() const =0</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#af786b3e65294d70769f2826ef95c7bd5a83d87ff10ff6107dfd0405f1e8757ef8">current</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a7bd4c26f5a4260f6d9c91c615efc4b46">difference</a>(abstract_calendar const *other, period::marks::period_mark p) const =0</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a0c034dd6f135b7d9b6faad08d49715a8">get_option</a>(calendar_option_type opt) const =0</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a8900097c0b687393b053bc0420070815">get_time</a>() const =0</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a51f4b91d0dc2f9afa3920a771307d92f">get_timezone</a>() const =0</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a7eacfa5d8f37dfc839d0239c2fcdf64e">get_value</a>(period::marks::period_mark p, value_type v) const =0</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#af786b3e65294d70769f2826ef95c7bd5a75e80e0a10af4b2b8eb2fcab72e4b200">greatest_minimum</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a5f1927f4c71fafa4712265e6b68958b5a69f0c20e321e3b914883869466122c61">is_dst</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a5f1927f4c71fafa4712265e6b68958b5add910815d1ad0e97275b781223e869a9">is_gregorian</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#af786b3e65294d70769f2826ef95c7bd5a388661725182373d2f92b709034f85c9">least_maximum</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a92cf9485b91d60b70ef00e183bdf4e95aac5f9cb6e12a121b47b51434a3655c81">move</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#aa06fef77acaa6104e3cd2bc80ccc76d9">normalize</a>()=0</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a92cf9485b91d60b70ef00e183bdf4e95a704e0e917603c2a88de22f3426a3e20b">roll</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#aa20ae19bca185cc0fa4ab69d7f3c5883">same</a>(abstract_calendar const *other) const =0</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a9265206013005d9ac30cf723a7ffe032">set_option</a>(calendar_option_type opt, int v)=0</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#acb01268c84f27a8a736b715ab9e9557a">set_time</a>(posix_time const &amp;p)=0</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#aa17f0fd2e88d3da8fe7b12e98ad2d6c3">set_timezone</a>(std::string const &amp;tz)=0</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a15067ccf90a19e640051a30a6d3a2a7f">set_value</a>(period::marks::period_mark p, int value)=0</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a92cf9485b91d60b70ef00e183bdf4e95">update_type</a> enum name</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#af786b3e65294d70769f2826ef95c7bd5">value_type</a> enum name</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>~abstract_calendar</b>() (defined in <a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a>)</td><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a></td><td><code> [inline, virtual]</code></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,518 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::abstract_calendar Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">boost::locale::abstract_calendar</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<h1>boost::locale::abstract_calendar Class Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::abstract_calendar" -->
<p><code>#include &lt;<a class="el" href="date__time__facet_8hpp_source.html">boost/locale/date_time_facet.hpp</a>&gt;</code></p>
<p><a href="classboost_1_1locale_1_1abstract__calendar-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#af786b3e65294d70769f2826ef95c7bd5">value_type</a> { <br/>
&nbsp;&nbsp;<a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#af786b3e65294d70769f2826ef95c7bd5a28694319e58f559df9ca41b22f03427e">absolute_minimum</a>,
<a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#af786b3e65294d70769f2826ef95c7bd5a5aa2c2d439c6e801e3bc48a35972932b">actual_minimum</a>,
<a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#af786b3e65294d70769f2826ef95c7bd5a75e80e0a10af4b2b8eb2fcab72e4b200">greatest_minimum</a>,
<a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#af786b3e65294d70769f2826ef95c7bd5a83d87ff10ff6107dfd0405f1e8757ef8">current</a>,
<br/>
&nbsp;&nbsp;<a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#af786b3e65294d70769f2826ef95c7bd5a388661725182373d2f92b709034f85c9">least_maximum</a>,
<a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#af786b3e65294d70769f2826ef95c7bd5a3d2648e95466623ba20502281e0208af">actual_maximum</a>,
<a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#af786b3e65294d70769f2826ef95c7bd5ab5d1af0b2698fee942a1486dfcc6552b">absolute_maximum</a>
<br/>
}</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a92cf9485b91d60b70ef00e183bdf4e95">update_type</a> { <a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a92cf9485b91d60b70ef00e183bdf4e95aac5f9cb6e12a121b47b51434a3655c81">move</a>,
<a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a92cf9485b91d60b70ef00e183bdf4e95a704e0e917603c2a88de22f3426a3e20b">roll</a>
}</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a5f1927f4c71fafa4712265e6b68958b5">calendar_option_type</a> { <a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a5f1927f4c71fafa4712265e6b68958b5add910815d1ad0e97275b781223e869a9">is_gregorian</a>,
<a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a5f1927f4c71fafa4712265e6b68958b5a69f0c20e321e3b914883869466122c61">is_dst</a>
}</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">abstract_calendar</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a73bc2d023be4c6ac6a6f441f74ded2f9">clone</a> () const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a15067ccf90a19e640051a30a6d3a2a7f">set_value</a> (<a class="el" href="namespaceboost_1_1locale_1_1period_1_1marks.html#a1536eaff4b2a880782128fc127f40d3a">period::marks::period_mark</a> p, int value)=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#aa06fef77acaa6104e3cd2bc80ccc76d9">normalize</a> ()=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a7eacfa5d8f37dfc839d0239c2fcdf64e">get_value</a> (<a class="el" href="namespaceboost_1_1locale_1_1period_1_1marks.html#a1536eaff4b2a880782128fc127f40d3a">period::marks::period_mark</a> p, <a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#af786b3e65294d70769f2826ef95c7bd5">value_type</a> v) const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#acb01268c84f27a8a736b715ab9e9557a">set_time</a> (<a class="el" href="structboost_1_1locale_1_1posix__time.html">posix_time</a> const &amp;p)=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="structboost_1_1locale_1_1posix__time.html">posix_time</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a8900097c0b687393b053bc0420070815">get_time</a> () const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a9265206013005d9ac30cf723a7ffe032">set_option</a> (<a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a5f1927f4c71fafa4712265e6b68958b5">calendar_option_type</a> opt, int v)=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a0c034dd6f135b7d9b6faad08d49715a8">get_option</a> (<a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a5f1927f4c71fafa4712265e6b68958b5">calendar_option_type</a> opt) const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#afb8e3a4d2ad93274ec119dc3dd0b103a">adjust_value</a> (<a class="el" href="namespaceboost_1_1locale_1_1period_1_1marks.html#a1536eaff4b2a880782128fc127f40d3a">period::marks::period_mark</a> p, <a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a92cf9485b91d60b70ef00e183bdf4e95">update_type</a> u, int difference)=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a7bd4c26f5a4260f6d9c91c615efc4b46">difference</a> (<a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">abstract_calendar</a> const *other, <a class="el" href="namespaceboost_1_1locale_1_1period_1_1marks.html#a1536eaff4b2a880782128fc127f40d3a">period::marks::period_mark</a> p) const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#aa17f0fd2e88d3da8fe7b12e98ad2d6c3">set_timezone</a> (std::string const &amp;tz)=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a51f4b91d0dc2f9afa3920a771307d92f">get_timezone</a> () const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#aa20ae19bca185cc0fa4ab69d7f3c5883">same</a> (<a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">abstract_calendar</a> const *other) const =0</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>This class defines generic calendar class, it is used by <a class="el" href="classboost_1_1locale_1_1date__time.html" title="this class represents a date time and allows to perform various operation according to the locale set...">date_time</a> and calendar objects internally. It is less useful for end users, but it is build for localization backend implementation </p>
<hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a5f1927f4c71fafa4712265e6b68958b5"></a><!-- doxytag: member="boost::locale::abstract_calendar::calendar_option_type" ref="a5f1927f4c71fafa4712265e6b68958b5" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a5f1927f4c71fafa4712265e6b68958b5">boost::locale::abstract_calendar::calendar_option_type</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Information about calendar </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a5f1927f4c71fafa4712265e6b68958b5add910815d1ad0e97275b781223e869a9"></a><!-- doxytag: member="is_gregorian" ref="a5f1927f4c71fafa4712265e6b68958b5add910815d1ad0e97275b781223e869a9" args="" -->is_gregorian</em>&nbsp;</td><td>
<p>Check if the calendar is Gregorian. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a5f1927f4c71fafa4712265e6b68958b5a69f0c20e321e3b914883869466122c61"></a><!-- doxytag: member="is_dst" ref="a5f1927f4c71fafa4712265e6b68958b5a69f0c20e321e3b914883869466122c61" args="" -->is_dst</em>&nbsp;</td><td>
<p>Check if the current time is in daylight time savings. </p>
</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a92cf9485b91d60b70ef00e183bdf4e95"></a><!-- doxytag: member="boost::locale::abstract_calendar::update_type" ref="a92cf9485b91d60b70ef00e183bdf4e95" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a92cf9485b91d60b70ef00e183bdf4e95">boost::locale::abstract_calendar::update_type</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>A way to update the value </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a92cf9485b91d60b70ef00e183bdf4e95aac5f9cb6e12a121b47b51434a3655c81"></a><!-- doxytag: member="move" ref="a92cf9485b91d60b70ef00e183bdf4e95aac5f9cb6e12a121b47b51434a3655c81" args="" -->move</em>&nbsp;</td><td>
<p>Change the value up or down effecting others for example 1990-12-31 + 1 day = 1991-01-01. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a92cf9485b91d60b70ef00e183bdf4e95a704e0e917603c2a88de22f3426a3e20b"></a><!-- doxytag: member="roll" ref="a92cf9485b91d60b70ef00e183bdf4e95a704e0e917603c2a88de22f3426a3e20b" args="" -->roll</em>&nbsp;</td><td>
<p>Change the value up or down not effecting others for example 1990-12-31 + 1 day = 1990-12-01. </p>
</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="af786b3e65294d70769f2826ef95c7bd5"></a><!-- doxytag: member="boost::locale::abstract_calendar::value_type" ref="af786b3e65294d70769f2826ef95c7bd5" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#af786b3e65294d70769f2826ef95c7bd5">boost::locale::abstract_calendar::value_type</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Type that defines how to fetch the value </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="af786b3e65294d70769f2826ef95c7bd5a28694319e58f559df9ca41b22f03427e"></a><!-- doxytag: member="absolute_minimum" ref="af786b3e65294d70769f2826ef95c7bd5a28694319e58f559df9ca41b22f03427e" args="" -->absolute_minimum</em>&nbsp;</td><td>
<p>Absolute possible minimum for the value, for example for day is 1. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="af786b3e65294d70769f2826ef95c7bd5a5aa2c2d439c6e801e3bc48a35972932b"></a><!-- doxytag: member="actual_minimum" ref="af786b3e65294d70769f2826ef95c7bd5a5aa2c2d439c6e801e3bc48a35972932b" args="" -->actual_minimum</em>&nbsp;</td><td>
<p>Actual minimal value for this period. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="af786b3e65294d70769f2826ef95c7bd5a75e80e0a10af4b2b8eb2fcab72e4b200"></a><!-- doxytag: member="greatest_minimum" ref="af786b3e65294d70769f2826ef95c7bd5a75e80e0a10af4b2b8eb2fcab72e4b200" args="" -->greatest_minimum</em>&nbsp;</td><td>
<p>Maximal minimum value that can be for this period. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="af786b3e65294d70769f2826ef95c7bd5a83d87ff10ff6107dfd0405f1e8757ef8"></a><!-- doxytag: member="current" ref="af786b3e65294d70769f2826ef95c7bd5a83d87ff10ff6107dfd0405f1e8757ef8" args="" -->current</em>&nbsp;</td><td>
<p>Current value of this period. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="af786b3e65294d70769f2826ef95c7bd5a388661725182373d2f92b709034f85c9"></a><!-- doxytag: member="least_maximum" ref="af786b3e65294d70769f2826ef95c7bd5a388661725182373d2f92b709034f85c9" args="" -->least_maximum</em>&nbsp;</td><td>
<p>The last maximal value for this period, For example for Gregorian calendar day it is 28 </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="af786b3e65294d70769f2826ef95c7bd5a3d2648e95466623ba20502281e0208af"></a><!-- doxytag: member="actual_maximum" ref="af786b3e65294d70769f2826ef95c7bd5a3d2648e95466623ba20502281e0208af" args="" -->actual_maximum</em>&nbsp;</td><td>
<p>Actual maximum, for it can be 28, 29, 30, 31 for day according to current month. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="af786b3e65294d70769f2826ef95c7bd5ab5d1af0b2698fee942a1486dfcc6552b"></a><!-- doxytag: member="absolute_maximum" ref="af786b3e65294d70769f2826ef95c7bd5ab5d1af0b2698fee942a1486dfcc6552b" args="" -->absolute_maximum</em>&nbsp;</td><td>
<p>Maximal value, for Gregorian day it would be 31. </p>
</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="afb8e3a4d2ad93274ec119dc3dd0b103a"></a><!-- doxytag: member="boost::locale::abstract_calendar::adjust_value" ref="afb8e3a4d2ad93274ec119dc3dd0b103a" args="(period::marks::period_mark p, update_type u, int difference)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void boost::locale::abstract_calendar::adjust_value </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespaceboost_1_1locale_1_1period_1_1marks.html#a1536eaff4b2a880782128fc127f40d3a">period::marks::period_mark</a>&nbsp;</td>
<td class="paramname"> <em>p</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a92cf9485b91d60b70ef00e183bdf4e95">update_type</a>&nbsp;</td>
<td class="paramname"> <em>u</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&nbsp;</td>
<td class="paramname"> <em>difference</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Adjust period's <em>p</em> value by <em>difference</em> items using a update_type <em>u</em>. Note: not all values are adjustable </p>
</div>
</div>
<a class="anchor" id="a73bc2d023be4c6ac6a6f441f74ded2f9"></a><!-- doxytag: member="boost::locale::abstract_calendar::clone" ref="a73bc2d023be4c6ac6a6f441f74ded2f9" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">abstract_calendar</a>* boost::locale::abstract_calendar::clone </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Make a polymorphic copy of the calendar </p>
</div>
</div>
<a class="anchor" id="a7bd4c26f5a4260f6d9c91c615efc4b46"></a><!-- doxytag: member="boost::locale::abstract_calendar::difference" ref="a7bd4c26f5a4260f6d9c91c615efc4b46" args="(abstract_calendar const *other, period::marks::period_mark p) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual int boost::locale::abstract_calendar::difference </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">abstract_calendar</a> const *&nbsp;</td>
<td class="paramname"> <em>other</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceboost_1_1locale_1_1period_1_1marks.html#a1536eaff4b2a880782128fc127f40d3a">period::marks::period_mark</a>&nbsp;</td>
<td class="paramname"> <em>p</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Calculate the difference between this calendar and <em>other</em> in <em>p</em> units </p>
</div>
</div>
<a class="anchor" id="a0c034dd6f135b7d9b6faad08d49715a8"></a><!-- doxytag: member="boost::locale::abstract_calendar::get_option" ref="a0c034dd6f135b7d9b6faad08d49715a8" args="(calendar_option_type opt) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual int boost::locale::abstract_calendar::get_option </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a5f1927f4c71fafa4712265e6b68958b5">calendar_option_type</a>&nbsp;</td>
<td class="paramname"> <em>opt</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get option for calendar, currently only check if it is Gregorian calendar </p>
</div>
</div>
<a class="anchor" id="a8900097c0b687393b053bc0420070815"></a><!-- doxytag: member="boost::locale::abstract_calendar::get_time" ref="a8900097c0b687393b053bc0420070815" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="structboost_1_1locale_1_1posix__time.html">posix_time</a> boost::locale::abstract_calendar::get_time </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get current time point </p>
</div>
</div>
<a class="anchor" id="a51f4b91d0dc2f9afa3920a771307d92f"></a><!-- doxytag: member="boost::locale::abstract_calendar::get_timezone" ref="a51f4b91d0dc2f9afa3920a771307d92f" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual std::string boost::locale::abstract_calendar::get_timezone </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get current time zone, empty - system one </p>
</div>
</div>
<a class="anchor" id="a7eacfa5d8f37dfc839d0239c2fcdf64e"></a><!-- doxytag: member="boost::locale::abstract_calendar::get_value" ref="a7eacfa5d8f37dfc839d0239c2fcdf64e" args="(period::marks::period_mark p, value_type v) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual int boost::locale::abstract_calendar::get_value </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespaceboost_1_1locale_1_1period_1_1marks.html#a1536eaff4b2a880782128fc127f40d3a">period::marks::period_mark</a>&nbsp;</td>
<td class="paramname"> <em>p</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#af786b3e65294d70769f2826ef95c7bd5">value_type</a>&nbsp;</td>
<td class="paramname"> <em>v</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get specific value for period <em>p</em> according to a value_type <em>v</em> </p>
</div>
</div>
<a class="anchor" id="aa06fef77acaa6104e3cd2bc80ccc76d9"></a><!-- doxytag: member="boost::locale::abstract_calendar::normalize" ref="aa06fef77acaa6104e3cd2bc80ccc76d9" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void boost::locale::abstract_calendar::normalize </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Recalculate all periods after setting them, should be called after use of <a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a15067ccf90a19e640051a30a6d3a2a7f">set_value()</a> function. </p>
</div>
</div>
<a class="anchor" id="aa20ae19bca185cc0fa4ab69d7f3c5883"></a><!-- doxytag: member="boost::locale::abstract_calendar::same" ref="aa20ae19bca185cc0fa4ab69d7f3c5883" args="(abstract_calendar const *other) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool boost::locale::abstract_calendar::same </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">abstract_calendar</a> const *&nbsp;</td>
<td class="paramname"> <em>other</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Check of two calendars have same rules </p>
</div>
</div>
<a class="anchor" id="a9265206013005d9ac30cf723a7ffe032"></a><!-- doxytag: member="boost::locale::abstract_calendar::set_option" ref="a9265206013005d9ac30cf723a7ffe032" args="(calendar_option_type opt, int v)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void boost::locale::abstract_calendar::set_option </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#a5f1927f4c71fafa4712265e6b68958b5">calendar_option_type</a>&nbsp;</td>
<td class="paramname"> <em>opt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&nbsp;</td>
<td class="paramname"> <em>v</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set option for calendar, for future use </p>
</div>
</div>
<a class="anchor" id="acb01268c84f27a8a736b715ab9e9557a"></a><!-- doxytag: member="boost::locale::abstract_calendar::set_time" ref="acb01268c84f27a8a736b715ab9e9557a" args="(posix_time const &amp;p)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void boost::locale::abstract_calendar::set_time </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structboost_1_1locale_1_1posix__time.html">posix_time</a> const &amp;&nbsp;</td>
<td class="paramname"> <em>p</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set current time point </p>
</div>
</div>
<a class="anchor" id="aa17f0fd2e88d3da8fe7b12e98ad2d6c3"></a><!-- doxytag: member="boost::locale::abstract_calendar::set_timezone" ref="aa17f0fd2e88d3da8fe7b12e98ad2d6c3" args="(std::string const &amp;tz)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void boost::locale::abstract_calendar::set_timezone </td>
<td>(</td>
<td class="paramtype">std::string const &amp;&nbsp;</td>
<td class="paramname"> <em>tz</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set time zone, empty - use system </p>
</div>
</div>
<a class="anchor" id="a15067ccf90a19e640051a30a6d3a2a7f"></a><!-- doxytag: member="boost::locale::abstract_calendar::set_value" ref="a15067ccf90a19e640051a30a6d3a2a7f" args="(period::marks::period_mark p, int value)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void boost::locale::abstract_calendar::set_value </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespaceboost_1_1locale_1_1period_1_1marks.html#a1536eaff4b2a880782128fc127f40d3a">period::marks::period_mark</a>&nbsp;</td>
<td class="paramname"> <em>p</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&nbsp;</td>
<td class="paramname"> <em>value</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set specific <em>value</em> for period <em>p</em>, note not all values are settable.</p>
<p>After call of set_value you may want to call <a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#aa06fef77acaa6104e3cd2bc80ccc76d9">normalize()</a> function to make sure vall periods are updated, if you set sereral fields that are part of single date/time representation you should call set_value several times and then call <a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#aa06fef77acaa6104e3cd2bc80ccc76d9">normalize()</a>.</p>
<p>If <a class="el" href="classboost_1_1locale_1_1abstract__calendar.html#aa06fef77acaa6104e3cd2bc80ccc76d9">normalize()</a> is not called after set_value, the behavior is undefined </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/<a class="el" href="date__time__facet_8hpp_source.html">date_time_facet.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,88 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::basic_format&lt; CharType &gt; Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1basic__format.html">boost::locale::basic_format&lt; CharType &gt;</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1basic__format.html#a4c885ae60a5b867863b79acb75feff9e">basic_format</a>(string_type format_string)</td><td><a class="el" href="classboost_1_1locale_1_1basic__format.html">boost::locale::basic_format&lt; CharType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1basic__format.html#a155e8e60061da7461bbcc958d600c190">basic_format</a>(message_type const &amp;trans)</td><td><a class="el" href="classboost_1_1locale_1_1basic__format.html">boost::locale::basic_format&lt; CharType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1basic__format.html#a45c16f2e69842b8d223d240bbd6e210a">char_type</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1basic__format.html">boost::locale::basic_format&lt; CharType &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1basic__format.html#a75213e5cc9d113f6b25e72542a4841f5">message_type</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1basic__format.html">boost::locale::basic_format&lt; CharType &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1basic__format.html#a63e45267da46ff25d09441ac52f21efc">operator%</a>(Formattible const &amp;object)</td><td><a class="el" href="classboost_1_1locale_1_1basic__format.html">boost::locale::basic_format&lt; CharType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1basic__format.html#a6bc65d7993e3ab6ad51809ef8fb65400">str</a>(std::locale const &amp;loc=std::locale()) const </td><td><a class="el" href="classboost_1_1locale_1_1basic__format.html">boost::locale::basic_format&lt; CharType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1basic__format.html#a6aba7e54f0065f2697d13ff8a859309a">stream_type</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1basic__format.html">boost::locale::basic_format&lt; CharType &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1basic__format.html#a0e1263d23f67aa38b4d857031fccf973">string_type</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1basic__format.html">boost::locale::basic_format&lt; CharType &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1basic__format.html#a457c9228d13e80da3c807a51aa5ef6cd">write</a>(stream_type &amp;out) const </td><td><a class="el" href="classboost_1_1locale_1_1basic__format.html">boost::locale::basic_format&lt; CharType &gt;</a></td><td><code> [inline]</code></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,323 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::basic_format&lt; CharType &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1basic__format.html">boost::locale::basic_format&lt; CharType &gt;</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<h1>boost::locale::basic_format&lt; CharType &gt; Class Template Reference<br/>
<small>
[<a class="el" href="group__format.html">Format</a>]</small>
</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::basic_format" -->
<p>a printf like class that allows type-safe and locale aware message formatting
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="format_8hpp_source.html">boost/locale/format.hpp</a>&gt;</code></p>
<p><a href="classboost_1_1locale_1_1basic__format-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><b>format_guard</b></td></tr>
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a45c16f2e69842b8d223d240bbd6e210a"></a><!-- doxytag: member="boost::locale::basic_format::char_type" ref="a45c16f2e69842b8d223d240bbd6e210a" args="" -->
typedef CharType&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1basic__format.html#a45c16f2e69842b8d223d240bbd6e210a">char_type</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Underlying character type. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classboost_1_1locale_1_1basic__message.html">basic_message</a>&lt; <a class="el" href="classboost_1_1locale_1_1basic__format.html#a45c16f2e69842b8d223d240bbd6e210a">char_type</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1basic__format.html#a75213e5cc9d113f6b25e72542a4841f5">message_type</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef std::basic_string<br class="typebreak"/>
&lt; CharType &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1basic__format.html#a0e1263d23f67aa38b4d857031fccf973">string_type</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6aba7e54f0065f2697d13ff8a859309a"></a><!-- doxytag: member="boost::locale::basic_format::stream_type" ref="a6aba7e54f0065f2697d13ff8a859309a" args="" -->
typedef std::basic_ostream<br class="typebreak"/>
&lt; CharType &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1basic__format.html#a6aba7e54f0065f2697d13ff8a859309a">stream_type</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">output stream type for this type of character <br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1basic__format.html#a4c885ae60a5b867863b79acb75feff9e">basic_format</a> (<a class="el" href="classboost_1_1locale_1_1basic__format.html#a0e1263d23f67aa38b4d857031fccf973">string_type</a> format_string)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1basic__format.html#a155e8e60061da7461bbcc958d600c190">basic_format</a> (<a class="el" href="classboost_1_1locale_1_1basic__message.html">message_type</a> const &amp;trans)</td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;typename Formattible &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classboost_1_1locale_1_1basic__format.html">basic_format</a> &amp;&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1basic__format.html#a63e45267da46ff25d09441ac52f21efc">operator%</a> (Formattible const &amp;object)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classboost_1_1locale_1_1basic__format.html#a0e1263d23f67aa38b4d857031fccf973">string_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1basic__format.html#a6bc65d7993e3ab6ad51809ef8fb65400">str</a> (std::locale const &amp;loc=std::locale()) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1basic__format.html#a457c9228d13e80da3c807a51aa5ef6cd">write</a> (<a class="el" href="classboost_1_1locale_1_1basic__format.html#a6aba7e54f0065f2697d13ff8a859309a">stream_type</a> &amp;out) const </td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;typename CharType&gt;<br/>
class boost::locale::basic_format&lt; CharType &gt;</h3>
<p>a printf like class that allows type-safe and locale aware message formatting </p>
<p>This class creates a formatted message similar to printf or boost::format and receives formatted entries via operator %.</p>
<p>For example </p>
<div class="fragment"><pre class="fragment"> cout &lt;&lt; <a class="code" href="group__format.html#gad7914df7b54382c1ad7f5360676fe2e8">format</a>(<span class="stringliteral">&quot;Hello {1}, you are {2} years old&quot;</span>) % name % age &lt;&lt; endl;
</pre></div><p>Formatting is enclosed between curly brackets <code>{</code> <code>}</code> and defined by a comma separated list of flags in the format key[=value] value may also be text included between single quotes <code>'</code> that is used for special purposes where inclusion of non-ASCII text is allowed</p>
<p>Including of literal <code>{</code> and <code>}</code> is possible by specifying double brackets <code>{{</code> and <code>}}</code> accordingly.</p>
<p>For example:</p>
<div class="fragment"><pre class="fragment"> cout &lt;&lt; <a class="code" href="group__format.html#gad7914df7b54382c1ad7f5360676fe2e8">format</a>(<span class="stringliteral">&quot;The height of water at {1,time} is {2,num=fixed,precision=3}&quot;</span>) % <a class="code" href="group__manipulators.html#gae669b101cbeaed6f6d246ebdcaa8f39c">time</a> % height;
</pre></div><p>The special key -- a number without a value defines the position of an input parameter. List of keys:</p>
<ul>
<li><code></code>[0-9]+ -- digits, the index of a formatted parameter -- mandatory key.</li>
<li><code>num</code> or <code>number</code> -- format a number. Optional values are:<ul>
<li><code>hex</code> -- display hexadecimal number</li>
<li><code>oct</code> -- display in octal format</li>
<li><code>sci</code> or <code>scientific</code> -- display in scientific format</li>
<li><code>fix</code> or <code>fixed</code> -- display in fixed format</li>
</ul>
For example <code>number=sci</code> </li>
<li><code>cur</code> or <code>currency</code> -- format currency. Optional values are:</li>
</ul>
<ul>
<li><code>iso</code> -- display using ISO currency symbol.</li>
<li><code>nat</code> or <code>national</code> -- display using national currency symbol.</li>
</ul>
<ul>
<li><code>per</code> or <code>percent</code> -- format percent value.</li>
<li><code>date</code>, <code>time</code> , <code>datetime</code> or <code>dt</code> -- format date, time or date and time. Optional values are:<ul>
<li><code>s</code> or <code>short</code> -- display in short format</li>
<li><code>m</code> or <code>medium</code> -- display in medium format.</li>
<li><code>l</code> or <code>long</code> -- display in long format.</li>
<li><code>f</code> or <code>full</code> -- display in full format.</li>
</ul>
</li>
<li><code>ftime</code> with string (quoted) parameter -- display as with <code>strftime</code> see, <code>as::ftime</code> manipulator</li>
<li><code>spell</code> or <code>spellout</code> -- spell the number.</li>
<li><code>ord</code> or <code>ordinal</code> -- format ordinal number (1st, 2nd... etc)</li>
<li><code>left</code> or <code>&lt;</code> -- align to left.</li>
<li><code>right</code> or <code>&gt;</code> -- align to right.</li>
<li><code>width</code> or <code>w</code> -- set field width (requires parameter).</li>
<li><code>precision</code> or <code>p</code> -- set precision (requires parameter).</li>
<li><code>locale</code> -- with parameter -- switch locale for current operation. This command generates locale with formatting facets giving more fine grained control of formatting. For example: <div class="fragment"><pre class="fragment"> cout &lt;&lt; <a class="code" href="group__format.html#gad7914df7b54382c1ad7f5360676fe2e8">format</a>(<span class="stringliteral">&quot;Today {1,date} ({1,date,locale=he_IL.UTF-8@calendar=hebrew,date} Hebrew Date)&quot;</span>) % date;
</pre></div></li>
<li><code>timezone</code> or <code>tz</code> -- the name of the timezone to display the time in. For example:<br/>
<div class="fragment"><pre class="fragment"> cout &lt;&lt; <a class="code" href="group__format.html#gad7914df7b54382c1ad7f5360676fe2e8">format</a>(<span class="stringliteral">&quot;Time is: Local {1,time}, ({1,time,tz=EET} Eastern European Time)&quot;</span>) % date;
</pre></div></li>
<li><code>local</code> - display the time in local time</li>
<li><code>gmt</code> - display the time in UTC time scale <div class="fragment"><pre class="fragment"> cout &lt;&lt; <a class="code" href="group__format.html#gad7914df7b54382c1ad7f5360676fe2e8">format</a>(<span class="stringliteral">&quot;Local time is: {1,time,local}, universal time is {1,time,gmt}&quot;</span>) % time;
</pre></div></li>
</ul>
<p>Invalid formatting strings are slightly ignored. This would prevent from translator to crash the program in unexpected location. </p>
<hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="a75213e5cc9d113f6b25e72542a4841f5"></a><!-- doxytag: member="boost::locale::basic_format::message_type" ref="a75213e5cc9d113f6b25e72542a4841f5" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType &gt; </div>
<table class="memname">
<tr>
<td class="memname">typedef <a class="el" href="classboost_1_1locale_1_1basic__message.html">basic_message</a>&lt;<a class="el" href="classboost_1_1locale_1_1basic__format.html#a45c16f2e69842b8d223d240bbd6e210a">char_type</a>&gt; <a class="el" href="classboost_1_1locale_1_1basic__format.html">boost::locale::basic_format</a>&lt; CharType &gt;::<a class="el" href="classboost_1_1locale_1_1basic__message.html">message_type</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>The translation message type </p>
</div>
</div>
<a class="anchor" id="a0e1263d23f67aa38b4d857031fccf973"></a><!-- doxytag: member="boost::locale::basic_format::string_type" ref="a0e1263d23f67aa38b4d857031fccf973" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType &gt; </div>
<table class="memname">
<tr>
<td class="memname">typedef std::basic_string&lt;CharType&gt; <a class="el" href="classboost_1_1locale_1_1basic__format.html">boost::locale::basic_format</a>&lt; CharType &gt;::<a class="el" href="classboost_1_1locale_1_1basic__format.html#a0e1263d23f67aa38b4d857031fccf973">string_type</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>string type for this type of character </p>
</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a4c885ae60a5b867863b79acb75feff9e"></a><!-- doxytag: member="boost::locale::basic_format::basic_format" ref="a4c885ae60a5b867863b79acb75feff9e" args="(string_type format_string)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType &gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classboost_1_1locale_1_1basic__format.html">boost::locale::basic_format</a>&lt; CharType &gt;::<a class="el" href="classboost_1_1locale_1_1basic__format.html">basic_format</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1basic__format.html#a0e1263d23f67aa38b4d857031fccf973">string_type</a>&nbsp;</td>
<td class="paramname"> <em>format_string</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a format class for <em>format_string</em> </p>
</div>
</div>
<a class="anchor" id="a155e8e60061da7461bbcc958d600c190"></a><!-- doxytag: member="boost::locale::basic_format::basic_format" ref="a155e8e60061da7461bbcc958d600c190" args="(message_type const &amp;trans)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType &gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classboost_1_1locale_1_1basic__format.html">boost::locale::basic_format</a>&lt; CharType &gt;::<a class="el" href="classboost_1_1locale_1_1basic__format.html">basic_format</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1basic__message.html">message_type</a> const &amp;&nbsp;</td>
<td class="paramname"> <em>trans</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a format class using message <em>trans</em>. The message if translated first according to the rules of target locale and then interpreted as format string </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a63e45267da46ff25d09441ac52f21efc"></a><!-- doxytag: member="boost::locale::basic_format::operator%" ref="a63e45267da46ff25d09441ac52f21efc" args="(Formattible const &amp;object)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType &gt; </div>
<div class="memtemplate">
template&lt;typename Formattible &gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classboost_1_1locale_1_1basic__format.html">basic_format</a>&amp; <a class="el" href="classboost_1_1locale_1_1basic__format.html">boost::locale::basic_format</a>&lt; CharType &gt;::operator% </td>
<td>(</td>
<td class="paramtype">Formattible const &amp;&nbsp;</td>
<td class="paramname"> <em>object</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Add new parameter to format list. The object should be a type with defined expression out &lt;&lt; object where <code>out</code> is <code>std::basic_ostream</code>. </p>
</div>
</div>
<a class="anchor" id="a6bc65d7993e3ab6ad51809ef8fb65400"></a><!-- doxytag: member="boost::locale::basic_format::str" ref="a6bc65d7993e3ab6ad51809ef8fb65400" args="(std::locale const &amp;loc=std::locale()) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType &gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classboost_1_1locale_1_1basic__format.html#a0e1263d23f67aa38b4d857031fccf973">string_type</a> <a class="el" href="classboost_1_1locale_1_1basic__format.html">boost::locale::basic_format</a>&lt; CharType &gt;::str </td>
<td>(</td>
<td class="paramtype">std::locale const &amp;&nbsp;</td>
<td class="paramname"> <em>loc</em> = <code>std::locale()</code></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Format a string using a locale <em>loc</em> </p>
</div>
</div>
<a class="anchor" id="a457c9228d13e80da3c807a51aa5ef6cd"></a><!-- doxytag: member="boost::locale::basic_format::write" ref="a457c9228d13e80da3c807a51aa5ef6cd" args="(stream_type &amp;out) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType &gt; </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classboost_1_1locale_1_1basic__format.html">boost::locale::basic_format</a>&lt; CharType &gt;::write </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1basic__format.html#a6aba7e54f0065f2697d13ff8a859309a">stream_type</a> &amp;&nbsp;</td>
<td class="paramname"> <em>out</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>write a formatted string to output stream <em>out</em> using out's locale </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/<a class="el" href="format_8hpp_source.html">format.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,101 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::basic_message&lt; CharType &gt; Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="group__message.html#ga33bdf7fbb164a96a8685b5747afc2b45">basic_message</a>()</td><td><a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#gae32d7f89d5f268e8d6bae662d8008bae">basic_message</a>(char_type const *id)</td><td><a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a></td><td><code> [inline, explicit]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#ga40bf56415a235f13ee666d51f645f280">basic_message</a>(char_type const *single, char_type const *plural, int n)</td><td><a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a></td><td><code> [inline, explicit]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#ga4d78f8f45467984d7244e2ddbb9e0f6e">basic_message</a>(char_type const *context, char_type const *id)</td><td><a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a></td><td><code> [inline, explicit]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#gabf9afe77f0254397389289c386bf8a73">basic_message</a>(char_type const *context, char_type const *single, char_type const *plural, int n)</td><td><a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a></td><td><code> [inline, explicit]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#gabbb4365d621a33442ae34ac7c17a9d74">basic_message</a>(string_type const &amp;id)</td><td><a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a></td><td><code> [inline, explicit]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#ga380f3a258b3b28929bbf01f4e622e71a">basic_message</a>(string_type const &amp;single, string_type const &amp;plural, int number)</td><td><a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a></td><td><code> [inline, explicit]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#ga8c2fab962e10a46ea85f0188d08e499d">basic_message</a>(string_type const &amp;context, string_type const &amp;id)</td><td><a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a></td><td><code> [inline, explicit]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#gaf8ba10b7b1d45e6c78b84d77e8175d5d">basic_message</a>(string_type const &amp;context, string_type const &amp;single, string_type const &amp;plural, int number)</td><td><a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a></td><td><code> [inline, explicit]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#gae6ed9dded4ab78ff28e994b48c766c84">basic_message</a>(basic_message const &amp;other)</td><td><a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1basic__message.html#aa5d8dcf9d7aa01abbe73c841299345db">char_type</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#gaa63527cb368d0bcd4cb0809138c927df">facet_type</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#ga8da81038939b85ca248cba50f1deacf1">operator string_type</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#gae0e786e45ef32cf73efd8495cae45aed">operator=</a>(basic_message const &amp;other)</td><td><a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#ga11c5f400e03e0b16b9a60bd3fae3f168">str</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#ga26c6489f8269096f835abfb268498fdd">str</a>(std::locale const &amp;locale) const </td><td><a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#gaa907a1d3f43fe59cea938e1606f004ee">str</a>(std::locale const &amp;locale, std::string const &amp;domain_id) const </td><td><a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#ga2d2ca0fe119e4ce4766fd3d42b549314">str</a>(std::string const &amp;domain_id) const </td><td><a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#gaa51c0f65363d8d1cee83bb07fe45ced5">str</a>(std::locale const &amp;loc, int id) const </td><td><a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#ga529423e08fc9a8ca9ceef5c56181c6d3">string_type</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#gac204b563c7c9bd86e5555f129350f0e3">swap</a>(basic_message &amp;other)</td><td><a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#ga4dd81f4d40c4e8871bb1bf02bbc8e968">write</a>(std::basic_ostream&lt; char_type &gt; &amp;out) const </td><td><a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a></td><td><code> [inline]</code></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,142 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::basic_message&lt; CharType &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1basic__message.html">boost::locale::basic_message&lt; CharType &gt;</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<h1>boost::locale::basic_message&lt; CharType &gt; Class Template Reference<br/>
<small>
[<a class="el" href="group__message.html">Message Formatting (translation)</a>]</small>
</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::basic_message" -->
<p>This class represents a message that can be converted to a specific locale message.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="message_8hpp_source.html">boost/locale/message.hpp</a>&gt;</code></p>
<p><a href="classboost_1_1locale_1_1basic__message-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa5d8dcf9d7aa01abbe73c841299345db"></a><!-- doxytag: member="boost::locale::basic_message::char_type" ref="aa5d8dcf9d7aa01abbe73c841299345db" args="" -->
typedef CharType&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1basic__message.html#aa5d8dcf9d7aa01abbe73c841299345db">char_type</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The character this message object is used with. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga529423e08fc9a8ca9ceef5c56181c6d3"></a><!-- doxytag: member="boost::locale::basic_message::string_type" ref="ga529423e08fc9a8ca9ceef5c56181c6d3" args="" -->
typedef std::basic_string<br class="typebreak"/>
&lt; <a class="el" href="classboost_1_1locale_1_1basic__message.html#aa5d8dcf9d7aa01abbe73c841299345db">char_type</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#ga529423e08fc9a8ca9ceef5c56181c6d3">string_type</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The string type this object can be used with. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaa63527cb368d0bcd4cb0809138c927df"></a><!-- doxytag: member="boost::locale::basic_message::facet_type" ref="gaa63527cb368d0bcd4cb0809138c927df" args="" -->
typedef <a class="el" href="classboost_1_1locale_1_1message__format.html">message_format</a>&lt; <a class="el" href="classboost_1_1locale_1_1basic__message.html#aa5d8dcf9d7aa01abbe73c841299345db">char_type</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#gaa63527cb368d0bcd4cb0809138c927df">facet_type</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The type of the facet the messages are fetched with. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#ga33bdf7fbb164a96a8685b5747afc2b45">basic_message</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#gae32d7f89d5f268e8d6bae662d8008bae">basic_message</a> (<a class="el" href="classboost_1_1locale_1_1basic__message.html#aa5d8dcf9d7aa01abbe73c841299345db">char_type</a> const *id)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#ga40bf56415a235f13ee666d51f645f280">basic_message</a> (<a class="el" href="classboost_1_1locale_1_1basic__message.html#aa5d8dcf9d7aa01abbe73c841299345db">char_type</a> const *single, <a class="el" href="classboost_1_1locale_1_1basic__message.html#aa5d8dcf9d7aa01abbe73c841299345db">char_type</a> const *plural, int n)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#ga4d78f8f45467984d7244e2ddbb9e0f6e">basic_message</a> (<a class="el" href="classboost_1_1locale_1_1basic__message.html#aa5d8dcf9d7aa01abbe73c841299345db">char_type</a> const *context, <a class="el" href="classboost_1_1locale_1_1basic__message.html#aa5d8dcf9d7aa01abbe73c841299345db">char_type</a> const *id)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#gabf9afe77f0254397389289c386bf8a73">basic_message</a> (<a class="el" href="classboost_1_1locale_1_1basic__message.html#aa5d8dcf9d7aa01abbe73c841299345db">char_type</a> const *context, <a class="el" href="classboost_1_1locale_1_1basic__message.html#aa5d8dcf9d7aa01abbe73c841299345db">char_type</a> const *single, <a class="el" href="classboost_1_1locale_1_1basic__message.html#aa5d8dcf9d7aa01abbe73c841299345db">char_type</a> const *plural, int n)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#gabbb4365d621a33442ae34ac7c17a9d74">basic_message</a> (<a class="el" href="group__message.html#ga529423e08fc9a8ca9ceef5c56181c6d3">string_type</a> const &amp;id)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#ga380f3a258b3b28929bbf01f4e622e71a">basic_message</a> (<a class="el" href="group__message.html#ga529423e08fc9a8ca9ceef5c56181c6d3">string_type</a> const &amp;single, <a class="el" href="group__message.html#ga529423e08fc9a8ca9ceef5c56181c6d3">string_type</a> const &amp;plural, int number)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#ga8c2fab962e10a46ea85f0188d08e499d">basic_message</a> (<a class="el" href="group__message.html#ga529423e08fc9a8ca9ceef5c56181c6d3">string_type</a> const &amp;context, <a class="el" href="group__message.html#ga529423e08fc9a8ca9ceef5c56181c6d3">string_type</a> const &amp;id)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#gaf8ba10b7b1d45e6c78b84d77e8175d5d">basic_message</a> (<a class="el" href="group__message.html#ga529423e08fc9a8ca9ceef5c56181c6d3">string_type</a> const &amp;context, <a class="el" href="group__message.html#ga529423e08fc9a8ca9ceef5c56181c6d3">string_type</a> const &amp;single, <a class="el" href="group__message.html#ga529423e08fc9a8ca9ceef5c56181c6d3">string_type</a> const &amp;plural, int number)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#gae6ed9dded4ab78ff28e994b48c766c84">basic_message</a> (<a class="el" href="classboost_1_1locale_1_1basic__message.html">basic_message</a> const &amp;other)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classboost_1_1locale_1_1basic__message.html">basic_message</a> const &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#gae0e786e45ef32cf73efd8495cae45aed">operator=</a> (<a class="el" href="classboost_1_1locale_1_1basic__message.html">basic_message</a> const &amp;other)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#gac204b563c7c9bd86e5555f129350f0e3">swap</a> (<a class="el" href="classboost_1_1locale_1_1basic__message.html">basic_message</a> &amp;other)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#ga8da81038939b85ca248cba50f1deacf1">operator string_type</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__message.html#ga529423e08fc9a8ca9ceef5c56181c6d3">string_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#ga11c5f400e03e0b16b9a60bd3fae3f168">str</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__message.html#ga529423e08fc9a8ca9ceef5c56181c6d3">string_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#ga26c6489f8269096f835abfb268498fdd">str</a> (std::locale const &amp;locale) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__message.html#ga529423e08fc9a8ca9ceef5c56181c6d3">string_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#gaa907a1d3f43fe59cea938e1606f004ee">str</a> (std::locale const &amp;locale, std::string const &amp;domain_id) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__message.html#ga529423e08fc9a8ca9ceef5c56181c6d3">string_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#ga2d2ca0fe119e4ce4766fd3d42b549314">str</a> (std::string const &amp;domain_id) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__message.html#ga529423e08fc9a8ca9ceef5c56181c6d3">string_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#gaa51c0f65363d8d1cee83bb07fe45ced5">str</a> (std::locale const &amp;loc, int id) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#ga4dd81f4d40c4e8871bb1bf02bbc8e968">write</a> (std::basic_ostream&lt; <a class="el" href="classboost_1_1locale_1_1basic__message.html#aa5d8dcf9d7aa01abbe73c841299345db">char_type</a> &gt; &amp;out) const </td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;typename CharType&gt;<br/>
class boost::locale::basic_message&lt; CharType &gt;</h3>
<p>This class represents a message that can be converted to a specific locale message. </p>
<p>It holds the original ASCII string that is queried in the dictionary when converting to the output string. The created string may be UTF-8, UTF-16, UTF-32 or other 8-bit encoded string according to the target character type and locale encoding. </p>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/<a class="el" href="message_8hpp_source.html">message.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,82 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::boundary::boundary_indexing&lt; Char &gt; Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__indexing.html">boost::locale::boundary::boundary_indexing&lt; Char &gt;</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__indexing.html#a251d097b8498d6dade6110b0829c8cf5">boundary_indexing</a>(size_t refs=0)</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__indexing.html">boost::locale::boundary::boundary_indexing&lt; Char &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__indexing.html#a6ec435e58e34f70046f62ac0314c1a58">id</a></td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__indexing.html">boost::locale::boundary::boundary_indexing&lt; Char &gt;</a></td><td><code> [static]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__indexing.html#aee429a6d57b48b6f7dda3d03a67d6501">map</a>(boundary_type t, Char const *begin, Char const *end) const =0</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__indexing.html">boost::locale::boundary::boundary_indexing&lt; Char &gt;</a></td><td><code> [pure virtual]</code></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,194 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::boundary::boundary_indexing&lt; Char &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="namespaceboost_1_1locale_1_1boundary.html">boundary</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__indexing.html">boost::locale::boundary::boundary_indexing&lt; Char &gt;</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> </div>
<div class="headertitle">
<h1>boost::locale::boundary::boundary_indexing&lt; Char &gt; Class Template Reference<br/>
<small>
[<a class="el" href="group__boundary.html">Boundary Analysis</a>]</small>
</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::boundary::boundary_indexing" -->
<p>This facet generates an index for boundary analysis for a given text.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="facets_8hpp_source.html">boost/locale/boundary/facets.hpp</a>&gt;</code></p>
<p><a href="classboost_1_1locale_1_1boundary_1_1boundary__indexing-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__indexing.html#a251d097b8498d6dade6110b0829c8cf5">boundary_indexing</a> (size_t refs=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="group__boundary.html#ga7b4dd7af8fad53fabd77e629da24d466">index_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__indexing.html#aee429a6d57b48b6f7dda3d03a67d6501">map</a> (<a class="el" href="group__boundary.html#ga15de9963ce9bb6037c8525901dfbf641">boundary_type</a> t, Char const *begin, Char const *end) const =0</td></tr>
<tr><td colspan="2"><h2><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static std::locale::id&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__indexing.html#a6ec435e58e34f70046f62ac0314c1a58">id</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;typename Char&gt;<br/>
class boost::locale::boundary::boundary_indexing&lt; Char &gt;</h3>
<p>This facet generates an index for boundary analysis for a given text. </p>
<p>It is specialized for 4 types of characters <code>char_t</code>, <code>wchar_t</code>, <code>char16_t</code> and <code>char32_t</code> </p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a251d097b8498d6dade6110b0829c8cf5"></a><!-- doxytag: member="boost::locale::boundary::boundary_indexing::boundary_indexing" ref="a251d097b8498d6dade6110b0829c8cf5" args="(size_t refs=0)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Char &gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__indexing.html">boost::locale::boundary::boundary_indexing</a>&lt; Char &gt;::<a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__indexing.html">boundary_indexing</a> </td>
<td>(</td>
<td class="paramtype">size_t&nbsp;</td>
<td class="paramname"> <em>refs</em> = <code>0</code></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Default constructor typical for facets </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aee429a6d57b48b6f7dda3d03a67d6501"></a><!-- doxytag: member="boost::locale::boundary::boundary_indexing::map" ref="aee429a6d57b48b6f7dda3d03a67d6501" args="(boundary_type t, Char const *begin, Char const *end) const =0" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Char &gt; </div>
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="group__boundary.html#ga7b4dd7af8fad53fabd77e629da24d466">index_type</a> <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__indexing.html">boost::locale::boundary::boundary_indexing</a>&lt; Char &gt;::map </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__boundary.html#ga15de9963ce9bb6037c8525901dfbf641">boundary_type</a>&nbsp;</td>
<td class="paramname"> <em>t</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">Char const *&nbsp;</td>
<td class="paramname"> <em>begin</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">Char const *&nbsp;</td>
<td class="paramname"> <em>end</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create index for boundary type <em>t</em> for text in range [begin,end)</p>
<p>The returned value is an index of type <a class="el" href="group__boundary.html#ga7b4dd7af8fad53fabd77e629da24d466">index_type</a>. Note that this index is never empty, even if the range [begin,end) is empty it consists of at least one boundary point with the offset 0. </p>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a6ec435e58e34f70046f62ac0314c1a58"></a><!-- doxytag: member="boost::locale::boundary::boundary_indexing::id" ref="a6ec435e58e34f70046f62ac0314c1a58" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Char &gt; </div>
<table class="memname">
<tr>
<td class="memname">std::locale::id <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__indexing.html">boost::locale::boundary::boundary_indexing</a>&lt; Char &gt;::<a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__indexing.html#a6ec435e58e34f70046f62ac0314c1a58">id</a><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Identification of this facet </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/boundary/<a class="el" href="facets_8hpp_source.html">facets.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,91 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::boundary::boundary_point&lt; IteratorType &gt; Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point&lt; IteratorType &gt;</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#aabbbee60c2c97ffd95210206a86c9298">boundary_point</a>()</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a653a1c0d7480006ff647a656c74521df">boundary_point</a>(iterator_type p, rule_type r)</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a5ea18137618a1a84ff0b75c3b166c495">iterator</a>(iterator_type i)</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af279d5382e1b28c2ce82035c1929ea66">iterator</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af3c3a74a9a79690ff44f38d267b3b694">iterator_type</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point&lt; IteratorType &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#aa2dc88b4d02151aea939a01b7fc88730">operator iterator_type</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a4347b22dd7edb8af49d1316a6f86d0c2">operator!=</a>(boundary_point const &amp;other) const </td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a4cd03f39d75bb054be9a0ae23189fa7a">operator!=</a>(iterator_type const &amp;other) const </td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a058ffbcbd43fc41a40a4a1cf5be987f2">operator==</a>(boundary_point const &amp;other) const </td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a87a96a1745184ff7495db87943aca424">operator==</a>(iterator_type const &amp;other) const </td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a757b28e11c66f9871d3f51fe93a51bdb">rule</a>(rule_type r)</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a75e2f04f0f7c1065470f722d1f2e004b">rule</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,394 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::boundary::boundary_point&lt; IteratorType &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="namespaceboost_1_1locale_1_1boundary.html">boundary</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point&lt; IteratorType &gt;</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<h1>boost::locale::boundary::boundary_point&lt; IteratorType &gt; Class Template Reference<br/>
<small>
[<a class="el" href="group__boundary.html">Boundary Analysis</a>]</small>
</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::boundary::boundary_point" -->
<p>This class represents a boundary point in the text.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="boundary__point_8hpp_source.html">boost/locale/boundary/boundary_point.hpp</a>&gt;</code></p>
<p><a href="classboost_1_1locale_1_1boundary_1_1boundary__point-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef IteratorType&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af3c3a74a9a79690ff44f38d267b3b694">iterator_type</a></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#aabbbee60c2c97ffd95210206a86c9298">boundary_point</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a653a1c0d7480006ff647a656c74521df">boundary_point</a> (<a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af3c3a74a9a79690ff44f38d267b3b694">iterator_type</a> p, <a class="el" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095">rule_type</a> r)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a5ea18137618a1a84ff0b75c3b166c495">iterator</a> (<a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af3c3a74a9a79690ff44f38d267b3b694">iterator_type</a> i)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a757b28e11c66f9871d3f51fe93a51bdb">rule</a> (<a class="el" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095">rule_type</a> r)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af3c3a74a9a79690ff44f38d267b3b694">iterator_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af279d5382e1b28c2ce82035c1929ea66">iterator</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095">rule_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a75e2f04f0f7c1065470f722d1f2e004b">rule</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a058ffbcbd43fc41a40a4a1cf5be987f2">operator==</a> (<a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boundary_point</a> const &amp;other) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a4347b22dd7edb8af49d1316a6f86d0c2">operator!=</a> (<a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boundary_point</a> const &amp;other) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a87a96a1745184ff7495db87943aca424">operator==</a> (<a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af3c3a74a9a79690ff44f38d267b3b694">iterator_type</a> const &amp;other) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a4cd03f39d75bb054be9a0ae23189fa7a">operator!=</a> (<a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af3c3a74a9a79690ff44f38d267b3b694">iterator_type</a> const &amp;other) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#aa2dc88b4d02151aea939a01b7fc88730">operator iterator_type</a> () const </td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;typename IteratorType&gt;<br/>
class boost::locale::boundary::boundary_point&lt; IteratorType &gt;</h3>
<p>This class represents a boundary point in the text. </p>
<p>It represents a pair - an iterator and a rule that defines this point.</p>
<p>This type of object is dereference by the iterators of <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html" title="This class holds an index of boundary points and allows iterating over them.">boundary_point_index</a>. Using a <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a757b28e11c66f9871d3f51fe93a51bdb">rule()</a> member function you can get the reason why this specific boundary point was selected.</p>
<p>For example, When you use a sentence boundary analysis, the (<a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a757b28e11c66f9871d3f51fe93a51bdb">rule()</a> &amp; <a class="el" href="group__boundary.html#ga3befefe67f79691c117bf5588741355b">sentence_term</a>) != 0 means that this boundary point was selected because a sentence terminator (like .?!) was spotted and the (<a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#a757b28e11c66f9871d3f51fe93a51bdb">rule()</a> &amp; <a class="el" href="group__boundary.html#gaf67883341dd3d8f786e7281d40790000">sentence_sep</a>)!=0 means that a separator like line feed or carriage return was observed.</p>
<dl class="note"><dt><b>Note:</b></dt><dd></dd></dl>
<ul>
<li>The beginning of analyzed range is always considered a boundary point and its rule is always 0.</li>
<li>when using a word boundary analysis the returned rule relates to a chunk of text preceding this point.</li>
</ul>
<dl class="see"><dt><b>See also:</b></dt><dd></dd></dl>
<ul>
<li><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boundary_point_index</a></li>
<li><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">segment</a></li>
<li><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">segment_index</a> </li>
</ul>
<hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="af3c3a74a9a79690ff44f38d267b3b694"></a><!-- doxytag: member="boost::locale::boundary::boundary_point::iterator_type" ref="af3c3a74a9a79690ff44f38d267b3b694" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname">typedef IteratorType <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point</a>&lt; IteratorType &gt;::<a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af3c3a74a9a79690ff44f38d267b3b694">iterator_type</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>The type of the base iterator that iterates the original text </p>
</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aabbbee60c2c97ffd95210206a86c9298"></a><!-- doxytag: member="boost::locale::boundary::boundary_point::boundary_point" ref="aabbbee60c2c97ffd95210206a86c9298" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point</a>&lt; IteratorType &gt;::<a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boundary_point</a> </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Empty default constructor </p>
</div>
</div>
<a class="anchor" id="a653a1c0d7480006ff647a656c74521df"></a><!-- doxytag: member="boost::locale::boundary::boundary_point::boundary_point" ref="a653a1c0d7480006ff647a656c74521df" args="(iterator_type p, rule_type r)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point</a>&lt; IteratorType &gt;::<a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boundary_point</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af3c3a74a9a79690ff44f38d267b3b694">iterator_type</a>&nbsp;</td>
<td class="paramname"> <em>p</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095">rule_type</a>&nbsp;</td>
<td class="paramname"> <em>r</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a new <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html" title="This class represents a boundary point in the text.">boundary_point</a> using iterator <code>and</code> a rule <em>r</em> </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a5ea18137618a1a84ff0b75c3b166c495"></a><!-- doxytag: member="boost::locale::boundary::boundary_point::iterator" ref="a5ea18137618a1a84ff0b75c3b166c495" args="(iterator_type i)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point</a>&lt; IteratorType &gt;::iterator </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af3c3a74a9a79690ff44f38d267b3b694">iterator_type</a>&nbsp;</td>
<td class="paramname"> <em>i</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set an new iterator value <em>i</em> </p>
</div>
</div>
<a class="anchor" id="af279d5382e1b28c2ce82035c1929ea66"></a><!-- doxytag: member="boost::locale::boundary::boundary_point::iterator" ref="af279d5382e1b28c2ce82035c1929ea66" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af3c3a74a9a79690ff44f38d267b3b694">iterator_type</a> <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point</a>&lt; IteratorType &gt;::iterator </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Fetch an iterator </p>
</div>
</div>
<a class="anchor" id="aa2dc88b4d02151aea939a01b7fc88730"></a><!-- doxytag: member="boost::locale::boundary::boundary_point::operator iterator_type" ref="aa2dc88b4d02151aea939a01b7fc88730" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point</a>&lt; IteratorType &gt;::operator <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af3c3a74a9a79690ff44f38d267b3b694">iterator_type</a> </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Automatic cast to the iterator it represents </p>
</div>
</div>
<a class="anchor" id="a4cd03f39d75bb054be9a0ae23189fa7a"></a><!-- doxytag: member="boost::locale::boundary::boundary_point::operator!=" ref="a4cd03f39d75bb054be9a0ae23189fa7a" args="(iterator_type const &amp;other) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point</a>&lt; IteratorType &gt;::operator!= </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af3c3a74a9a79690ff44f38d267b3b694">iterator_type</a> const &amp;&nbsp;</td>
<td class="paramname"> <em>other</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Check if the boundary point points to different location from an iterator <em>other</em> </p>
</div>
</div>
<a class="anchor" id="a4347b22dd7edb8af49d1316a6f86d0c2"></a><!-- doxytag: member="boost::locale::boundary::boundary_point::operator!=" ref="a4347b22dd7edb8af49d1316a6f86d0c2" args="(boundary_point const &amp;other) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point</a>&lt; IteratorType &gt;::operator!= </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boundary_point</a>&lt; IteratorType &gt; const &amp;&nbsp;</td>
<td class="paramname"> <em>other</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Check if two boundary points are different </p>
</div>
</div>
<a class="anchor" id="a87a96a1745184ff7495db87943aca424"></a><!-- doxytag: member="boost::locale::boundary::boundary_point::operator==" ref="a87a96a1745184ff7495db87943aca424" args="(iterator_type const &amp;other) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point</a>&lt; IteratorType &gt;::operator== </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html#af3c3a74a9a79690ff44f38d267b3b694">iterator_type</a> const &amp;&nbsp;</td>
<td class="paramname"> <em>other</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Check if the boundary point points to same location as an iterator <em>other</em> </p>
</div>
</div>
<a class="anchor" id="a058ffbcbd43fc41a40a4a1cf5be987f2"></a><!-- doxytag: member="boost::locale::boundary::boundary_point::operator==" ref="a058ffbcbd43fc41a40a4a1cf5be987f2" args="(boundary_point const &amp;other) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point</a>&lt; IteratorType &gt;::operator== </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boundary_point</a>&lt; IteratorType &gt; const &amp;&nbsp;</td>
<td class="paramname"> <em>other</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Check if two boundary points are the same </p>
</div>
</div>
<a class="anchor" id="a75e2f04f0f7c1065470f722d1f2e004b"></a><!-- doxytag: member="boost::locale::boundary::boundary_point::rule" ref="a75e2f04f0f7c1065470f722d1f2e004b" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095">rule_type</a> <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point</a>&lt; IteratorType &gt;::rule </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Fetch a rule </p>
</div>
</div>
<a class="anchor" id="a757b28e11c66f9871d3f51fe93a51bdb"></a><!-- doxytag: member="boost::locale::boundary::boundary_point::rule" ref="a757b28e11c66f9871d3f51fe93a51bdb" args="(rule_type r)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boost::locale::boundary::boundary_point</a>&lt; IteratorType &gt;::rule </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095">rule_type</a>&nbsp;</td>
<td class="paramname"> <em>r</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set an new rule value <em>r</em> </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/boundary/<a class="el" href="boundary__point_8hpp_source.html">boundary_point.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,95 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt; Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt;</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html#ab3189e2eaf4386cdf37598e0ba16cfd5">base_iterator</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#ga56f42a32f0378b6e157671f9e17bd66f">begin</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#gaba6993dd50ad8cf2db8921e5cf668a69">boundary_point_index</a>()</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#gacc189288792012cfdb21c07fddbadc4f">boundary_point_index</a>(boundary_type type, base_iterator begin, base_iterator end, rule_type mask, std::locale const &amp;loc=std::locale())</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#ga9b926379fa2fcc7f87dc067953049d69">boundary_point_index</a>(boundary_type type, base_iterator begin, base_iterator end, std::locale const &amp;loc=std::locale())</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#gac48665ff53789c6ee44a423963b6550d">boundary_point_index</a>(segment_index&lt; base_iterator &gt; const &amp;other)</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#gac9ce9158eb2fb030c1baf93376203d16">const_iterator</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#gaf3d66d578e32a63b3f0ffbb59740667b">end</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#ga0bb71a287afca990e85b17246568492d">find</a>(base_iterator p) const </td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#ga1af6e72b3c384edcebc0cf319fe97efe">iterator</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#ga6b4b5d5cf80b55302a88e7b36c812418">map</a>(boundary_type type, base_iterator begin, base_iterator end, std::locale const &amp;loc=std::locale())</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#ga83d57b993b00686b2cac711667c6a931">operator=</a>(segment_index&lt; base_iterator &gt; const &amp;other)</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#ga1d214029f1a780b7bf6e3f23a3004c03">rule</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#ga56e63913f51109e05a24a7136472a975">rule</a>(rule_type v)</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt;</a></td><td><code> [inline]</code></td></tr>
<tr bgcolor="#f0f0f0"><td><b>segment_index&lt; base_iterator &gt;</b> (defined in <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt;</a>)</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt;</a></td><td><code> [friend]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#ga7f7328a860cf485a4bd8f17658c291e1">value_type</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt;</a></td><td></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,181 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="namespaceboost_1_1locale_1_1boundary.html">boundary</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt;</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> </div>
<div class="headertitle">
<h1>boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt; Class Template Reference<br/>
<small>
[<a class="el" href="group__boundary.html">Boundary Analysis</a>]</small>
</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::boundary::boundary_point_index" -->
<p>This class holds an index of <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boundary points</a> and allows iterating over them.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="index_8hpp_source.html">boost/locale/boundary/index.hpp</a>&gt;</code></p>
<p><a href="classboost_1_1locale_1_1boundary_1_1boundary__point__index-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef BaseIterator&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html#ab3189e2eaf4386cdf37598e0ba16cfd5">base_iterator</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef unspecified_iterator_type&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga1af6e72b3c384edcebc0cf319fe97efe">iterator</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef unspecified_iterator_type&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#gac9ce9158eb2fb030c1baf93376203d16">const_iterator</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boundary_point</a><br class="typebreak"/>
&lt; <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html#ab3189e2eaf4386cdf37598e0ba16cfd5">base_iterator</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga7f7328a860cf485a4bd8f17658c291e1">value_type</a></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#gaba6993dd50ad8cf2db8921e5cf668a69">boundary_point_index</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#gacc189288792012cfdb21c07fddbadc4f">boundary_point_index</a> (<a class="el" href="group__boundary.html#ga15de9963ce9bb6037c8525901dfbf641">boundary_type</a> type, <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html#ab3189e2eaf4386cdf37598e0ba16cfd5">base_iterator</a> begin, <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html#ab3189e2eaf4386cdf37598e0ba16cfd5">base_iterator</a> end, <a class="el" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095">rule_type</a> mask, std::locale const &amp;loc=std::locale())</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga9b926379fa2fcc7f87dc067953049d69">boundary_point_index</a> (<a class="el" href="group__boundary.html#ga15de9963ce9bb6037c8525901dfbf641">boundary_type</a> type, <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html#ab3189e2eaf4386cdf37598e0ba16cfd5">base_iterator</a> begin, <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html#ab3189e2eaf4386cdf37598e0ba16cfd5">base_iterator</a> end, std::locale const &amp;loc=std::locale())</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#gac48665ff53789c6ee44a423963b6550d">boundary_point_index</a> (<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">segment_index</a>&lt; <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html#ab3189e2eaf4386cdf37598e0ba16cfd5">base_iterator</a> &gt; const &amp;other)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boundary_point_index</a> const &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga83d57b993b00686b2cac711667c6a931">operator=</a> (<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">segment_index</a>&lt; <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html#ab3189e2eaf4386cdf37598e0ba16cfd5">base_iterator</a> &gt; const &amp;other)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga6b4b5d5cf80b55302a88e7b36c812418">map</a> (<a class="el" href="group__boundary.html#ga15de9963ce9bb6037c8525901dfbf641">boundary_type</a> type, <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html#ab3189e2eaf4386cdf37598e0ba16cfd5">base_iterator</a> begin, <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html#ab3189e2eaf4386cdf37598e0ba16cfd5">base_iterator</a> end, std::locale const &amp;loc=std::locale())</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__boundary.html#ga1af6e72b3c384edcebc0cf319fe97efe">iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga56f42a32f0378b6e157671f9e17bd66f">begin</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__boundary.html#ga1af6e72b3c384edcebc0cf319fe97efe">iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#gaf3d66d578e32a63b3f0ffbb59740667b">end</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__boundary.html#ga1af6e72b3c384edcebc0cf319fe97efe">iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga0bb71a287afca990e85b17246568492d">find</a> (<a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html#ab3189e2eaf4386cdf37598e0ba16cfd5">base_iterator</a> p) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095">rule_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga1d214029f1a780b7bf6e3f23a3004c03">rule</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga56e63913f51109e05a24a7136472a975">rule</a> (<a class="el" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095">rule_type</a> v)</td></tr>
<tr><td colspan="2"><h2><a name="friends"></a>
Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaa8ba2e18ec3780af8f001ba85e40b9e2"></a><!-- doxytag: member="boost::locale::boundary::boundary_point_index::segment_index&lt; base_iterator &gt;" ref="gaa8ba2e18ec3780af8f001ba85e40b9e2" args="" -->
class&nbsp;</td><td class="memItemRight" valign="bottom"><b>segment_index&lt; base_iterator &gt;</b></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;typename BaseIterator&gt;<br/>
class boost::locale::boundary::boundary_point_index&lt; BaseIterator &gt;</h3>
<p>This class holds an index of <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boundary points</a> and allows iterating over them. </p>
<p>This class is provides <a class="el" href="group__boundary.html#ga56f42a32f0378b6e157671f9e17bd66f">begin()</a> and <a class="el" href="group__boundary.html#gaf3d66d578e32a63b3f0ffbb59740667b">end()</a> member functions that return bidirectional iterators to the <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boundary_point</a> objects.</p>
<p>It provides an option that affects selecting boundary points according to different rules: using <a class="el" href="group__boundary.html#ga56e63913f51109e05a24a7136472a975">rule(rule_type mask)</a> member function. It allows to set a mask that select only specific types of boundary points like <a class="el" href="group__boundary.html#ga3befefe67f79691c117bf5588741355b">sentence_term</a>.</p>
<p>For example for a sentence boundary analysis of a text "Hello! How\nare you?" when the default rule is used the boundary points would be:</p>
<ul>
<li>"|Hello! How\nare you?"</li>
<li>"Hello! |How\nare you?"</li>
<li>"Hello! How\n|are you?"</li>
<li>"Hello! How\nare you?|"</li>
</ul>
<p>However if <a class="el" href="group__boundary.html#ga1d214029f1a780b7bf6e3f23a3004c03">rule()</a> is set to <a class="el" href="group__boundary.html#ga3befefe67f79691c117bf5588741355b">sentence_term</a> then the selected boundary points would be:</p>
<ul>
<li>"|Hello! How\nare you?"</li>
<li>"Hello! |How\nare you?"</li>
<li>"Hello! How\nare you?|"</li>
</ul>
<p>Such that a boundary point defined by a line feed character would be ignored.</p>
<p>This class allows to find a <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html" title="This class represents a boundary point in the text.">boundary_point</a> according to the given iterator in range using <a class="el" href="group__boundary.html#ga0bb71a287afca990e85b17246568492d">find()</a> member function.</p>
<dl class="note"><dt><b>Note:</b></dt><dd><ul>
<li>Even an empty text range [x,x) considered to have a one boundary point x.</li>
<li><em>a</em> and <em>b</em> points of the range [a,b) are always considered boundary points regardless the rules used.</li>
<li>Changing any of the option <a class="el" href="group__boundary.html#ga1d214029f1a780b7bf6e3f23a3004c03">rule()</a> or course re-indexing the text invalidates existing iterators and they can't be used any more.</li>
<li><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html" title="This class holds an index of boundary points and allows iterating over them.">boundary_point_index</a> can be created from <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html" title="This class holds an index of segments in the text range and allows to iterate over them...">segment_index</a> or other <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html" title="This class holds an index of boundary points and allows iterating over them.">boundary_point_index</a> that was created with same <a class="el" href="group__boundary.html#ga15de9963ce9bb6037c8525901dfbf641">boundary_type</a>. This is very fast operation as they shared same index and it does not require its regeneration.</li>
</ul>
</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd></dd></dl>
<ul>
<li><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">segment_index</a></li>
<li><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boundary_point</a></li>
<li><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">segment</a> </li>
</ul>
<hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="ab3189e2eaf4386cdf37598e0ba16cfd5"></a><!-- doxytag: member="boost::locale::boundary::boundary_point_index::base_iterator" ref="ab3189e2eaf4386cdf37598e0ba16cfd5" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename BaseIterator &gt; </div>
<table class="memname">
<tr>
<td class="memname">typedef BaseIterator <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boost::locale::boundary::boundary_point_index</a>&lt; BaseIterator &gt;::<a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html#ab3189e2eaf4386cdf37598e0ba16cfd5">base_iterator</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>The type of the iterator used to iterate over the original text </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/boundary/<a class="el" href="index_8hpp_source.html">index.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,99 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::boundary::segment&lt; IteratorType &gt; Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment&lt; IteratorType &gt;</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a5428ff79bc05b78989f56519b58a6d9c">begin</a>(iterator const &amp;v)</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a445da30d993880a1bd6d998e78755a44">begin</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#ad3785355ea817c087bf428315a332169">char_type</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment&lt; IteratorType &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#aa24dcd83aefe4925bfc11b0285e2517a">const_iterator</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment&lt; IteratorType &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a79ee4d48248ffbc23f84a33355ca3b62">difference_type</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment&lt; IteratorType &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a84022afa120893d0716fc446816eb83f">empty</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#aaedd7bb4760bae3dcdb165b330806261">end</a>(iterator const &amp;v)</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a7e36b7f1c88ad1f5756ba6e501454bc4">end</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a31960fd7b416715d012b686bc1f2c205">iterator</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment&lt; IteratorType &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a45edfde079b2afe36c55043c7a00b438">length</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a76e2717f48ca7a6336a9fede9dec4d40">operator std::basic_string&lt; char_type, T, A &gt;</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a2e38c575af16843a3aa140a4332646a3">operator!=</a>(segment const &amp;other)</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a9a30e70d41591b25c8c77961bff00057">operator==</a>(segment const &amp;other)</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a5b36a522d7013306617dbcccc9919343">rule</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a962c26b7e2024767ad25f2be080fd53a">rule</a>(rule_type r)</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a4e785bc97dba9e8e25f18b43957723e5">segment</a>()</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#aea72505bb4940b21bb00a3660fefb7b7">segment</a>(iterator b, iterator e, rule_type r)</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#ac139eae8c07ed82ba8343fedfa76c2bf">str</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment&lt; IteratorType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a795d3328ac4d1692294f172c8480da47">string_type</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment&lt; IteratorType &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#ab7ba55015262b4fb85bb531882a32ead">value_type</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment&lt; IteratorType &gt;</a></td><td></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,510 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::boundary::segment&lt; IteratorType &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="namespaceboost_1_1locale_1_1boundary.html">boundary</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment&lt; IteratorType &gt;</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<h1>boost::locale::boundary::segment&lt; IteratorType &gt; Class Template Reference<br/>
<small>
[<a class="el" href="group__boundary.html">Boundary Analysis</a>]</small>
</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::boundary::segment" -->
<p>a segment object that represents a pair of two iterators that define the range where this segment exits and a rule that defines it.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="segment_8hpp_source.html">boost/locale/boundary/segment.hpp</a>&gt;</code></p>
<p><a href="classboost_1_1locale_1_1boundary_1_1segment-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef std::iterator_traits<br class="typebreak"/>
&lt; IteratorType &gt;::<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#ab7ba55015262b4fb85bb531882a32ead">value_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#ad3785355ea817c087bf428315a332169">char_type</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef std::basic_string<br class="typebreak"/>
&lt; <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#ad3785355ea817c087bf428315a332169">char_type</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a795d3328ac4d1692294f172c8480da47">string_type</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#ad3785355ea817c087bf428315a332169">char_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#ab7ba55015262b4fb85bb531882a32ead">value_type</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef IteratorType&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a31960fd7b416715d012b686bc1f2c205">iterator</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef IteratorType&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#aa24dcd83aefe4925bfc11b0285e2517a">const_iterator</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef std::iterator_traits<br class="typebreak"/>
&lt; IteratorType &gt;<br class="typebreak"/>
::<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a79ee4d48248ffbc23f84a33355ca3b62">difference_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a79ee4d48248ffbc23f84a33355ca3b62">difference_type</a></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a4e785bc97dba9e8e25f18b43957723e5">segment</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#aea72505bb4940b21bb00a3660fefb7b7">segment</a> (<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a31960fd7b416715d012b686bc1f2c205">iterator</a> b, <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a31960fd7b416715d012b686bc1f2c205">iterator</a> e, <a class="el" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095">rule_type</a> r)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a5428ff79bc05b78989f56519b58a6d9c">begin</a> (<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a31960fd7b416715d012b686bc1f2c205">iterator</a> const &amp;v)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#aaedd7bb4760bae3dcdb165b330806261">end</a> (<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a31960fd7b416715d012b686bc1f2c205">iterator</a> const &amp;v)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IteratorType&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a445da30d993880a1bd6d998e78755a44">begin</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IteratorType&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a7e36b7f1c88ad1f5756ba6e501454bc4">end</a> () const </td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;class T , class A &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a76e2717f48ca7a6336a9fede9dec4d40">operator std::basic_string&lt; char_type, T, A &gt;</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a795d3328ac4d1692294f172c8480da47">string_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#ac139eae8c07ed82ba8343fedfa76c2bf">str</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a45edfde079b2afe36c55043c7a00b438">length</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a84022afa120893d0716fc446816eb83f">empty</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095">rule_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a5b36a522d7013306617dbcccc9919343">rule</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a962c26b7e2024767ad25f2be080fd53a">rule</a> (<a class="el" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095">rule_type</a> r)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9a30e70d41591b25c8c77961bff00057"></a><!-- doxytag: member="boost::locale::boundary::segment::operator==" ref="a9a30e70d41591b25c8c77961bff00057" args="(segment const &amp;other)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a9a30e70d41591b25c8c77961bff00057">operator==</a> (<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">segment</a> const &amp;other)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two segments. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2e38c575af16843a3aa140a4332646a3"></a><!-- doxytag: member="boost::locale::boundary::segment::operator!=" ref="a2e38c575af16843a3aa140a4332646a3" args="(segment const &amp;other)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a2e38c575af16843a3aa140a4332646a3">operator!=</a> (<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">segment</a> const &amp;other)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two segments. <br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;typename IteratorType&gt;<br/>
class boost::locale::boundary::segment&lt; IteratorType &gt;</h3>
<p>a segment object that represents a pair of two iterators that define the range where this segment exits and a rule that defines it. </p>
<p>This type of object is dereferenced by the iterators of <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html" title="This class holds an index of segments in the text range and allows to iterate over them...">segment_index</a>. Using a <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a5b36a522d7013306617dbcccc9919343">rule()</a> member function you can get a specific rule this segment was selected with. For example, when you use word boundary analysis, you can check if the specific word contains Kana letters by checking (<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a5b36a522d7013306617dbcccc9919343">rule()</a> &amp; <a class="el" href="group__boundary.html#ga52d8c63e1f3f8c898c645352206a78ef">word_kana</a>)!=0 For a sentence analysis you can check if the sentence is selected because a sentence terminator is found (<a class="el" href="group__boundary.html#ga3befefe67f79691c117bf5588741355b">sentence_term</a>) or there is a line break (<a class="el" href="group__boundary.html#gaf67883341dd3d8f786e7281d40790000">sentence_sep</a>).</p>
<p>This object can be automatically converted to std::basic_string with the same type of character. It is also valid range that has <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a5428ff79bc05b78989f56519b58a6d9c">begin()</a> and <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#aaedd7bb4760bae3dcdb165b330806261">end()</a> member functions returning iterators on the location of the segment.</p>
<dl class="see"><dt><b>See also:</b></dt><dd></dd></dl>
<ul>
<li><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">segment_index</a></li>
<li><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boundary_point</a></li>
<li><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boundary_point_index</a> </li>
</ul>
<hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="ad3785355ea817c087bf428315a332169"></a><!-- doxytag: member="boost::locale::boundary::segment::char_type" ref="ad3785355ea817c087bf428315a332169" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname">typedef std::iterator_traits&lt;IteratorType&gt;::<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#ab7ba55015262b4fb85bb531882a32ead">value_type</a> <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment</a>&lt; IteratorType &gt;::<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#ad3785355ea817c087bf428315a332169">char_type</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>The type of the underlying character </p>
</div>
</div>
<a class="anchor" id="aa24dcd83aefe4925bfc11b0285e2517a"></a><!-- doxytag: member="boost::locale::boundary::segment::const_iterator" ref="aa24dcd83aefe4925bfc11b0285e2517a" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname">typedef IteratorType <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment</a>&lt; IteratorType &gt;::<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#aa24dcd83aefe4925bfc11b0285e2517a">const_iterator</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>The iterator that allows to iterate the range </p>
</div>
</div>
<a class="anchor" id="a79ee4d48248ffbc23f84a33355ca3b62"></a><!-- doxytag: member="boost::locale::boundary::segment::difference_type" ref="a79ee4d48248ffbc23f84a33355ca3b62" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname">typedef std::iterator_traits&lt;IteratorType&gt;::<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a79ee4d48248ffbc23f84a33355ca3b62">difference_type</a> <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment</a>&lt; IteratorType &gt;::<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a79ee4d48248ffbc23f84a33355ca3b62">difference_type</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>The type that represent a difference between two iterators </p>
</div>
</div>
<a class="anchor" id="a31960fd7b416715d012b686bc1f2c205"></a><!-- doxytag: member="boost::locale::boundary::segment::iterator" ref="a31960fd7b416715d012b686bc1f2c205" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname">typedef IteratorType <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment</a>&lt; IteratorType &gt;::<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a31960fd7b416715d012b686bc1f2c205">iterator</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>The iterator that allows to iterate the range </p>
</div>
</div>
<a class="anchor" id="a795d3328ac4d1692294f172c8480da47"></a><!-- doxytag: member="boost::locale::boundary::segment::string_type" ref="a795d3328ac4d1692294f172c8480da47" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname">typedef std::basic_string&lt;<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#ad3785355ea817c087bf428315a332169">char_type</a>&gt; <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment</a>&lt; IteratorType &gt;::<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a795d3328ac4d1692294f172c8480da47">string_type</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>The type of the string it is converted to </p>
</div>
</div>
<a class="anchor" id="ab7ba55015262b4fb85bb531882a32ead"></a><!-- doxytag: member="boost::locale::boundary::segment::value_type" ref="ab7ba55015262b4fb85bb531882a32ead" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname">typedef <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#ad3785355ea817c087bf428315a332169">char_type</a> <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment</a>&lt; IteratorType &gt;::<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#ab7ba55015262b4fb85bb531882a32ead">value_type</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>The value that iterators return - the character itself </p>
</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a4e785bc97dba9e8e25f18b43957723e5"></a><!-- doxytag: member="boost::locale::boundary::segment::segment" ref="a4e785bc97dba9e8e25f18b43957723e5" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment</a>&lt; IteratorType &gt;::<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">segment</a> </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Default constructor </p>
</div>
</div>
<a class="anchor" id="aea72505bb4940b21bb00a3660fefb7b7"></a><!-- doxytag: member="boost::locale::boundary::segment::segment" ref="aea72505bb4940b21bb00a3660fefb7b7" args="(iterator b, iterator e, rule_type r)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment</a>&lt; IteratorType &gt;::<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">segment</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a31960fd7b416715d012b686bc1f2c205">iterator</a>&nbsp;</td>
<td class="paramname"> <em>b</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a31960fd7b416715d012b686bc1f2c205">iterator</a>&nbsp;</td>
<td class="paramname"> <em>e</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095">rule_type</a>&nbsp;</td>
<td class="paramname"> <em>r</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a segment using two iterators and a rule that represents this point </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a5428ff79bc05b78989f56519b58a6d9c"></a><!-- doxytag: member="boost::locale::boundary::segment::begin" ref="a5428ff79bc05b78989f56519b58a6d9c" args="(iterator const &amp;v)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment</a>&lt; IteratorType &gt;::begin </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a31960fd7b416715d012b686bc1f2c205">iterator</a> const &amp;&nbsp;</td>
<td class="paramname"> <em>v</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set the start of the range </p>
</div>
</div>
<a class="anchor" id="a445da30d993880a1bd6d998e78755a44"></a><!-- doxytag: member="boost::locale::boundary::segment::begin" ref="a445da30d993880a1bd6d998e78755a44" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname">IteratorType <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment</a>&lt; IteratorType &gt;::begin </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the start of the range </p>
</div>
</div>
<a class="anchor" id="a84022afa120893d0716fc446816eb83f"></a><!-- doxytag: member="boost::locale::boundary::segment::empty" ref="a84022afa120893d0716fc446816eb83f" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment</a>&lt; IteratorType &gt;::empty </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Check if the segment is empty </p>
</div>
</div>
<a class="anchor" id="aaedd7bb4760bae3dcdb165b330806261"></a><!-- doxytag: member="boost::locale::boundary::segment::end" ref="aaedd7bb4760bae3dcdb165b330806261" args="(iterator const &amp;v)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment</a>&lt; IteratorType &gt;::end </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a31960fd7b416715d012b686bc1f2c205">iterator</a> const &amp;&nbsp;</td>
<td class="paramname"> <em>v</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set the end of the range </p>
</div>
</div>
<a class="anchor" id="a7e36b7f1c88ad1f5756ba6e501454bc4"></a><!-- doxytag: member="boost::locale::boundary::segment::end" ref="a7e36b7f1c88ad1f5756ba6e501454bc4" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname">IteratorType <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment</a>&lt; IteratorType &gt;::end </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set the end of the range </p>
</div>
</div>
<a class="anchor" id="a45edfde079b2afe36c55043c7a00b438"></a><!-- doxytag: member="boost::locale::boundary::segment::length" ref="a45edfde079b2afe36c55043c7a00b438" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname">size_t <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment</a>&lt; IteratorType &gt;::length </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the length of the text chunk </p>
</div>
</div>
<a class="anchor" id="a76e2717f48ca7a6336a9fede9dec4d40"></a><!-- doxytag: member="boost::locale::boundary::segment::operator std::basic_string&lt; char_type, T, A &gt;" ref="a76e2717f48ca7a6336a9fede9dec4d40" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<div class="memtemplate">
template&lt;class T , class A &gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment</a>&lt; IteratorType &gt;::operator std::basic_string&lt; <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#ad3785355ea817c087bf428315a332169">char_type</a>, T, A &gt; </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Convert the range to a string automatically </p>
</div>
</div>
<a class="anchor" id="a5b36a522d7013306617dbcccc9919343"></a><!-- doxytag: member="boost::locale::boundary::segment::rule" ref="a5b36a522d7013306617dbcccc9919343" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095">rule_type</a> <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment</a>&lt; IteratorType &gt;::rule </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the rule that is used for selection of this segment. </p>
</div>
</div>
<a class="anchor" id="a962c26b7e2024767ad25f2be080fd53a"></a><!-- doxytag: member="boost::locale::boundary::segment::rule" ref="a962c26b7e2024767ad25f2be080fd53a" args="(rule_type r)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment</a>&lt; IteratorType &gt;::rule </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095">rule_type</a>&nbsp;</td>
<td class="paramname"> <em>r</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set a rule that is used for segment selection </p>
</div>
</div>
<a class="anchor" id="ac139eae8c07ed82ba8343fedfa76c2bf"></a><!-- doxytag: member="boost::locale::boundary::segment::str" ref="ac139eae8c07ed82ba8343fedfa76c2bf" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename IteratorType&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html#a795d3328ac4d1692294f172c8480da47">string_type</a> <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">boost::locale::boundary::segment</a>&lt; IteratorType &gt;::str </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a string from the range explicitly </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/boundary/<a class="el" href="segment_8hpp_source.html">segment.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,97 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::boundary::segment_index&lt; BaseIterator &gt; Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">boost::locale::boundary::segment_index&lt; BaseIterator &gt;</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html#a06f2faacb9d196ebc659ad5382ea2ca5">base_iterator</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">boost::locale::boundary::segment_index&lt; BaseIterator &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#gaf74ff9c86c177efa8f74856277d659af">begin</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">boost::locale::boundary::segment_index&lt; BaseIterator &gt;</a></td><td><code> [inline]</code></td></tr>
<tr bgcolor="#f0f0f0"><td><b>boundary_point_index&lt; base_iterator &gt;</b> (defined in <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">boost::locale::boundary::segment_index&lt; BaseIterator &gt;</a>)</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">boost::locale::boundary::segment_index&lt; BaseIterator &gt;</a></td><td><code> [friend]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#ga5f8e61b5babc3f0fa95f5fb8acae3724">const_iterator</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">boost::locale::boundary::segment_index&lt; BaseIterator &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#ga8757062d2446b35675b585651c5fea9f">end</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">boost::locale::boundary::segment_index&lt; BaseIterator &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#ga2480236106971797460187777f2a4411">find</a>(base_iterator p) const </td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">boost::locale::boundary::segment_index&lt; BaseIterator &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#gace7faa10d536c85df0f2d5cac85f2bbc">full_select</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">boost::locale::boundary::segment_index&lt; BaseIterator &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#ga205fd51daa439a18527675e663a0802f">full_select</a>(bool v)</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">boost::locale::boundary::segment_index&lt; BaseIterator &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#gaf7a775e77dbbca3495e11d646df96fd2">iterator</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">boost::locale::boundary::segment_index&lt; BaseIterator &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#gafa2a756b10d3522743204b45b794bb3e">map</a>(boundary_type type, base_iterator begin, base_iterator end, std::locale const &amp;loc=std::locale())</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">boost::locale::boundary::segment_index&lt; BaseIterator &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#gae7941dc874ca05d2ef2a03f781c5b78a">operator=</a>(boundary_point_index&lt; base_iterator &gt; const &amp;)</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">boost::locale::boundary::segment_index&lt; BaseIterator &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#ga72b4ceb5bacec0eded2601c43a4d671a">rule</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">boost::locale::boundary::segment_index&lt; BaseIterator &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#gad19735180401edb15acbdbbeb21e5a73">rule</a>(rule_type v)</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">boost::locale::boundary::segment_index&lt; BaseIterator &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#ga2c354f4cc03677b58c97038cd84dc465">segment_index</a>()</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">boost::locale::boundary::segment_index&lt; BaseIterator &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#ga06ddc335e95479ec51e9b16d0f829bb3">segment_index</a>(boundary_type type, base_iterator begin, base_iterator end, rule_type mask, std::locale const &amp;loc=std::locale())</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">boost::locale::boundary::segment_index&lt; BaseIterator &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#ga46a5f584d5a1a43ad4bc0fff07183fcc">segment_index</a>(boundary_type type, base_iterator begin, base_iterator end, std::locale const &amp;loc=std::locale())</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">boost::locale::boundary::segment_index&lt; BaseIterator &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#ga8187f58177fc89ef2f8f818a37111363">segment_index</a>(boundary_point_index&lt; base_iterator &gt; const &amp;)</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">boost::locale::boundary::segment_index&lt; BaseIterator &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="group__boundary.html#ga067c663d18faee08adb3355701ae72ba">value_type</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">boost::locale::boundary::segment_index&lt; BaseIterator &gt;</a></td><td></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,183 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::boundary::segment_index&lt; BaseIterator &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="namespaceboost_1_1locale_1_1boundary.html">boundary</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">boost::locale::boundary::segment_index&lt; BaseIterator &gt;</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> </div>
<div class="headertitle">
<h1>boost::locale::boundary::segment_index&lt; BaseIterator &gt; Class Template Reference<br/>
<small>
[<a class="el" href="group__boundary.html">Boundary Analysis</a>]</small>
</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::boundary::segment_index" -->
<p>This class holds an index of segments in the text range and allows to iterate over them.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="index_8hpp_source.html">boost/locale/boundary/index.hpp</a>&gt;</code></p>
<p><a href="classboost_1_1locale_1_1boundary_1_1segment__index-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef BaseIterator&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html#a06f2faacb9d196ebc659ad5382ea2ca5">base_iterator</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef unspecified_iterator_type&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#gaf7a775e77dbbca3495e11d646df96fd2">iterator</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef unspecified_iterator_type&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga5f8e61b5babc3f0fa95f5fb8acae3724">const_iterator</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">segment</a>&lt; <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html#a06f2faacb9d196ebc659ad5382ea2ca5">base_iterator</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga067c663d18faee08adb3355701ae72ba">value_type</a></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga2c354f4cc03677b58c97038cd84dc465">segment_index</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga06ddc335e95479ec51e9b16d0f829bb3">segment_index</a> (<a class="el" href="group__boundary.html#ga15de9963ce9bb6037c8525901dfbf641">boundary_type</a> type, <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html#a06f2faacb9d196ebc659ad5382ea2ca5">base_iterator</a> begin, <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html#a06f2faacb9d196ebc659ad5382ea2ca5">base_iterator</a> end, <a class="el" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095">rule_type</a> mask, std::locale const &amp;loc=std::locale())</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga46a5f584d5a1a43ad4bc0fff07183fcc">segment_index</a> (<a class="el" href="group__boundary.html#ga15de9963ce9bb6037c8525901dfbf641">boundary_type</a> type, <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html#a06f2faacb9d196ebc659ad5382ea2ca5">base_iterator</a> begin, <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html#a06f2faacb9d196ebc659ad5382ea2ca5">base_iterator</a> end, std::locale const &amp;loc=std::locale())</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga8187f58177fc89ef2f8f818a37111363">segment_index</a> (<a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boundary_point_index</a>&lt; <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html#a06f2faacb9d196ebc659ad5382ea2ca5">base_iterator</a> &gt; const &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">segment_index</a> const &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#gae7941dc874ca05d2ef2a03f781c5b78a">operator=</a> (<a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boundary_point_index</a>&lt; <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html#a06f2faacb9d196ebc659ad5382ea2ca5">base_iterator</a> &gt; const &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#gafa2a756b10d3522743204b45b794bb3e">map</a> (<a class="el" href="group__boundary.html#ga15de9963ce9bb6037c8525901dfbf641">boundary_type</a> type, <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html#a06f2faacb9d196ebc659ad5382ea2ca5">base_iterator</a> begin, <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html#a06f2faacb9d196ebc659ad5382ea2ca5">base_iterator</a> end, std::locale const &amp;loc=std::locale())</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__boundary.html#gaf7a775e77dbbca3495e11d646df96fd2">iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#gaf74ff9c86c177efa8f74856277d659af">begin</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__boundary.html#gaf7a775e77dbbca3495e11d646df96fd2">iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga8757062d2446b35675b585651c5fea9f">end</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__boundary.html#gaf7a775e77dbbca3495e11d646df96fd2">iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga2480236106971797460187777f2a4411">find</a> (<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html#a06f2faacb9d196ebc659ad5382ea2ca5">base_iterator</a> p) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095">rule_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga72b4ceb5bacec0eded2601c43a4d671a">rule</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#gad19735180401edb15acbdbbeb21e5a73">rule</a> (<a class="el" href="group__boundary.html#ga25e193c81052ef1795f1b53b46bc2095">rule_type</a> v)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#gace7faa10d536c85df0f2d5cac85f2bbc">full_select</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__boundary.html#ga205fd51daa439a18527675e663a0802f">full_select</a> (bool v)</td></tr>
<tr><td colspan="2"><h2><a name="friends"></a>
Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga960209e8a9453221641eda6bd8c4989b"></a><!-- doxytag: member="boost::locale::boundary::segment_index::boundary_point_index&lt; base_iterator &gt;" ref="ga960209e8a9453221641eda6bd8c4989b" args="" -->
class&nbsp;</td><td class="memItemRight" valign="bottom"><b>boundary_point_index&lt; base_iterator &gt;</b></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;typename BaseIterator&gt;<br/>
class boost::locale::boundary::segment_index&lt; BaseIterator &gt;</h3>
<p>This class holds an index of segments in the text range and allows to iterate over them. </p>
<p>This class is provides <a class="el" href="group__boundary.html#gaf74ff9c86c177efa8f74856277d659af">begin()</a> and <a class="el" href="group__boundary.html#ga8757062d2446b35675b585651c5fea9f">end()</a> member functions that return bidirectional iterators to the <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">segment</a> objects.</p>
<p>It provides two options on way of selecting segments:</p>
<ul>
<li><a class="el" href="group__boundary.html#gad19735180401edb15acbdbbeb21e5a73">rule(rule_type mask)</a> - a mask that allows to select only specific types of segments according to various masks as <a class="el" href="group__boundary.html#ga3ab98808dbb1cc4a346dcc2554c9d8dc">word_any</a>. <br/>
The default is to select any types of boundaries. <br/>
For example: using word boundary analysis, when the provided mask is <a class="el" href="group__boundary.html#ga52d8c63e1f3f8c898c645352206a78ef">word_kana</a> then the iterators would iterate only over the words containing Kana letters and <a class="el" href="group__boundary.html#ga3ab98808dbb1cc4a346dcc2554c9d8dc">word_any</a> would select all types of words excluding ranges that consist of white space and punctuation marks. So iterating over the text "to be or not to be?" with <a class="el" href="group__boundary.html#ga3ab98808dbb1cc4a346dcc2554c9d8dc">word_any</a> rule would return segments "to", "be", "or", "not", "to", "be", instead of default "to", " ", "be", " ", "or", " ", "not", " ", "to", " ", "be", "?".</li>
<li><a class="el" href="group__boundary.html#ga205fd51daa439a18527675e663a0802f">full_select(bool how)</a> - a flag that defines the way a range is selected if the rule of the previous boundary point does not fit the selected rule. <br/>
For example: We want to fetch all sentences from the following text: "Hello! How\nare you?". <br/>
This text contains three boundary points separating it to sentences by different rules:<ul>
<li>The exclamation mark "!" ends the sentence "Hello!"</li>
<li>The line feed that splits the sentence "How\nare you?" into two parts.</li>
<li>The question mark that ends the second sentence. <br/>
If you would only change the <a class="el" href="group__boundary.html#ga72b4ceb5bacec0eded2601c43a4d671a">rule()</a> to <a class="el" href="group__boundary.html#ga3befefe67f79691c117bf5588741355b">sentence_term</a> then the <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html" title="This class holds an index of segments in the text range and allows to iterate over them...">segment_index</a> would provide two sentences "Hello!" and "are you?" as only them actually terminated with required terminator "!" or "?". But changing <a class="el" href="group__boundary.html#gace7faa10d536c85df0f2d5cac85f2bbc">full_select()</a> to true, the selected segment would include all the text up to previous valid boundary point and would return two expected sentences: "Hello!" and "How\nare you?".</li>
</ul>
</li>
</ul>
<p>This class allows to find a segment according to the given iterator in range using <a class="el" href="group__boundary.html#ga2480236106971797460187777f2a4411">find()</a> member function.</p>
<dl class="note"><dt><b>Note:</b></dt><dd></dd></dl>
<ul>
<li>Changing any of the options - <a class="el" href="group__boundary.html#ga72b4ceb5bacec0eded2601c43a4d671a">rule()</a> or <a class="el" href="group__boundary.html#gace7faa10d536c85df0f2d5cac85f2bbc">full_select()</a> and of course re-indexing the text invalidates existing iterators and they can't be used any more.</li>
<li><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html" title="This class holds an index of segments in the text range and allows to iterate over them...">segment_index</a> can be created from <a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html" title="This class holds an index of boundary points and allows iterating over them.">boundary_point_index</a> or other <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html" title="This class holds an index of segments in the text range and allows to iterate over them...">segment_index</a> that was created with same <a class="el" href="group__boundary.html#ga15de9963ce9bb6037c8525901dfbf641">boundary_type</a>. This is very fast operation as they shared same index and it does not require its regeneration.</li>
</ul>
<dl class="see"><dt><b>See also:</b></dt><dd></dd></dl>
<ul>
<li><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boundary_point_index</a></li>
<li><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">segment</a></li>
<li><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boundary_point</a> </li>
</ul>
<dl><dt><b>Examples: </b></dt><dd>
<p><a class="el" href="boundary_8cpp-example.html#_a1">boundary.cpp</a>, and <a class="el" href="wboundary_8cpp-example.html#_a1">wboundary.cpp</a>.</p>
</dd>
</dl><hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="a06f2faacb9d196ebc659ad5382ea2ca5"></a><!-- doxytag: member="boost::locale::boundary::segment_index::base_iterator" ref="a06f2faacb9d196ebc659ad5382ea2ca5" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename BaseIterator&gt; </div>
<table class="memname">
<tr>
<td class="memname">typedef BaseIterator <a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">boost::locale::boundary::segment_index</a>&lt; BaseIterator &gt;::<a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html#a06f2faacb9d196ebc659ad5382ea2ca5">base_iterator</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>The type of the iterator used to iterate over the original text </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/boundary/<a class="el" href="index_8hpp_source.html">index.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,98 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::calendar Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1calendar.html">boost::locale::calendar</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1calendar.html#a889746f73b03bb21f5c8459cbe9b293d">calendar</a>(std::ios_base &amp;ios)</td><td><a class="el" href="classboost_1_1locale_1_1calendar.html">boost::locale::calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1calendar.html#aece160bf9ded6145ac5a066448085bae">calendar</a>(std::locale const &amp;l, std::string const &amp;zone)</td><td><a class="el" href="classboost_1_1locale_1_1calendar.html">boost::locale::calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1calendar.html#ad9f47a96941c041996da64384bc5879d">calendar</a>(std::locale const &amp;l)</td><td><a class="el" href="classboost_1_1locale_1_1calendar.html">boost::locale::calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1calendar.html#af9538c3aab4b8eaf7229ed2d9af18328">calendar</a>(std::string const &amp;zone)</td><td><a class="el" href="classboost_1_1locale_1_1calendar.html">boost::locale::calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1calendar.html#a56c55c24fbbb29fac5a18c44d3a27beb">calendar</a>()</td><td><a class="el" href="classboost_1_1locale_1_1calendar.html">boost::locale::calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1calendar.html#ad33ad15b5b032ba5234ebe5959159668">calendar</a>(calendar const &amp;other)</td><td><a class="el" href="classboost_1_1locale_1_1calendar.html">boost::locale::calendar</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>date_time</b> (defined in <a class="el" href="classboost_1_1locale_1_1calendar.html">boost::locale::calendar</a>)</td><td><a class="el" href="classboost_1_1locale_1_1calendar.html">boost::locale::calendar</a></td><td><code> [friend]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1calendar.html#a8144b98a316798476040348483fe2a6e">first_day_of_week</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1calendar.html">boost::locale::calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1calendar.html#aaf669f493ef0226aefbb6d13db8c27d1">get_locale</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1calendar.html">boost::locale::calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1calendar.html#af4063debebd6cc08cf25171ce5ee220e">get_time_zone</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1calendar.html">boost::locale::calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1calendar.html#a3c2475ee3ebb107e47701cf732532f9f">greatest_minimum</a>(period::period_type f) const </td><td><a class="el" href="classboost_1_1locale_1_1calendar.html">boost::locale::calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1calendar.html#a657ece3d3d59b8fc3c817bc05227620b">is_gregorian</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1calendar.html">boost::locale::calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1calendar.html#a4c708d889ef92487982d918a78be5eda">least_maximum</a>(period::period_type f) const </td><td><a class="el" href="classboost_1_1locale_1_1calendar.html">boost::locale::calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1calendar.html#abd88cbf4c3b9f072430f9e7d9ab2d744">maximum</a>(period::period_type f) const </td><td><a class="el" href="classboost_1_1locale_1_1calendar.html">boost::locale::calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1calendar.html#a6670c7319dcaec257819b7a802d2c5f7">minimum</a>(period::period_type f) const </td><td><a class="el" href="classboost_1_1locale_1_1calendar.html">boost::locale::calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1calendar.html#ab0d93fe1d3bfb7b66f8ef631ede93236">operator!=</a>(calendar const &amp;other) const </td><td><a class="el" href="classboost_1_1locale_1_1calendar.html">boost::locale::calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1calendar.html#a7125a6c3f3d629f871ddb0f3c2f5a181">operator=</a>(calendar const &amp;other)</td><td><a class="el" href="classboost_1_1locale_1_1calendar.html">boost::locale::calendar</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1calendar.html#a8939fba5987659b3153cb18eea9af969">operator==</a>(calendar const &amp;other) const </td><td><a class="el" href="classboost_1_1locale_1_1calendar.html">boost::locale::calendar</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>~calendar</b>() (defined in <a class="el" href="classboost_1_1locale_1_1calendar.html">boost::locale::calendar</a>)</td><td><a class="el" href="classboost_1_1locale_1_1calendar.html">boost::locale::calendar</a></td><td></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,466 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::calendar Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1calendar.html">boost::locale::calendar</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> </div>
<div class="headertitle">
<h1>boost::locale::calendar Class Reference<br/>
<small>
[<a class="el" href="group__date__time.html">Date, Time, Timezone and Calendar manipulations</a>]</small>
</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::calendar" -->
<p>this class provides an access to general calendar information.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="date__time_8hpp_source.html">boost/locale/date_time.hpp</a>&gt;</code></p>
<p><a href="classboost_1_1locale_1_1calendar-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1calendar.html#a889746f73b03bb21f5c8459cbe9b293d">calendar</a> (std::ios_base &amp;ios)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1calendar.html#aece160bf9ded6145ac5a066448085bae">calendar</a> (std::locale const &amp;l, std::string const &amp;zone)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1calendar.html#ad9f47a96941c041996da64384bc5879d">calendar</a> (std::locale const &amp;l)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1calendar.html#af9538c3aab4b8eaf7229ed2d9af18328">calendar</a> (std::string const &amp;zone)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1calendar.html#a56c55c24fbbb29fac5a18c44d3a27beb">calendar</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1calendar.html#ad33ad15b5b032ba5234ebe5959159668">calendar</a> (<a class="el" href="classboost_1_1locale_1_1calendar.html">calendar</a> const &amp;other)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classboost_1_1locale_1_1calendar.html">calendar</a> const &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1calendar.html#a7125a6c3f3d629f871ddb0f3c2f5a181">operator=</a> (<a class="el" href="classboost_1_1locale_1_1calendar.html">calendar</a> const &amp;other)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1calendar.html#a6670c7319dcaec257819b7a802d2c5f7">minimum</a> (<a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">period::period_type</a> f) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1calendar.html#a3c2475ee3ebb107e47701cf732532f9f">greatest_minimum</a> (<a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">period::period_type</a> f) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1calendar.html#abd88cbf4c3b9f072430f9e7d9ab2d744">maximum</a> (<a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">period::period_type</a> f) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1calendar.html#a4c708d889ef92487982d918a78be5eda">least_maximum</a> (<a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">period::period_type</a> f) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1calendar.html#a8144b98a316798476040348483fe2a6e">first_day_of_week</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::locale&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1calendar.html#aaf669f493ef0226aefbb6d13db8c27d1">get_locale</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1calendar.html#af4063debebd6cc08cf25171ce5ee220e">get_time_zone</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1calendar.html#a657ece3d3d59b8fc3c817bc05227620b">is_gregorian</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1calendar.html#a8939fba5987659b3153cb18eea9af969">operator==</a> (<a class="el" href="classboost_1_1locale_1_1calendar.html">calendar</a> const &amp;other) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1calendar.html#ab0d93fe1d3bfb7b66f8ef631ede93236">operator!=</a> (<a class="el" href="classboost_1_1locale_1_1calendar.html">calendar</a> const &amp;other) const </td></tr>
<tr><td colspan="2"><h2><a name="friends"></a>
Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7c627d823bfb1186af76ed36016cbb31"></a><!-- doxytag: member="boost::locale::calendar::date_time" ref="a7c627d823bfb1186af76ed36016cbb31" args="" -->
class&nbsp;</td><td class="memItemRight" valign="bottom"><b>date_time</b></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>this class provides an access to general calendar information. </p>
<p>This information is not connected to specific date but generic to locale, and timezone. It is used in obtaining general information about calendar and is essential for creation of <a class="el" href="classboost_1_1locale_1_1date__time.html" title="this class represents a date time and allows to perform various operation according to the locale set...">date_time</a> objects. </p>
<dl><dt><b>Examples: </b></dt><dd>
<p><a class="el" href="calendar_8cpp-example.html#_a6">calendar.cpp</a>.</p>
</dd>
</dl><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a889746f73b03bb21f5c8459cbe9b293d"></a><!-- doxytag: member="boost::locale::calendar::calendar" ref="a889746f73b03bb21f5c8459cbe9b293d" args="(std::ios_base &amp;ios)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">boost::locale::calendar::calendar </td>
<td>(</td>
<td class="paramtype">std::ios_base &amp;&nbsp;</td>
<td class="paramname"> <em>ios</em></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create calendar taking locale and timezone information from ios_base instance.</p>
<dl class="note"><dt><b>Note:</b></dt><dd>throws std::bad_cast if ios does not have a locale with installed <a class="el" href="classboost_1_1locale_1_1calendar__facet.html">calendar_facet</a> facet installed </dd></dl>
</div>
</div>
<a class="anchor" id="aece160bf9ded6145ac5a066448085bae"></a><!-- doxytag: member="boost::locale::calendar::calendar" ref="aece160bf9ded6145ac5a066448085bae" args="(std::locale const &amp;l, std::string const &amp;zone)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">boost::locale::calendar::calendar </td>
<td>(</td>
<td class="paramtype">std::locale const &amp;&nbsp;</td>
<td class="paramname"> <em>l</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::string const &amp;&nbsp;</td>
<td class="paramname"> <em>zone</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create calendar with locale <em>l</em> and <a class="el" href="namespaceboost_1_1locale_1_1time__zone.html" title="namespace that holds functions for operating with global time zone">time_zone</a> <em>zone</em> </p>
<dl class="note"><dt><b>Note:</b></dt><dd>throws std::bad_cast if loc does not have <a class="el" href="classboost_1_1locale_1_1calendar__facet.html">calendar_facet</a> facet installed </dd></dl>
</div>
</div>
<a class="anchor" id="ad9f47a96941c041996da64384bc5879d"></a><!-- doxytag: member="boost::locale::calendar::calendar" ref="ad9f47a96941c041996da64384bc5879d" args="(std::locale const &amp;l)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">boost::locale::calendar::calendar </td>
<td>(</td>
<td class="paramtype">std::locale const &amp;&nbsp;</td>
<td class="paramname"> <em>l</em></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create calendar with locale <em>l</em> and default timezone</p>
<dl class="note"><dt><b>Note:</b></dt><dd>throws std::bad_cast if loc does not have <a class="el" href="classboost_1_1locale_1_1calendar__facet.html">calendar_facet</a> facet installed </dd></dl>
</div>
</div>
<a class="anchor" id="af9538c3aab4b8eaf7229ed2d9af18328"></a><!-- doxytag: member="boost::locale::calendar::calendar" ref="af9538c3aab4b8eaf7229ed2d9af18328" args="(std::string const &amp;zone)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">boost::locale::calendar::calendar </td>
<td>(</td>
<td class="paramtype">std::string const &amp;&nbsp;</td>
<td class="paramname"> <em>zone</em></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create calendar with default locale and timezone <em>zone</em> </p>
<dl class="note"><dt><b>Note:</b></dt><dd>throws std::bad_cast if global locale does not have <a class="el" href="classboost_1_1locale_1_1calendar__facet.html">calendar_facet</a> facet installed </dd></dl>
</div>
</div>
<a class="anchor" id="a56c55c24fbbb29fac5a18c44d3a27beb"></a><!-- doxytag: member="boost::locale::calendar::calendar" ref="a56c55c24fbbb29fac5a18c44d3a27beb" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">boost::locale::calendar::calendar </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create calendar with default locale and timezone</p>
<dl class="note"><dt><b>Note:</b></dt><dd>throws std::bad_cast if global locale does not have <a class="el" href="classboost_1_1locale_1_1calendar__facet.html">calendar_facet</a> facet installed </dd></dl>
</div>
</div>
<a class="anchor" id="ad33ad15b5b032ba5234ebe5959159668"></a><!-- doxytag: member="boost::locale::calendar::calendar" ref="ad33ad15b5b032ba5234ebe5959159668" args="(calendar const &amp;other)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">boost::locale::calendar::calendar </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1calendar.html">calendar</a> const &amp;&nbsp;</td>
<td class="paramname"> <em>other</em></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>copy calendar </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a8144b98a316798476040348483fe2a6e"></a><!-- doxytag: member="boost::locale::calendar::first_day_of_week" ref="a8144b98a316798476040348483fe2a6e" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int boost::locale::calendar::first_day_of_week </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get first day of week for specific calendar, for example for US it is 1 - Sunday for France it is 2 - Monday </p>
</div>
</div>
<a class="anchor" id="aaf669f493ef0226aefbb6d13db8c27d1"></a><!-- doxytag: member="boost::locale::calendar::get_locale" ref="aaf669f493ef0226aefbb6d13db8c27d1" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::locale boost::locale::calendar::get_locale </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>get calendar's locale </p>
</div>
</div>
<a class="anchor" id="af4063debebd6cc08cf25171ce5ee220e"></a><!-- doxytag: member="boost::locale::calendar::get_time_zone" ref="af4063debebd6cc08cf25171ce5ee220e" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::string boost::locale::calendar::get_time_zone </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>get calendar's time zone </p>
</div>
</div>
<a class="anchor" id="a3c2475ee3ebb107e47701cf732532f9f"></a><!-- doxytag: member="boost::locale::calendar::greatest_minimum" ref="a3c2475ee3ebb107e47701cf732532f9f" args="(period::period_type f) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int boost::locale::calendar::greatest_minimum </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">period::period_type</a>&nbsp;</td>
<td class="paramname"> <em>f</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get greatest possible minimum value for period f, For example for <a class="el" href="namespaceboost_1_1locale_1_1period.html#a72438d8d7da8493457e043aa442f0d9d">period::day</a> it is 1, but may be different for other calendars. </p>
</div>
</div>
<a class="anchor" id="a657ece3d3d59b8fc3c817bc05227620b"></a><!-- doxytag: member="boost::locale::calendar::is_gregorian" ref="a657ece3d3d59b8fc3c817bc05227620b" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool boost::locale::calendar::is_gregorian </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Check if the calendar is Gregorian </p>
</div>
</div>
<a class="anchor" id="a4c708d889ef92487982d918a78be5eda"></a><!-- doxytag: member="boost::locale::calendar::least_maximum" ref="a4c708d889ef92487982d918a78be5eda" args="(period::period_type f) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int boost::locale::calendar::least_maximum </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">period::period_type</a>&nbsp;</td>
<td class="paramname"> <em>f</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get least maximum value for period f, For example for Gregorian calendar's maximum <a class="el" href="namespaceboost_1_1locale_1_1period.html#a72438d8d7da8493457e043aa442f0d9d">period::day</a> it is 28. </p>
</div>
</div>
<a class="anchor" id="abd88cbf4c3b9f072430f9e7d9ab2d744"></a><!-- doxytag: member="boost::locale::calendar::maximum" ref="abd88cbf4c3b9f072430f9e7d9ab2d744" args="(period::period_type f) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int boost::locale::calendar::maximum </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">period::period_type</a>&nbsp;</td>
<td class="paramname"> <em>f</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get maximum value for period f, For example for Gregorian calendar's maximum <a class="el" href="namespaceboost_1_1locale_1_1period.html#a72438d8d7da8493457e043aa442f0d9d">period::day</a> it is 31. </p>
</div>
</div>
<a class="anchor" id="a6670c7319dcaec257819b7a802d2c5f7"></a><!-- doxytag: member="boost::locale::calendar::minimum" ref="a6670c7319dcaec257819b7a802d2c5f7" args="(period::period_type f) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int boost::locale::calendar::minimum </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">period::period_type</a>&nbsp;</td>
<td class="paramname"> <em>f</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get minimum value for period f, For example for <a class="el" href="namespaceboost_1_1locale_1_1period.html#a72438d8d7da8493457e043aa442f0d9d">period::day</a> it is 1. </p>
</div>
</div>
<a class="anchor" id="ab0d93fe1d3bfb7b66f8ef631ede93236"></a><!-- doxytag: member="boost::locale::calendar::operator!=" ref="ab0d93fe1d3bfb7b66f8ef631ede93236" args="(calendar const &amp;other) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool boost::locale::calendar::operator!= </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1calendar.html">calendar</a> const &amp;&nbsp;</td>
<td class="paramname"> <em>other</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Opposite of == </p>
</div>
</div>
<a class="anchor" id="a7125a6c3f3d629f871ddb0f3c2f5a181"></a><!-- doxytag: member="boost::locale::calendar::operator=" ref="a7125a6c3f3d629f871ddb0f3c2f5a181" args="(calendar const &amp;other)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classboost_1_1locale_1_1calendar.html">calendar</a> const&amp; boost::locale::calendar::operator= </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1calendar.html">calendar</a> const &amp;&nbsp;</td>
<td class="paramname"> <em>other</em></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>assign calendar </p>
</div>
</div>
<a class="anchor" id="a8939fba5987659b3153cb18eea9af969"></a><!-- doxytag: member="boost::locale::calendar::operator==" ref="a8939fba5987659b3153cb18eea9af969" args="(calendar const &amp;other) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool boost::locale::calendar::operator== </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1calendar.html">calendar</a> const &amp;&nbsp;</td>
<td class="paramname"> <em>other</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Compare calendars for equivalence: i.e. calendar types, time zones etc. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/<a class="el" href="date__time_8hpp_source.html">date_time.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,82 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::calendar_facet Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1calendar__facet.html">boost::locale::calendar_facet</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1calendar__facet.html#a04e5d7baa3bb0f362b0c2faac0c5d376">calendar_facet</a>(size_t refs=0)</td><td><a class="el" href="classboost_1_1locale_1_1calendar__facet.html">boost::locale::calendar_facet</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1calendar__facet.html#a6db1915db3ad99ea65334dddaa7dcc28">create_calendar</a>() const =0</td><td><a class="el" href="classboost_1_1locale_1_1calendar__facet.html">boost::locale::calendar_facet</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1calendar__facet.html#a88dc563112346949302fd95df833089c">id</a></td><td><a class="el" href="classboost_1_1locale_1_1calendar__facet.html">boost::locale::calendar_facet</a></td><td><code> [static]</code></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,163 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::calendar_facet Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1calendar__facet.html">boost::locale::calendar_facet</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> </div>
<div class="headertitle">
<h1>boost::locale::calendar_facet Class Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::calendar_facet" -->
<p>the facet that generates calendar for specific locale
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="date__time__facet_8hpp_source.html">boost/locale/date_time_facet.hpp</a>&gt;</code></p>
<p><a href="classboost_1_1locale_1_1calendar__facet-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1calendar__facet.html#a04e5d7baa3bb0f362b0c2faac0c5d376">calendar_facet</a> (size_t refs=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">abstract_calendar</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1calendar__facet.html#a6db1915db3ad99ea65334dddaa7dcc28">create_calendar</a> () const =0</td></tr>
<tr><td colspan="2"><h2><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static std::locale::id&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1calendar__facet.html#a88dc563112346949302fd95df833089c">id</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>the facet that generates calendar for specific locale </p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a04e5d7baa3bb0f362b0c2faac0c5d376"></a><!-- doxytag: member="boost::locale::calendar_facet::calendar_facet" ref="a04e5d7baa3bb0f362b0c2faac0c5d376" args="(size_t refs=0)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">boost::locale::calendar_facet::calendar_facet </td>
<td>(</td>
<td class="paramtype">size_t&nbsp;</td>
<td class="paramname"> <em>refs</em> = <code>0</code></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Basic constructor </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a6db1915db3ad99ea65334dddaa7dcc28"></a><!-- doxytag: member="boost::locale::calendar_facet::create_calendar" ref="a6db1915db3ad99ea65334dddaa7dcc28" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">abstract_calendar</a>* boost::locale::calendar_facet::create_calendar </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a new calendar that points to current point of time. </p>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a88dc563112346949302fd95df833089c"></a><!-- doxytag: member="boost::locale::calendar_facet::id" ref="a88dc563112346949302fd95df833089c" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::locale::id <a class="el" href="classboost_1_1locale_1_1calendar__facet.html#a88dc563112346949302fd95df833089c">boost::locale::calendar_facet::id</a><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Locale id (needed to work with std::locale) </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/<a class="el" href="date__time__facet_8hpp_source.html">date_time_facet.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,101 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::collator&lt; CharType &gt; Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator&lt; CharType &gt;</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator&lt; CharType &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator.html#a25a8b21a756756e850a7488a54610053">collator</a>(size_t refs=0)</td><td><a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator&lt; CharType &gt;</a></td><td><code> [inline, protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator.html#ab90dc7bb909a71d3cd9a5e8d7b2eb80e">compare</a>(level_type level, char_type const *b1, char_type const *e1, char_type const *b2, char_type const *e2) const </td><td><a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator&lt; CharType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator.html#a9ccdfec693cdc5a71b5adc1f083881bf">compare</a>(level_type level, string_type const &amp;l, string_type const &amp;r) const </td><td><a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator&lt; CharType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator.html#ada3a683bed35789e081b710a8e9a9a07">do_compare</a>(char_type const *b1, char_type const *e1, char_type const *b2, char_type const *e2) const </td><td><a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator&lt; CharType &gt;</a></td><td><code> [inline, protected, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator.html#a5d04cf6c4ab84cf3eac20be402ac6bf9">do_compare</a>(level_type level, char_type const *b1, char_type const *e1, char_type const *b2, char_type const *e2) const =0</td><td><a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator&lt; CharType &gt;</a></td><td><code> [protected, pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator.html#aa093cd4ed0b4be4a5e38f0f04a56ac0b">do_hash</a>(char_type const *b, char_type const *e) const </td><td><a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator&lt; CharType &gt;</a></td><td><code> [inline, protected, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator.html#a7748d5a6ef0d4dd149096b080938d4c4">do_hash</a>(level_type level, char_type const *b, char_type const *e) const =0</td><td><a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator&lt; CharType &gt;</a></td><td><code> [protected, pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator.html#a84b5cb6ff01cf1a1330e1556a2c674d5">do_transform</a>(char_type const *b, char_type const *e) const </td><td><a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator&lt; CharType &gt;</a></td><td><code> [inline, protected, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator.html#a0ee27b7bc751b7a7fda4de1b0d896d57">do_transform</a>(level_type level, char_type const *b, char_type const *e) const =0</td><td><a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator&lt; CharType &gt;</a></td><td><code> [protected, pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator.html#a89752e2023643f972b6cc8024340d5d4">hash</a>(level_type level, char_type const *b, char_type const *e) const </td><td><a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator&lt; CharType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator.html#a76000f6cf10bfe63dd7fd10652de3f5b">hash</a>(level_type level, string_type const &amp;s) const </td><td><a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator&lt; CharType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22a3c209055ff840e311581ab43013026f2">identical</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1collator__base.html">boost::locale::collator_base</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a> enum name</td><td><a class="el" href="classboost_1_1locale_1_1collator__base.html">boost::locale::collator_base</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22ae57e842f398a27ee490208f5af39675b">primary</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1collator__base.html">boost::locale::collator_base</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22a22ca1875fd63667fbb018df16b0aedba">quaternary</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1collator__base.html">boost::locale::collator_base</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22ad8e103443d69f03f00ac4b68a7181866">secondary</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1collator__base.html">boost::locale::collator_base</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator&lt; CharType &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22a3a852752e9663b7b3340c435d0cfe36a">tertiary</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1collator__base.html">boost::locale::collator_base</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator.html#a8dc6443fb193616332ca50f207a9b189">transform</a>(level_type level, char_type const *b, char_type const *e) const </td><td><a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator&lt; CharType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator.html#aa9976b4fa0fba6c5d1a1dea9b5ef02ca">transform</a>(level_type level, string_type const &amp;s) const </td><td><a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator&lt; CharType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr bgcolor="#f0f0f0"><td><b>~collator</b>() (defined in <a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator&lt; CharType &gt;</a>)</td><td><a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator&lt; CharType &gt;</a></td><td><code> [inline, protected, virtual]</code></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,645 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::collator&lt; CharType &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator&lt; CharType &gt;</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> </div>
<div class="headertitle">
<h1>boost::locale::collator&lt; CharType &gt; Class Template Reference<br/>
<small>
[<a class="el" href="group__collation.html">Collation</a>]</small>
</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::collator" --><!-- doxytag: inherits="boost::locale::collator_base" -->
<p>Collation facet.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="collator_8hpp_source.html">boost/locale/collator.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for boost::locale::collator&lt; CharType &gt;:</div>
<div class="dyncontent">
<div class="center">
<img src="classboost_1_1locale_1_1collator.png" usemap="#boost::locale::collator&lt; CharType &gt;_map" alt=""/>
<map id="boost::locale::collator&lt; CharType &gt;_map" name="boost::locale::collator&lt; CharType &gt;_map">
<area href="classboost_1_1locale_1_1collator__base.html" alt="boost::locale::collator_base" shape="rect" coords="0,0,210,24"/>
</map>
</div>
<p><a href="classboost_1_1locale_1_1collator-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef CharType&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef std::basic_string<br class="typebreak"/>
&lt; CharType &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1collator.html#ab90dc7bb909a71d3cd9a5e8d7b2eb80e">compare</a> (<a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a> level, <a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *b1, <a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *e1, <a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *b2, <a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *e2) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1collator.html#a8dc6443fb193616332ca50f207a9b189">transform</a> (<a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a> level, <a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *b, <a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *e) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1collator.html#a89752e2023643f972b6cc8024340d5d4">hash</a> (<a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a> level, <a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *b, <a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *e) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1collator.html#a9ccdfec693cdc5a71b5adc1f083881bf">compare</a> (<a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a> level, <a class="el" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a> const &amp;l, <a class="el" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a> const &amp;r) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1collator.html#a76000f6cf10bfe63dd7fd10652de3f5b">hash</a> (<a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a> level, <a class="el" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a> const &amp;s) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1collator.html#aa9976b4fa0fba6c5d1a1dea9b5ef02ca">transform</a> (<a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a> level, <a class="el" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a> const &amp;s) const </td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1collator.html#a25a8b21a756756e850a7488a54610053">collator</a> (size_t refs=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1collator.html#ada3a683bed35789e081b710a8e9a9a07">do_compare</a> (<a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *b1, <a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *e1, <a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *b2, <a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *e2) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1collator.html#a84b5cb6ff01cf1a1330e1556a2c674d5">do_transform</a> (<a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *b, <a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *e) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1collator.html#aa093cd4ed0b4be4a5e38f0f04a56ac0b">do_hash</a> (<a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *b, <a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *e) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1collator.html#a5d04cf6c4ab84cf3eac20be402ac6bf9">do_compare</a> (<a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a> level, <a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *b1, <a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *e1, <a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *b2, <a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *e2) const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1collator.html#a0ee27b7bc751b7a7fda4de1b0d896d57">do_transform</a> (<a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a> level, <a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *b, <a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *e) const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1collator.html#a7748d5a6ef0d4dd149096b080938d4c4">do_hash</a> (<a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a> level, <a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *b, <a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *e) const =0</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;typename CharType&gt;<br/>
class boost::locale::collator&lt; CharType &gt;</h3>
<p>Collation facet. </p>
<p>It reimplements standard C++ std::collate, allowing usage of std::locale for direct string comparison </p>
<hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="a2b74a0b9a613a4a4337632bf34644c6f"></a><!-- doxytag: member="boost::locale::collator::char_type" ref="a2b74a0b9a613a4a4337632bf34644c6f" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType &gt; </div>
<table class="memname">
<tr>
<td class="memname">typedef CharType <a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator</a>&lt; CharType &gt;::<a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Type of the underlying character </p>
</div>
</div>
<a class="anchor" id="a106a3fe9e068530013c428661758733d"></a><!-- doxytag: member="boost::locale::collator::string_type" ref="a106a3fe9e068530013c428661758733d" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType &gt; </div>
<table class="memname">
<tr>
<td class="memname">typedef std::basic_string&lt;CharType&gt; <a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator</a>&lt; CharType &gt;::<a class="el" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Type of string used with this facet </p>
</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a25a8b21a756756e850a7488a54610053"></a><!-- doxytag: member="boost::locale::collator::collator" ref="a25a8b21a756756e850a7488a54610053" args="(size_t refs=0)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType &gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator</a>&lt; CharType &gt;::<a class="el" href="classboost_1_1locale_1_1collator.html">collator</a> </td>
<td>(</td>
<td class="paramtype">size_t&nbsp;</td>
<td class="paramname"> <em>refs</em> = <code>0</code></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>constructor of the collator object </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ab90dc7bb909a71d3cd9a5e8d7b2eb80e"></a><!-- doxytag: member="boost::locale::collator::compare" ref="ab90dc7bb909a71d3cd9a5e8d7b2eb80e" args="(level_type level, char_type const *b1, char_type const *e1, char_type const *b2, char_type const *e2) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType &gt; </div>
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator</a>&lt; CharType &gt;::compare </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a>&nbsp;</td>
<td class="paramname"> <em>level</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *&nbsp;</td>
<td class="paramname"> <em>b1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *&nbsp;</td>
<td class="paramname"> <em>e1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *&nbsp;</td>
<td class="paramname"> <em>b2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *&nbsp;</td>
<td class="paramname"> <em>e2</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Compare two strings in rage [b1,e1), [b2,e2) according using a collation level <em>level</em>. Calls do_compare</p>
<p>Returns -1 if the first of the two strings sorts before the seconds, returns 1 if sorts after and 0 if they considered equal. </p>
</div>
</div>
<a class="anchor" id="a9ccdfec693cdc5a71b5adc1f083881bf"></a><!-- doxytag: member="boost::locale::collator::compare" ref="a9ccdfec693cdc5a71b5adc1f083881bf" args="(level_type level, string_type const &amp;l, string_type const &amp;r) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType &gt; </div>
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator</a>&lt; CharType &gt;::compare </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a>&nbsp;</td>
<td class="paramname"> <em>level</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a> const &amp;&nbsp;</td>
<td class="paramname"> <em>l</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a> const &amp;&nbsp;</td>
<td class="paramname"> <em>r</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Compare two strings <em>l</em> and <em>r</em> using collation level <em>level</em> </p>
<p>Returns -1 if the first of the two strings sorts before the seconds, returns 1 if sorts after and 0 if they considered equal. </p>
</div>
</div>
<a class="anchor" id="a5d04cf6c4ab84cf3eac20be402ac6bf9"></a><!-- doxytag: member="boost::locale::collator::do_compare" ref="a5d04cf6c4ab84cf3eac20be402ac6bf9" args="(level_type level, char_type const *b1, char_type const *e1, char_type const *b2, char_type const *e2) const =0" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType &gt; </div>
<table class="memname">
<tr>
<td class="memname">virtual int <a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator</a>&lt; CharType &gt;::do_compare </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a>&nbsp;</td>
<td class="paramname"> <em>level</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *&nbsp;</td>
<td class="paramname"> <em>b1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *&nbsp;</td>
<td class="paramname"> <em>e1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *&nbsp;</td>
<td class="paramname"> <em>b2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *&nbsp;</td>
<td class="paramname"> <em>e2</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [protected, pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Actual function that performs comparison between the strings. For details see compare member function. Can be overridden. </p>
</div>
</div>
<a class="anchor" id="ada3a683bed35789e081b710a8e9a9a07"></a><!-- doxytag: member="boost::locale::collator::do_compare" ref="ada3a683bed35789e081b710a8e9a9a07" args="(char_type const *b1, char_type const *e1, char_type const *b2, char_type const *e2) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType &gt; </div>
<table class="memname">
<tr>
<td class="memname">virtual int <a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator</a>&lt; CharType &gt;::do_compare </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *&nbsp;</td>
<td class="paramname"> <em>b1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *&nbsp;</td>
<td class="paramname"> <em>e1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *&nbsp;</td>
<td class="paramname"> <em>b2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *&nbsp;</td>
<td class="paramname"> <em>e2</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [inline, protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>This function is used to override default collation function that does not take in account collation level. Uses primary level </p>
</div>
</div>
<a class="anchor" id="aa093cd4ed0b4be4a5e38f0f04a56ac0b"></a><!-- doxytag: member="boost::locale::collator::do_hash" ref="aa093cd4ed0b4be4a5e38f0f04a56ac0b" args="(char_type const *b, char_type const *e) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType &gt; </div>
<table class="memname">
<tr>
<td class="memname">virtual long <a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator</a>&lt; CharType &gt;::do_hash </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *&nbsp;</td>
<td class="paramname"> <em>b</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *&nbsp;</td>
<td class="paramname"> <em>e</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [inline, protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>This function is used to override default collation function that does not take in account collation level. Uses primary level </p>
</div>
</div>
<a class="anchor" id="a7748d5a6ef0d4dd149096b080938d4c4"></a><!-- doxytag: member="boost::locale::collator::do_hash" ref="a7748d5a6ef0d4dd149096b080938d4c4" args="(level_type level, char_type const *b, char_type const *e) const =0" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType &gt; </div>
<table class="memname">
<tr>
<td class="memname">virtual long <a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator</a>&lt; CharType &gt;::do_hash </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a>&nbsp;</td>
<td class="paramname"> <em>level</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *&nbsp;</td>
<td class="paramname"> <em>b</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *&nbsp;</td>
<td class="paramname"> <em>e</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [protected, pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Actual function that calculates hash. For details see hash member function. Can be overridden. </p>
</div>
</div>
<a class="anchor" id="a84b5cb6ff01cf1a1330e1556a2c674d5"></a><!-- doxytag: member="boost::locale::collator::do_transform" ref="a84b5cb6ff01cf1a1330e1556a2c674d5" args="(char_type const *b, char_type const *e) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType &gt; </div>
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a> <a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator</a>&lt; CharType &gt;::do_transform </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *&nbsp;</td>
<td class="paramname"> <em>b</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *&nbsp;</td>
<td class="paramname"> <em>e</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [inline, protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>This function is used to override default collation function that does not take in account collation level. Uses primary level </p>
</div>
</div>
<a class="anchor" id="a0ee27b7bc751b7a7fda4de1b0d896d57"></a><!-- doxytag: member="boost::locale::collator::do_transform" ref="a0ee27b7bc751b7a7fda4de1b0d896d57" args="(level_type level, char_type const *b, char_type const *e) const =0" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType &gt; </div>
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a> <a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator</a>&lt; CharType &gt;::do_transform </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a>&nbsp;</td>
<td class="paramname"> <em>level</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *&nbsp;</td>
<td class="paramname"> <em>b</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *&nbsp;</td>
<td class="paramname"> <em>e</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [protected, pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Actual function that performs transformation. For details see transform member function. Can be overridden. </p>
</div>
</div>
<a class="anchor" id="a89752e2023643f972b6cc8024340d5d4"></a><!-- doxytag: member="boost::locale::collator::hash" ref="a89752e2023643f972b6cc8024340d5d4" args="(level_type level, char_type const *b, char_type const *e) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType &gt; </div>
<table class="memname">
<tr>
<td class="memname">long <a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator</a>&lt; CharType &gt;::hash </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a>&nbsp;</td>
<td class="paramname"> <em>level</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *&nbsp;</td>
<td class="paramname"> <em>b</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *&nbsp;</td>
<td class="paramname"> <em>e</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Calculate a hash of a text in range [b,e). The value can be used for collation sensitive string comparison.</p>
<p>If compare(level,b1,e1,b2,e2) == 0 then hash(level,b1,e1) == hash(level,b2,e2)</p>
<p>Calls do_hash </p>
</div>
</div>
<a class="anchor" id="a76000f6cf10bfe63dd7fd10652de3f5b"></a><!-- doxytag: member="boost::locale::collator::hash" ref="a76000f6cf10bfe63dd7fd10652de3f5b" args="(level_type level, string_type const &amp;s) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType &gt; </div>
<table class="memname">
<tr>
<td class="memname">long <a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator</a>&lt; CharType &gt;::hash </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a>&nbsp;</td>
<td class="paramname"> <em>level</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a> const &amp;&nbsp;</td>
<td class="paramname"> <em>s</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Calculate a hash that can be used for collation sensitive string comparison of a string <em>s</em> </p>
<p>If compare(level,s1,s2) == 0 then hash(level,s1) == hash(level,s2) </p>
</div>
</div>
<a class="anchor" id="aa9976b4fa0fba6c5d1a1dea9b5ef02ca"></a><!-- doxytag: member="boost::locale::collator::transform" ref="aa9976b4fa0fba6c5d1a1dea9b5ef02ca" args="(level_type level, string_type const &amp;s) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType &gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a> <a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator</a>&lt; CharType &gt;::transform </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a>&nbsp;</td>
<td class="paramname"> <em>level</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a> const &amp;&nbsp;</td>
<td class="paramname"> <em>s</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a binary string from string <em>s</em>, that can be compared to other, useful for collation of multiple strings.</p>
<p>The transformation follows these rules: </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classboost_1_1locale_1_1collator.html#ab90dc7bb909a71d3cd9a5e8d7b2eb80e">compare</a>(level,s1,s2) == sign( <a class="code" href="classboost_1_1locale_1_1collator.html#a8dc6443fb193616332ca50f207a9b189">transform</a>(level,s1).<a class="code" href="classboost_1_1locale_1_1collator.html#ab90dc7bb909a71d3cd9a5e8d7b2eb80e">compare</a>(<a class="code" href="classboost_1_1locale_1_1collator.html#a8dc6443fb193616332ca50f207a9b189">transform</a>(level,s2)) );
</pre></div>
</div>
</div>
<a class="anchor" id="a8dc6443fb193616332ca50f207a9b189"></a><!-- doxytag: member="boost::locale::collator::transform" ref="a8dc6443fb193616332ca50f207a9b189" args="(level_type level, char_type const *b, char_type const *e) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType &gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a> <a class="el" href="classboost_1_1locale_1_1collator.html">boost::locale::collator</a>&lt; CharType &gt;::transform </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a>&nbsp;</td>
<td class="paramname"> <em>level</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *&nbsp;</td>
<td class="paramname"> <em>b</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> const *&nbsp;</td>
<td class="paramname"> <em>e</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a binary string that can be compared to other in order to get collation order. The string is created for text in range [b,e). It is useful for collation of multiple strings for text.</p>
<p>The transformation follows these rules: </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classboost_1_1locale_1_1collator.html#ab90dc7bb909a71d3cd9a5e8d7b2eb80e">compare</a>(level,b1,e1,b2,e2) == sign( <a class="code" href="classboost_1_1locale_1_1collator.html#a8dc6443fb193616332ca50f207a9b189">transform</a>(level,b1,e1).<a class="code" href="classboost_1_1locale_1_1collator.html#ab90dc7bb909a71d3cd9a5e8d7b2eb80e">compare</a>(<a class="code" href="classboost_1_1locale_1_1collator.html#a8dc6443fb193616332ca50f207a9b189">transform</a>(level,b2,e2)) );
</pre></div><p>Calls do_transform </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/<a class="el" href="collator_8hpp_source.html">collator.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 635 B

View File

@@ -0,0 +1,85 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::collator_base Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1collator__base.html">boost::locale::collator_base</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22a3c209055ff840e311581ab43013026f2">identical</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1collator__base.html">boost::locale::collator_base</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a> enum name</td><td><a class="el" href="classboost_1_1locale_1_1collator__base.html">boost::locale::collator_base</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22ae57e842f398a27ee490208f5af39675b">primary</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1collator__base.html">boost::locale::collator_base</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22a22ca1875fd63667fbb018df16b0aedba">quaternary</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1collator__base.html">boost::locale::collator_base</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22ad8e103443d69f03f00ac4b68a7181866">secondary</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1collator__base.html">boost::locale::collator_base</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22a3a852752e9663b7b3340c435d0cfe36a">tertiary</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1collator__base.html">boost::locale::collator_base</a></td><td></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,158 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::collator_base Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1collator__base.html">boost::locale::collator_base</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> </div>
<div class="headertitle">
<h1>boost::locale::collator_base Class Reference<br/>
<small>
[<a class="el" href="group__collation.html">Collation</a>]</small>
</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::collator_base" -->
<p>a base class that includes collation level flags
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="collator_8hpp_source.html">boost/locale/collator.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for boost::locale::collator_base:</div>
<div class="dyncontent">
<div class="center">
<img src="classboost_1_1locale_1_1collator__base.png" usemap="#boost::locale::collator_base_map" alt=""/>
<map id="boost::locale::collator_base_map" name="boost::locale::collator_base_map">
<area href="classboost_1_1locale_1_1collator.html" alt="boost::locale::collator&lt; CharType &gt;" shape="rect" coords="0,56,210,80"/>
</map>
</div>
<p><a href="classboost_1_1locale_1_1collator__base-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a> { <br/>
&nbsp;&nbsp;<a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22ae57e842f398a27ee490208f5af39675b">primary</a> = 0,
<a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22ad8e103443d69f03f00ac4b68a7181866">secondary</a> = 1,
<a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22a3a852752e9663b7b3340c435d0cfe36a">tertiary</a> = 2,
<a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22a22ca1875fd63667fbb018df16b0aedba">quaternary</a> = 3,
<br/>
&nbsp;&nbsp;<a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22a3c209055ff840e311581ab43013026f2">identical</a> = 4
<br/>
}</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>a base class that includes collation level flags </p>
<hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a73c12de809733273304fef7f0af28b22"></a><!-- doxytag: member="boost::locale::collator_base::level_type" ref="a73c12de809733273304fef7f0af28b22" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">boost::locale::collator_base::level_type</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Unicode collation level types </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a73c12de809733273304fef7f0af28b22ae57e842f398a27ee490208f5af39675b"></a><!-- doxytag: member="primary" ref="a73c12de809733273304fef7f0af28b22ae57e842f398a27ee490208f5af39675b" args="" -->primary</em>&nbsp;</td><td>
<p>1st collation level: base letters </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a73c12de809733273304fef7f0af28b22ad8e103443d69f03f00ac4b68a7181866"></a><!-- doxytag: member="secondary" ref="a73c12de809733273304fef7f0af28b22ad8e103443d69f03f00ac4b68a7181866" args="" -->secondary</em>&nbsp;</td><td>
<p>2nd collation level: letters and accents </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a73c12de809733273304fef7f0af28b22a3a852752e9663b7b3340c435d0cfe36a"></a><!-- doxytag: member="tertiary" ref="a73c12de809733273304fef7f0af28b22a3a852752e9663b7b3340c435d0cfe36a" args="" -->tertiary</em>&nbsp;</td><td>
<p>3rd collation level: letters, accents and case </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a73c12de809733273304fef7f0af28b22a22ca1875fd63667fbb018df16b0aedba"></a><!-- doxytag: member="quaternary" ref="a73c12de809733273304fef7f0af28b22a22ca1875fd63667fbb018df16b0aedba" args="" -->quaternary</em>&nbsp;</td><td>
<p>4th collation level: letters, accents, case and punctuation </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a73c12de809733273304fef7f0af28b22a3c209055ff840e311581ab43013026f2"></a><!-- doxytag: member="identical" ref="a73c12de809733273304fef7f0af28b22a3c209055ff840e311581ab43013026f2" args="" -->identical</em>&nbsp;</td><td>
<p>identical collation level: include code-point comparison </p>
</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/<a class="el" href="collator_8hpp_source.html">collator.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 636 B

View File

@@ -0,0 +1,80 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::conv::conversion_error Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1conv_1_1conversion__error.html">boost::locale::conv::conversion_error</a>, including all inherited members.<table>
<tr bgcolor="#f0f0f0"><td><b>conversion_error</b>() (defined in <a class="el" href="classboost_1_1locale_1_1conv_1_1conversion__error.html">boost::locale::conv::conversion_error</a>)</td><td><a class="el" href="classboost_1_1locale_1_1conv_1_1conversion__error.html">boost::locale::conv::conversion_error</a></td><td><code> [inline]</code></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,103 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::conv::conversion_error Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="namespaceboost_1_1locale_1_1conv.html">conv</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1conv_1_1conversion__error.html">boost::locale::conv::conversion_error</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::conv::conversion_error Class Reference<br/>
<small>
[<a class="el" href="group__codepage.html">Character conversion functions</a>]</small>
</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::conv::conversion_error" -->
<p>The excepton that is thrown in case of conversion error.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="encoding_8hpp_source.html">boost/locale/encoding.hpp</a>&gt;</code></p>
<p><a href="classboost_1_1locale_1_1conv_1_1conversion__error-members.html">List of all members.</a></p>
<table class="memberdecls">
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>The excepton that is thrown in case of conversion error. </p>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/<a class="el" href="encoding_8hpp_source.html">encoding.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,80 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::conv::invalid_charset_error Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1conv_1_1invalid__charset__error.html">boost::locale::conv::invalid_charset_error</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1conv_1_1invalid__charset__error.html#ae951e3a99a115a60cc87d4d258764681">invalid_charset_error</a>(std::string charset)</td><td><a class="el" href="classboost_1_1locale_1_1conv_1_1invalid__charset__error.html">boost::locale::conv::invalid_charset_error</a></td><td><code> [inline]</code></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,110 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::conv::invalid_charset_error Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="namespaceboost_1_1locale_1_1conv.html">conv</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1conv_1_1invalid__charset__error.html">boost::locale::conv::invalid_charset_error</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<h1>boost::locale::conv::invalid_charset_error Class Reference<br/>
<small>
[<a class="el" href="group__codepage.html">Character conversion functions</a>]</small>
</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::conv::invalid_charset_error" -->
<p>This exception is thrown in case of use of unsupported or invalid character set.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="encoding_8hpp_source.html">boost/locale/encoding.hpp</a>&gt;</code></p>
<p><a href="classboost_1_1locale_1_1conv_1_1invalid__charset__error-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae951e3a99a115a60cc87d4d258764681"></a><!-- doxytag: member="boost::locale::conv::invalid_charset_error::invalid_charset_error" ref="ae951e3a99a115a60cc87d4d258764681" args="(std::string charset)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1conv_1_1invalid__charset__error.html#ae951e3a99a115a60cc87d4d258764681">invalid_charset_error</a> (std::string charset)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create an error for charset <em>charset</em>. <br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>This exception is thrown in case of use of unsupported or invalid character set. </p>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/<a class="el" href="encoding_8hpp_source.html">encoding.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,88 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::converter&lt; Char &gt; Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1converter.html">boost::locale::converter&lt; Char &gt;</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669ba91936aed5b7c3a82b4d2c2354ead03d3">case_folding</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1converter__base.html">boost::locale::converter_base</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669b">conversion_type</a> enum name</td><td><a class="el" href="classboost_1_1locale_1_1converter__base.html">boost::locale::converter_base</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1converter.html#a38dcc87504308ad5a51f3190e3c0da4b">convert</a>(conversion_type how, Char const *begin, Char const *end, int flags=0) const =0</td><td><a class="el" href="classboost_1_1locale_1_1converter.html">boost::locale::converter&lt; Char &gt;</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1converter.html#aba25fd4a18937543823cd61bef72c628">converter</a>(size_t refs=0)</td><td><a class="el" href="classboost_1_1locale_1_1converter.html">boost::locale::converter&lt; Char &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1converter.html#a0ab17b265161bb2c5d7a233710d2740b">id</a></td><td><a class="el" href="classboost_1_1locale_1_1converter.html">boost::locale::converter&lt; Char &gt;</a></td><td><code> [static]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669ba2c5c38c6bc6ca01fb9e573c148ba8ebe">lower_case</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1converter__base.html">boost::locale::converter_base</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669bae20bf7eface68062a0b9f2396833354a">normalization</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1converter__base.html">boost::locale::converter_base</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669bac136b257286085de7bd7eb4a7876dfa7">title_case</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1converter__base.html">boost::locale::converter_base</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669ba0fee54e09732910ab30856d0e34c8ad2">upper_case</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1converter__base.html">boost::locale::converter_base</a></td><td></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,172 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::converter&lt; Char &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1converter.html">boost::locale::converter&lt; Char &gt;</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> </div>
<div class="headertitle">
<h1>boost::locale::converter&lt; Char &gt; Class Template Reference<br/>
<small>
[<a class="el" href="group__convert.html">Text Conversions</a>]</small>
</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::converter" --><!-- doxytag: inherits="boost::locale::converter_base" -->
<p>The facet that implements text manipulation.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="conversion_8hpp_source.html">boost/locale/conversion.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for boost::locale::converter&lt; Char &gt;:</div>
<div class="dyncontent">
<div class="center">
<img src="classboost_1_1locale_1_1converter.png" usemap="#boost::locale::converter&lt; Char &gt;_map" alt=""/>
<map id="boost::locale::converter&lt; Char &gt;_map" name="boost::locale::converter&lt; Char &gt;_map">
<area href="classboost_1_1locale_1_1converter__base.html" alt="boost::locale::converter_base" shape="rect" coords="0,0,195,24"/>
</map>
</div>
<p><a href="classboost_1_1locale_1_1converter-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aba25fd4a18937543823cd61bef72c628"></a><!-- doxytag: member="boost::locale::converter::converter" ref="aba25fd4a18937543823cd61bef72c628" args="(size_t refs=0)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1converter.html#aba25fd4a18937543823cd61bef72c628">converter</a> (size_t refs=0)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Standard constructor. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual std::basic_string&lt; Char &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1converter.html#a38dcc87504308ad5a51f3190e3c0da4b">convert</a> (<a class="el" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669b">conversion_type</a> how, Char const *begin, Char const *end, int flags=0) const =0</td></tr>
<tr><td colspan="2"><h2><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0ab17b265161bb2c5d7a233710d2740b"></a><!-- doxytag: member="boost::locale::converter::id" ref="a0ab17b265161bb2c5d7a233710d2740b" args="" -->
static std::locale::id&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1converter.html#a0ab17b265161bb2c5d7a233710d2740b">id</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Locale identification. <br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;typename Char&gt;<br/>
class boost::locale::converter&lt; Char &gt;</h3>
<p>The facet that implements text manipulation. </p>
<p>It is used to performs text conversion operations defined by <a class="el" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669b">conversion_type</a>. It is specialized for four types of characters <code>char</code>, <code>wchar_t</code>, <code>char16_t</code>, <code>char32_t</code> </p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a38dcc87504308ad5a51f3190e3c0da4b"></a><!-- doxytag: member="boost::locale::converter::convert" ref="a38dcc87504308ad5a51f3190e3c0da4b" args="(conversion_type how, Char const *begin, Char const *end, int flags=0) const =0" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Char &gt; </div>
<table class="memname">
<tr>
<td class="memname">virtual std::basic_string&lt;Char&gt; <a class="el" href="classboost_1_1locale_1_1converter.html">boost::locale::converter</a>&lt; Char &gt;::convert </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669b">conversion_type</a>&nbsp;</td>
<td class="paramname"> <em>how</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">Char const *&nbsp;</td>
<td class="paramname"> <em>begin</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">Char const *&nbsp;</td>
<td class="paramname"> <em>end</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&nbsp;</td>
<td class="paramname"> <em>flags</em> = <code>0</code></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Convert text in range [<em>begin</em>, <em>end</em>) according to conversion method <em>how</em>. Parameter <em>flags</em> is used for specification of normalization method like nfd, nfc etc. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/<a class="el" href="conversion_8hpp_source.html">conversion.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 623 B

View File

@@ -0,0 +1,85 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::converter_base Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1converter__base.html">boost::locale::converter_base</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669ba91936aed5b7c3a82b4d2c2354ead03d3">case_folding</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1converter__base.html">boost::locale::converter_base</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669b">conversion_type</a> enum name</td><td><a class="el" href="classboost_1_1locale_1_1converter__base.html">boost::locale::converter_base</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669ba2c5c38c6bc6ca01fb9e573c148ba8ebe">lower_case</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1converter__base.html">boost::locale::converter_base</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669bae20bf7eface68062a0b9f2396833354a">normalization</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1converter__base.html">boost::locale::converter_base</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669bac136b257286085de7bd7eb4a7876dfa7">title_case</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1converter__base.html">boost::locale::converter_base</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669ba0fee54e09732910ab30856d0e34c8ad2">upper_case</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1converter__base.html">boost::locale::converter_base</a></td><td></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,158 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::converter_base Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1converter__base.html">boost::locale::converter_base</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> </div>
<div class="headertitle">
<h1>boost::locale::converter_base Class Reference<br/>
<small>
[<a class="el" href="group__convert.html">Text Conversions</a>]</small>
</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::converter_base" -->
<p>This class provides base flags for text manipulation. It is used as base for converter facet.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="conversion_8hpp_source.html">boost/locale/conversion.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for boost::locale::converter_base:</div>
<div class="dyncontent">
<div class="center">
<img src="classboost_1_1locale_1_1converter__base.png" usemap="#boost::locale::converter_base_map" alt=""/>
<map id="boost::locale::converter_base_map" name="boost::locale::converter_base_map">
<area href="classboost_1_1locale_1_1converter.html" alt="boost::locale::converter&lt; Char &gt;" shape="rect" coords="0,56,195,80"/>
</map>
</div>
<p><a href="classboost_1_1locale_1_1converter__base-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669b">conversion_type</a> { <br/>
&nbsp;&nbsp;<a class="el" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669bae20bf7eface68062a0b9f2396833354a">normalization</a>,
<a class="el" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669ba0fee54e09732910ab30856d0e34c8ad2">upper_case</a>,
<a class="el" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669ba2c5c38c6bc6ca01fb9e573c148ba8ebe">lower_case</a>,
<a class="el" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669ba91936aed5b7c3a82b4d2c2354ead03d3">case_folding</a>,
<br/>
&nbsp;&nbsp;<a class="el" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669bac136b257286085de7bd7eb4a7876dfa7">title_case</a>
<br/>
}</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>This class provides base flags for text manipulation. It is used as base for converter facet. </p>
<hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a726bc2bbcbb6f1e550cca14163fb669b"></a><!-- doxytag: member="boost::locale::converter_base::conversion_type" ref="a726bc2bbcbb6f1e550cca14163fb669b" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669b">boost::locale::converter_base::conversion_type</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>The flag used for facet - the type of operation to perform </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a726bc2bbcbb6f1e550cca14163fb669bae20bf7eface68062a0b9f2396833354a"></a><!-- doxytag: member="normalization" ref="a726bc2bbcbb6f1e550cca14163fb669bae20bf7eface68062a0b9f2396833354a" args="" -->normalization</em>&nbsp;</td><td>
<p>Apply Unicode normalization on the text. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a726bc2bbcbb6f1e550cca14163fb669ba0fee54e09732910ab30856d0e34c8ad2"></a><!-- doxytag: member="upper_case" ref="a726bc2bbcbb6f1e550cca14163fb669ba0fee54e09732910ab30856d0e34c8ad2" args="" -->upper_case</em>&nbsp;</td><td>
<p>Convert text to upper case. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a726bc2bbcbb6f1e550cca14163fb669ba2c5c38c6bc6ca01fb9e573c148ba8ebe"></a><!-- doxytag: member="lower_case" ref="a726bc2bbcbb6f1e550cca14163fb669ba2c5c38c6bc6ca01fb9e573c148ba8ebe" args="" -->lower_case</em>&nbsp;</td><td>
<p>Convert text to lower case. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a726bc2bbcbb6f1e550cca14163fb669ba91936aed5b7c3a82b4d2c2354ead03d3"></a><!-- doxytag: member="case_folding" ref="a726bc2bbcbb6f1e550cca14163fb669ba91936aed5b7c3a82b4d2c2354ead03d3" args="" -->case_folding</em>&nbsp;</td><td>
<p>Fold case in the text. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a726bc2bbcbb6f1e550cca14163fb669bac136b257286085de7bd7eb4a7876dfa7"></a><!-- doxytag: member="title_case" ref="a726bc2bbcbb6f1e550cca14163fb669bac136b257286085de7bd7eb4a7876dfa7" args="" -->title_case</em>&nbsp;</td><td>
<p>Convert text to title case. </p>
</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/<a class="el" href="conversion_8hpp_source.html">conversion.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 B

View File

@@ -0,0 +1,130 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::date_time Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#ae7a3b74e7512ddc4d618eb1f51c3d2b0">date_time</a>()</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a7d98e552f2ff8a421a5c226102ba0138">date_time</a>(date_time const &amp;other)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a45008e76b980e7487e3d61b8372d67ae">date_time</a>(date_time const &amp;other, date_time_period_set const &amp;set)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#addfee06ea6efa5fdca252191176b5756">date_time</a>(double time)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#ab806af3aee6d70057d1f8e6fbfd09216">date_time</a>(double time, calendar const &amp;cal)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#ada52e84093a2775db6e0b3c399b0b9cf">date_time</a>(calendar const &amp;cal)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#abfa9db762ab227427778d8fc3c2bf73d">date_time</a>(date_time_period_set const &amp;set)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a871745debde77a28f5fbc6e2b2a5f869">date_time</a>(date_time_period_set const &amp;set, calendar const &amp;cal)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a36df44f891d2a39ca16f57e568b67a3d">difference</a>(date_time const &amp;other, period::period_type f) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#af6436a546d3b944238f9fa952e5e18bd">get</a>(period::period_type f) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a047e6e010df55fee166dcb3c9e7d3b95">is_in_daylight_saving_time</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#adb258ce11408b62bc0f14a60a05f0752">maximum</a>(period::period_type f) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a3363a0c562300095432a17e472d2e52d">minimum</a>(period::period_type f) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a289953d80af568f86ddf533c0b161663">operator!=</a>(date_time const &amp;other) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a0df3596add1804b1f64d363fea181fe2">operator+</a>(period::period_type f) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a4e23796608a8ef0cbd5338f21d220a73">operator+</a>(date_time_period const &amp;v) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#aa362fdfe044d1c56c4fe939bd3d406bc">operator+</a>(date_time_period_set const &amp;v) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#ab3117067df65d1c33e89ab375f03d27c">operator+=</a>(period::period_type f)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a7116785ff9f8b5f403e10a24b9b4477d">operator+=</a>(date_time_period const &amp;v)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a1e5c7d2a8fed92d1e71f3dda2548b637">operator+=</a>(date_time_period_set const &amp;v)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#ac870c0fcba5814cd91bb9c63823e280a">operator-</a>(period::period_type f) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#af83662eb6a5d2298cda9159f5277a563">operator-</a>(date_time_period const &amp;v) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a464e16b35656568b21f34cb8b3e2c81a">operator-</a>(date_time_period_set const &amp;v) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a38468aff1a820dc1c41a2a8280120848">operator-=</a>(period::period_type f)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a6780aae474f33f0a64e7b457789d7524">operator-=</a>(date_time_period const &amp;v)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#ae03dfadaf23e2ff93ae3d456dd3eb05f">operator-=</a>(date_time_period_set const &amp;v)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#ac2a3a8f6fdba552b19e478bb6757523e">operator/</a>(period::period_type f) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a7b27ad955eade1013a43336e2a17adec">operator&lt;</a>(date_time const &amp;other) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a22d2b503e2d58c7e2983b89c69ed13bd">operator&lt;&lt;</a>(period::period_type f) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#afc9286cc1d2ad907200a3d9ba5d91c00">operator&lt;&lt;</a>(date_time_period const &amp;v) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a2fb78903ee3c27d320798a72bb29a0b0">operator&lt;&lt;</a>(date_time_period_set const &amp;v) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#ae71279d6e8dcc984fe3703b61d545416">operator&lt;&lt;=</a>(period::period_type f)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#aa95d61963c07fb1e39d01d099a4c281a">operator&lt;&lt;=</a>(date_time_period const &amp;v)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a048c4e2a1967351e84006177c14ef5e2">operator&lt;&lt;=</a>(date_time_period_set const &amp;v)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a76c5b0bbc01bd561c25cb83f26e5f535">operator&lt;=</a>(date_time const &amp;other) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#abe5d459e7552ca13b127c682e0d9caab">operator=</a>(date_time const &amp;other)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a2f7ccfb9e28fa3bb172be9f0446caafd">operator=</a>(date_time_period_set const &amp;f)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a4f11ded4c5383cc3fcd3684d0aa43892">operator==</a>(date_time const &amp;other) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a1907c677ae9b7d0736705df8ad58b3aa">operator&gt;</a>(date_time const &amp;other) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a4d807fa280bbe8d88efbc9a05f4a2d7c">operator&gt;=</a>(date_time const &amp;other) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a3a53ba943cb5140bafbfbda3d44b4083">operator&gt;&gt;</a>(period::period_type f) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a50f73791a4a5b4b4a32483030d20e324">operator&gt;&gt;</a>(date_time_period const &amp;v) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#ad7132f1fb92d1703925b4d3d054c0c19">operator&gt;&gt;</a>(date_time_period_set const &amp;v) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a178faa979338310b9a92370a3618fa0e">operator&gt;&gt;=</a>(period::period_type f)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a4605cf04447095908cba7a1cba700b9e">operator&gt;&gt;=</a>(date_time_period const &amp;v)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a797242365127dae7142f0a950c4e4e78">operator&gt;&gt;=</a>(date_time_period_set const &amp;v)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a4c0ed3be4d5d3bb44014a2ea12927ff8">set</a>(period::period_type f, int v)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a704626c84b012080f5e0b73db3d080fb">swap</a>(date_time &amp;other)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a17aa2b54462ebcf1860f8e4db9f7868e">time</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time.html#a71bc51cd2ef635dfb0da6c0b740dcb5f">time</a>(double v)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>~date_time</b>() (defined in <a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a>)</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">boost::locale::date_time</a></td><td></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,84 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::date_time_duration Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1date__time__duration.html">boost::locale::date_time_duration</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time__duration.html#ac4b0d49c998032003553e8faf0e5f2cb">date_time_duration</a>(date_time const &amp;first, date_time const &amp;second)</td><td><a class="el" href="classboost_1_1locale_1_1date__time__duration.html">boost::locale::date_time_duration</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time__duration.html#a100bac2003f4e07ea498e10d0dd1f6b1">end</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1date__time__duration.html">boost::locale::date_time_duration</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time__duration.html#a5d1b702c281d205e1dafbb15ce85b447">get</a>(period::period_type f) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time__duration.html">boost::locale::date_time_duration</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time__duration.html#ac1a04091cc80b98f6faf7e5e73ce5f35">operator/</a>(period::period_type f) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time__duration.html">boost::locale::date_time_duration</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time__duration.html#afc2f075595d1774c866250d192b9db31">start</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1date__time__duration.html">boost::locale::date_time_duration</a></td><td><code> [inline]</code></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,217 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::date_time_duration Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1date__time__duration.html">boost::locale::date_time_duration</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<h1>boost::locale::date_time_duration Class Reference<br/>
<small>
[<a class="el" href="group__date__time.html">Date, Time, Timezone and Calendar manipulations</a>]</small>
</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::date_time_duration" -->
<p>This class represents a period: a pair of two <a class="el" href="classboost_1_1locale_1_1date__time.html" title="this class represents a date time and allows to perform various operation according to the locale set...">date_time</a> objects.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="date__time_8hpp_source.html">boost/locale/date_time.hpp</a>&gt;</code></p>
<p><a href="classboost_1_1locale_1_1date__time__duration-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1date__time__duration.html#ac4b0d49c998032003553e8faf0e5f2cb">date_time_duration</a> (<a class="el" href="classboost_1_1locale_1_1date__time.html">date_time</a> const &amp;first, <a class="el" href="classboost_1_1locale_1_1date__time.html">date_time</a> const &amp;second)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1date__time__duration.html#a5d1b702c281d205e1dafbb15ce85b447">get</a> (<a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">period::period_type</a> f) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1date__time__duration.html#ac1a04091cc80b98f6faf7e5e73ce5f35">operator/</a> (<a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">period::period_type</a> f) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classboost_1_1locale_1_1date__time.html">date_time</a> const &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1date__time__duration.html#afc2f075595d1774c866250d192b9db31">start</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classboost_1_1locale_1_1date__time.html">date_time</a> const &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1date__time__duration.html#a100bac2003f4e07ea498e10d0dd1f6b1">end</a> () const </td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>This class represents a period: a pair of two <a class="el" href="classboost_1_1locale_1_1date__time.html" title="this class represents a date time and allows to perform various operation according to the locale set...">date_time</a> objects. </p>
<p>It is generally used as syntactic sugar to calculate difference between two dates.</p>
<p>Note: it stores references to the original objects, so it is not recommended to be used outside of the equation you calculate the difference in. </p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ac4b0d49c998032003553e8faf0e5f2cb"></a><!-- doxytag: member="boost::locale::date_time_duration::date_time_duration" ref="ac4b0d49c998032003553e8faf0e5f2cb" args="(date_time const &amp;first, date_time const &amp;second)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">boost::locale::date_time_duration::date_time_duration </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1date__time.html">date_time</a> const &amp;&nbsp;</td>
<td class="paramname"> <em>first</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1date__time.html">date_time</a> const &amp;&nbsp;</td>
<td class="paramname"> <em>second</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create an object were <em>first</em> represents earlier point on time line and <em>second</em> is later point. </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a100bac2003f4e07ea498e10d0dd1f6b1"></a><!-- doxytag: member="boost::locale::date_time_duration::end" ref="a100bac2003f4e07ea498e10d0dd1f6b1" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classboost_1_1locale_1_1date__time.html">date_time</a> const&amp; boost::locale::date_time_duration::end </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get ending point </p>
</div>
</div>
<a class="anchor" id="a5d1b702c281d205e1dafbb15ce85b447"></a><!-- doxytag: member="boost::locale::date_time_duration::get" ref="a5d1b702c281d205e1dafbb15ce85b447" args="(period::period_type f) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int boost::locale::date_time_duration::get </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">period::period_type</a>&nbsp;</td>
<td class="paramname"> <em>f</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>find a difference in terms of period_type <em>f</em> </p>
</div>
</div>
<a class="anchor" id="ac1a04091cc80b98f6faf7e5e73ce5f35"></a><!-- doxytag: member="boost::locale::date_time_duration::operator/" ref="ac1a04091cc80b98f6faf7e5e73ce5f35" args="(period::period_type f) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int boost::locale::date_time_duration::operator/ </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">period::period_type</a>&nbsp;</td>
<td class="paramname"> <em>f</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Syntactic sugar for get(f) </p>
</div>
</div>
<a class="anchor" id="afc2f075595d1774c866250d192b9db31"></a><!-- doxytag: member="boost::locale::date_time_duration::start" ref="afc2f075595d1774c866250d192b9db31" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classboost_1_1locale_1_1date__time.html">date_time</a> const&amp; boost::locale::date_time_duration::start </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get starting point </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/<a class="el" href="date__time_8hpp_source.html">date_time.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,80 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::date_time_error Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1date__time__error.html">boost::locale::date_time_error</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time__error.html#abbd57421fc4617b23ecb33c398152dc8">date_time_error</a>(std::string const &amp;e)</td><td><a class="el" href="classboost_1_1locale_1_1date__time__error.html">boost::locale::date_time_error</a></td><td><code> [inline]</code></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,127 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::date_time_error Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1date__time__error.html">boost::locale::date_time_error</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<h1>boost::locale::date_time_error Class Reference<br/>
<small>
[<a class="el" href="group__date__time.html">Date, Time, Timezone and Calendar manipulations</a>]</small>
</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::date_time_error" -->
<p>This error is thrown in case of invalid state that occurred.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="date__time_8hpp_source.html">boost/locale/date_time.hpp</a>&gt;</code></p>
<p><a href="classboost_1_1locale_1_1date__time__error-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1date__time__error.html#abbd57421fc4617b23ecb33c398152dc8">date_time_error</a> (std::string const &amp;e)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>This error is thrown in case of invalid state that occurred. </p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="abbd57421fc4617b23ecb33c398152dc8"></a><!-- doxytag: member="boost::locale::date_time_error::date_time_error" ref="abbd57421fc4617b23ecb33c398152dc8" args="(std::string const &amp;e)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">boost::locale::date_time_error::date_time_error </td>
<td>(</td>
<td class="paramtype">std::string const &amp;&nbsp;</td>
<td class="paramname"> <em>e</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Constructor of <a class="el" href="classboost_1_1locale_1_1date__time__error.html" title="This error is thrown in case of invalid state that occurred.">date_time_error</a> class </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/<a class="el" href="date__time_8hpp_source.html">date_time.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,85 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::date_time_period_set Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1date__time__period__set.html">boost::locale::date_time_period_set</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time__period__set.html#a0e70247c1738dbf6869e6d8c04461893">add</a>(date_time_period f)</td><td><a class="el" href="classboost_1_1locale_1_1date__time__period__set.html">boost::locale::date_time_period_set</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time__period__set.html#a635b8d91c4c8da99857810e42a0aff65">date_time_period_set</a>()</td><td><a class="el" href="classboost_1_1locale_1_1date__time__period__set.html">boost::locale::date_time_period_set</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time__period__set.html#a0966962f5da78fc06121d1455efcbbae">date_time_period_set</a>(period::period_type f)</td><td><a class="el" href="classboost_1_1locale_1_1date__time__period__set.html">boost::locale::date_time_period_set</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time__period__set.html#a144842e64250343d87aaff270a9b53a0">date_time_period_set</a>(date_time_period const &amp;fl)</td><td><a class="el" href="classboost_1_1locale_1_1date__time__period__set.html">boost::locale::date_time_period_set</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time__period__set.html#a177a4c3cb2de3b5c9b5fe5738660eba4">operator[]</a>(size_t n) const </td><td><a class="el" href="classboost_1_1locale_1_1date__time__period__set.html">boost::locale::date_time_period_set</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1date__time__period__set.html#a0b726bd57ce8b631de89bbf404b8df2a">size</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1date__time__period__set.html">boost::locale::date_time_period_set</a></td><td><code> [inline]</code></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,227 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::date_time_period_set Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1date__time__period__set.html">boost::locale::date_time_period_set</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<h1>boost::locale::date_time_period_set Class Reference<br/>
<small>
[<a class="el" href="group__date__time.html">Date, Time, Timezone and Calendar manipulations</a>]</small>
</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::date_time_period_set" -->
<p>this class that represents a set of periods,
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="date__time_8hpp_source.html">boost/locale/date_time.hpp</a>&gt;</code></p>
<p><a href="classboost_1_1locale_1_1date__time__period__set-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1date__time__period__set.html#a635b8d91c4c8da99857810e42a0aff65">date_time_period_set</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1date__time__period__set.html#a0966962f5da78fc06121d1455efcbbae">date_time_period_set</a> (<a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">period::period_type</a> f)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1date__time__period__set.html#a144842e64250343d87aaff270a9b53a0">date_time_period_set</a> (<a class="el" href="structboost_1_1locale_1_1date__time__period.html">date_time_period</a> const &amp;fl)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1date__time__period__set.html#a0e70247c1738dbf6869e6d8c04461893">add</a> (<a class="el" href="structboost_1_1locale_1_1date__time__period.html">date_time_period</a> f)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1date__time__period__set.html#a0b726bd57ce8b631de89bbf404b8df2a">size</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structboost_1_1locale_1_1date__time__period.html">date_time_period</a> const &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1date__time__period__set.html#a177a4c3cb2de3b5c9b5fe5738660eba4">operator[]</a> (size_t n) const </td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>this class that represents a set of periods, </p>
<p>It is generally created by operations on periods: 1995*year + 3*month + 1*day. Note: operations are not commutative. </p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a635b8d91c4c8da99857810e42a0aff65"></a><!-- doxytag: member="boost::locale::date_time_period_set::date_time_period_set" ref="a635b8d91c4c8da99857810e42a0aff65" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">boost::locale::date_time_period_set::date_time_period_set </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Default constructor - empty set </p>
</div>
</div>
<a class="anchor" id="a0966962f5da78fc06121d1455efcbbae"></a><!-- doxytag: member="boost::locale::date_time_period_set::date_time_period_set" ref="a0966962f5da78fc06121d1455efcbbae" args="(period::period_type f)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">boost::locale::date_time_period_set::date_time_period_set </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">period::period_type</a>&nbsp;</td>
<td class="paramname"> <em>f</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a set of single period with value 1 </p>
</div>
</div>
<a class="anchor" id="a144842e64250343d87aaff270a9b53a0"></a><!-- doxytag: member="boost::locale::date_time_period_set::date_time_period_set" ref="a144842e64250343d87aaff270a9b53a0" args="(date_time_period const &amp;fl)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">boost::locale::date_time_period_set::date_time_period_set </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structboost_1_1locale_1_1date__time__period.html">date_time_period</a> const &amp;&nbsp;</td>
<td class="paramname"> <em>fl</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a set of single period <em>fl</em> </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a0e70247c1738dbf6869e6d8c04461893"></a><!-- doxytag: member="boost::locale::date_time_period_set::add" ref="a0e70247c1738dbf6869e6d8c04461893" args="(date_time_period f)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void boost::locale::date_time_period_set::add </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structboost_1_1locale_1_1date__time__period.html">date_time_period</a>&nbsp;</td>
<td class="paramname"> <em>f</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Append <a class="el" href="structboost_1_1locale_1_1date__time__period.html" title="This class represents a pair of period_type and the integer values that describes its amount...">date_time_period</a> <em>f</em> to the set </p>
</div>
</div>
<a class="anchor" id="a177a4c3cb2de3b5c9b5fe5738660eba4"></a><!-- doxytag: member="boost::locale::date_time_period_set::operator[]" ref="a177a4c3cb2de3b5c9b5fe5738660eba4" args="(size_t n) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structboost_1_1locale_1_1date__time__period.html">date_time_period</a> const&amp; boost::locale::date_time_period_set::operator[] </td>
<td>(</td>
<td class="paramtype">size_t&nbsp;</td>
<td class="paramname"> <em>n</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get item at position <em>n</em> the set, n should be in range [0,size) </p>
</div>
</div>
<a class="anchor" id="a0b726bd57ce8b631de89bbf404b8df2a"></a><!-- doxytag: member="boost::locale::date_time_period_set::size" ref="a0b726bd57ce8b631de89bbf404b8df2a" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">size_t boost::locale::date_time_period_set::size </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get number if items in list </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/<a class="el" href="date__time_8hpp_source.html">date_time.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,101 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::generator Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1generator.html#a15020562d16dbbe276325b0162d54565">add_messages_domain</a>(std::string const &amp;domain)</td><td><a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1generator.html#a12823bbdb209690bfb77caa6404fd91b">add_messages_path</a>(std::string const &amp;path)</td><td><a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1generator.html#ae3c095f074329954eb90bb80488c7f76">categories</a>(locale_category_type cats)</td><td><a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1generator.html#ad0aa601769d49ea79f354d1e1255cd64">categories</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1generator.html#ad5e01c555aa43b438f688dbc29725ab8">characters</a>(character_facet_type chars)</td><td><a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1generator.html#a78feb6e2caae5cc0b01a287cd48691cb">characters</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1generator.html#a7b4458ef36df82bc9e359735c55203e8">clear_cache</a>()</td><td><a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1generator.html#ade4a0ae57dbe87dfc38aa945f063d3c4">clear_domains</a>()</td><td><a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1generator.html#a1804390c65562fa66327152e9dd04c60">clear_options</a>()</td><td><a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1generator.html#ae6ef1ec096f219f4e6c092507e41fa35">clear_paths</a>()</td><td><a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1generator.html#a75ba62f2ae7daa5a2d6641e36e064ecb">generate</a>(std::string const &amp;id) const </td><td><a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1generator.html#aa98d7869660a1eb9b658b2cd4db495b3">generate</a>(std::locale const &amp;base, std::string const &amp;id) const </td><td><a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1generator.html#a25f1d8fbbab6558213991c99630e851c">generator</a>()</td><td><a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1generator.html#a767403ea3f6259fd184a6e355caf62f2">generator</a>(localization_backend_manager const &amp;)</td><td><a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1generator.html#ac2d152e2803cd96f4acc646943f2df51">locale_cache_enabled</a>(bool on)</td><td><a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1generator.html#aacfcd26484a830723a8a9f9d2e91a0e6">locale_cache_enabled</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1generator.html#acd80b3f2371c77f4f7e7dfe69ec670ab">operator()</a>(std::string const &amp;id) const </td><td><a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1generator.html#a4804bc5c4a9adb74cffcc2bdac87da1d">set_default_messages_domain</a>(std::string const &amp;domain)</td><td><a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1generator.html#ac0bbbb4aca466e59e82b63bcbf2efc8b">set_option</a>(std::string const &amp;name, std::string const &amp;value)</td><td><a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1generator.html#a9afb2b0791abbabd39c800e08d9c9717">use_ansi_encoding</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1generator.html#ad9b74721ce3c5e1c39c7e9a4564e1e7b">use_ansi_encoding</a>(bool enc)</td><td><a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>~generator</b>() (defined in <a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a>)</td><td><a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a></td><td></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,550 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::generator Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1generator.html">boost::locale::generator</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<h1>boost::locale::generator Class Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::generator" -->
<p>the major class used for locale generation
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="generator_8hpp_source.html">boost/locale/generator.hpp</a>&gt;</code></p>
<p><a href="classboost_1_1locale_1_1generator-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#a25f1d8fbbab6558213991c99630e851c">generator</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#a767403ea3f6259fd184a6e355caf62f2">generator</a> (<a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">localization_backend_manager</a> const &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#ae3c095f074329954eb90bb80488c7f76">categories</a> (<a class="el" href="namespaceboost_1_1locale.html#a32e8cb87d2f68a5577dbb7ce55c0d2b1">locale_category_type</a> cats)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceboost_1_1locale.html#a32e8cb87d2f68a5577dbb7ce55c0d2b1">locale_category_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#ad0aa601769d49ea79f354d1e1255cd64">categories</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#ad5e01c555aa43b438f688dbc29725ab8">characters</a> (<a class="el" href="namespaceboost_1_1locale.html#a8c993aaf15e683e97d062560ccf914d8">character_facet_type</a> chars)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceboost_1_1locale.html#a8c993aaf15e683e97d062560ccf914d8">character_facet_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#a78feb6e2caae5cc0b01a287cd48691cb">characters</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#a15020562d16dbbe276325b0162d54565">add_messages_domain</a> (std::string const &amp;domain)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#a4804bc5c4a9adb74cffcc2bdac87da1d">set_default_messages_domain</a> (std::string const &amp;domain)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#ade4a0ae57dbe87dfc38aa945f063d3c4">clear_domains</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#a12823bbdb209690bfb77caa6404fd91b">add_messages_path</a> (std::string const &amp;path)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#ae6ef1ec096f219f4e6c092507e41fa35">clear_paths</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#a7b4458ef36df82bc9e359735c55203e8">clear_cache</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#ac2d152e2803cd96f4acc646943f2df51">locale_cache_enabled</a> (bool on)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#aacfcd26484a830723a8a9f9d2e91a0e6">locale_cache_enabled</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#a9afb2b0791abbabd39c800e08d9c9717">use_ansi_encoding</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#ad9b74721ce3c5e1c39c7e9a4564e1e7b">use_ansi_encoding</a> (bool enc)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::locale&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#a75ba62f2ae7daa5a2d6641e36e064ecb">generate</a> (std::string const &amp;id) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::locale&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#aa98d7869660a1eb9b658b2cd4db495b3">generate</a> (std::locale const &amp;base, std::string const &amp;id) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::locale&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#acd80b3f2371c77f4f7e7dfe69ec670ab">operator()</a> (std::string const &amp;id) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#ac0bbbb4aca466e59e82b63bcbf2efc8b">set_option</a> (std::string const &amp;name, std::string const &amp;value)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#a1804390c65562fa66327152e9dd04c60">clear_options</a> ()</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>the major class used for locale generation </p>
<p>This class is used for specification of all parameters required for locale generation and caching. This class const member functions are thread safe if locale class implementation is thread safe. </p>
<dl><dt><b>Examples: </b></dt><dd>
<p><a class="el" href="boundary_8cpp-example.html#_a0">boundary.cpp</a>, <a class="el" href="calendar_8cpp-example.html#_a0">calendar.cpp</a>, <a class="el" href="collate_8cpp-example.html#_a0">collate.cpp</a>, <a class="el" href="conversions_8cpp-example.html#_a0">conversions.cpp</a>, <a class="el" href="hello_8cpp-example.html#_a0">hello.cpp</a>, <a class="el" href="wboundary_8cpp-example.html#_a0">wboundary.cpp</a>, <a class="el" href="wconversions_8cpp-example.html#_a0">wconversions.cpp</a>, and <a class="el" href="whello_8cpp-example.html#_a0">whello.cpp</a>.</p>
</dd>
</dl><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a25f1d8fbbab6558213991c99630e851c"></a><!-- doxytag: member="boost::locale::generator::generator" ref="a25f1d8fbbab6558213991c99630e851c" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">boost::locale::generator::generator </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create new generator using global <a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html" title="Localization backend manager is a class that holds various backend and allows creation of their combi...">localization_backend_manager</a> </p>
</div>
</div>
<a class="anchor" id="a767403ea3f6259fd184a6e355caf62f2"></a><!-- doxytag: member="boost::locale::generator::generator" ref="a767403ea3f6259fd184a6e355caf62f2" args="(localization_backend_manager const &amp;)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">boost::locale::generator::generator </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">localization_backend_manager</a> const &amp;&nbsp;</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create new generator using specific <a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html" title="Localization backend manager is a class that holds various backend and allows creation of their combi...">localization_backend_manager</a> </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a15020562d16dbbe276325b0162d54565"></a><!-- doxytag: member="boost::locale::generator::add_messages_domain" ref="a15020562d16dbbe276325b0162d54565" args="(std::string const &amp;domain)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void boost::locale::generator::add_messages_domain </td>
<td>(</td>
<td class="paramtype">std::string const &amp;&nbsp;</td>
<td class="paramname"> <em>domain</em></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Add a new domain of messages that would be generated. It should be set in order to enable messages support.</p>
<p>Messages domain has following format: "name" or "name/encoding" where name is the base name of the "mo" file where the catalog is stored without ".mo" extension. For example for file <code>/usr/share/locale/he/LC_MESSAGES/blog</code>.mo it would be <code>blog</code>.</p>
<p>You can optionally specify the encoding of the keys in the sources by adding "/encoding_name" For example blog/cp1255.</p>
<p>If not defined all keys are assumed to be UTF-8 encoded.</p>
<dl class="note"><dt><b>Note:</b></dt><dd>When you select a domain for the program using dgettext or message API, you do not specify the encoding part. So for example if the provided domain name was "blog/windows-1255" then for translation you should use dgettext("blog","Hello") </dd></dl>
</div>
</div>
<a class="anchor" id="a12823bbdb209690bfb77caa6404fd91b"></a><!-- doxytag: member="boost::locale::generator::add_messages_path" ref="a12823bbdb209690bfb77caa6404fd91b" args="(std::string const &amp;path)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void boost::locale::generator::add_messages_path </td>
<td>(</td>
<td class="paramtype">std::string const &amp;&nbsp;</td>
<td class="paramname"> <em>path</em></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Add a search path where dictionaries are looked in.</p>
<dl class="note"><dt><b>Note:</b></dt><dd></dd></dl>
<ul>
<li>Under the Windows platform the path is treated as a path in the locale's encoding so if you create locale "en_US.windows-1251" then path would be treated as cp1255, and if it is en_US.UTF-8 it is treated as UTF-8. File name is always opened with a wide file name as wide file names are the native file name on Windows.</li>
</ul>
<ul>
<li>Under POSIX platforms all paths passed as-is regardless of encoding as narrow encodings are the native encodings for POSIX platforms. </li>
</ul>
</div>
</div>
<a class="anchor" id="ae3c095f074329954eb90bb80488c7f76"></a><!-- doxytag: member="boost::locale::generator::categories" ref="ae3c095f074329954eb90bb80488c7f76" args="(locale_category_type cats)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void boost::locale::generator::categories </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespaceboost_1_1locale.html#a32e8cb87d2f68a5577dbb7ce55c0d2b1">locale_category_type</a>&nbsp;</td>
<td class="paramname"> <em>cats</em></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set types of facets that should be generated, default all </p>
</div>
</div>
<a class="anchor" id="ad0aa601769d49ea79f354d1e1255cd64"></a><!-- doxytag: member="boost::locale::generator::categories" ref="ad0aa601769d49ea79f354d1e1255cd64" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceboost_1_1locale.html#a32e8cb87d2f68a5577dbb7ce55c0d2b1">locale_category_type</a> boost::locale::generator::categories </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get types of facets that should be generated, default all </p>
</div>
</div>
<a class="anchor" id="a78feb6e2caae5cc0b01a287cd48691cb"></a><!-- doxytag: member="boost::locale::generator::characters" ref="a78feb6e2caae5cc0b01a287cd48691cb" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceboost_1_1locale.html#a8c993aaf15e683e97d062560ccf914d8">character_facet_type</a> boost::locale::generator::characters </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the characters type for which the facets should be generated, default all supported </p>
</div>
</div>
<a class="anchor" id="ad5e01c555aa43b438f688dbc29725ab8"></a><!-- doxytag: member="boost::locale::generator::characters" ref="ad5e01c555aa43b438f688dbc29725ab8" args="(character_facet_type chars)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void boost::locale::generator::characters </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespaceboost_1_1locale.html#a8c993aaf15e683e97d062560ccf914d8">character_facet_type</a>&nbsp;</td>
<td class="paramname"> <em>chars</em></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set the characters type for which the facets should be generated, default all supported </p>
</div>
</div>
<a class="anchor" id="a7b4458ef36df82bc9e359735c55203e8"></a><!-- doxytag: member="boost::locale::generator::clear_cache" ref="a7b4458ef36df82bc9e359735c55203e8" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void boost::locale::generator::clear_cache </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Remove all cached locales </p>
</div>
</div>
<a class="anchor" id="ade4a0ae57dbe87dfc38aa945f063d3c4"></a><!-- doxytag: member="boost::locale::generator::clear_domains" ref="ade4a0ae57dbe87dfc38aa945f063d3c4" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void boost::locale::generator::clear_domains </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Remove all added domains from the list </p>
</div>
</div>
<a class="anchor" id="a1804390c65562fa66327152e9dd04c60"></a><!-- doxytag: member="boost::locale::generator::clear_options" ref="a1804390c65562fa66327152e9dd04c60" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void boost::locale::generator::clear_options </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Clear backend specific options </p>
</div>
</div>
<a class="anchor" id="ae6ef1ec096f219f4e6c092507e41fa35"></a><!-- doxytag: member="boost::locale::generator::clear_paths" ref="ae6ef1ec096f219f4e6c092507e41fa35" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void boost::locale::generator::clear_paths </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Remove all added paths </p>
</div>
</div>
<a class="anchor" id="aa98d7869660a1eb9b658b2cd4db495b3"></a><!-- doxytag: member="boost::locale::generator::generate" ref="aa98d7869660a1eb9b658b2cd4db495b3" args="(std::locale const &amp;base, std::string const &amp;id) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::locale boost::locale::generator::generate </td>
<td>(</td>
<td class="paramtype">std::locale const &amp;&nbsp;</td>
<td class="paramname"> <em>base</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::string const &amp;&nbsp;</td>
<td class="paramname"> <em>id</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Generate a locale with id <em>id</em>. Use <em>base</em> as a locale to which all facets are added, instead of std::locale::classic(). </p>
</div>
</div>
<a class="anchor" id="a75ba62f2ae7daa5a2d6641e36e064ecb"></a><!-- doxytag: member="boost::locale::generator::generate" ref="a75ba62f2ae7daa5a2d6641e36e064ecb" args="(std::string const &amp;id) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::locale boost::locale::generator::generate </td>
<td>(</td>
<td class="paramtype">std::string const &amp;&nbsp;</td>
<td class="paramname"> <em>id</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Generate a locale with id <em>id</em> </p>
</div>
</div>
<a class="anchor" id="ac2d152e2803cd96f4acc646943f2df51"></a><!-- doxytag: member="boost::locale::generator::locale_cache_enabled" ref="ac2d152e2803cd96f4acc646943f2df51" args="(bool on)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void boost::locale::generator::locale_cache_enabled </td>
<td>(</td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>on</em></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Turn locale caching ON </p>
</div>
</div>
<a class="anchor" id="aacfcd26484a830723a8a9f9d2e91a0e6"></a><!-- doxytag: member="boost::locale::generator::locale_cache_enabled" ref="aacfcd26484a830723a8a9f9d2e91a0e6" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool boost::locale::generator::locale_cache_enabled </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get locale cache option </p>
</div>
</div>
<a class="anchor" id="acd80b3f2371c77f4f7e7dfe69ec670ab"></a><!-- doxytag: member="boost::locale::generator::operator()" ref="acd80b3f2371c77f4f7e7dfe69ec670ab" args="(std::string const &amp;id) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::locale boost::locale::generator::operator() </td>
<td>(</td>
<td class="paramtype">std::string const &amp;&nbsp;</td>
<td class="paramname"> <em>id</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Shortcut to generate(id) </p>
</div>
</div>
<a class="anchor" id="a4804bc5c4a9adb74cffcc2bdac87da1d"></a><!-- doxytag: member="boost::locale::generator::set_default_messages_domain" ref="a4804bc5c4a9adb74cffcc2bdac87da1d" args="(std::string const &amp;domain)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void boost::locale::generator::set_default_messages_domain </td>
<td>(</td>
<td class="paramtype">std::string const &amp;&nbsp;</td>
<td class="paramname"> <em>domain</em></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set default message domain. If this member was not called, the first added messages domain is used. If the domain <em>domain</em> is not added yet it is added. </p>
</div>
</div>
<a class="anchor" id="ac0bbbb4aca466e59e82b63bcbf2efc8b"></a><!-- doxytag: member="boost::locale::generator::set_option" ref="ac0bbbb4aca466e59e82b63bcbf2efc8b" args="(std::string const &amp;name, std::string const &amp;value)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void boost::locale::generator::set_option </td>
<td>(</td>
<td class="paramtype">std::string const &amp;&nbsp;</td>
<td class="paramname"> <em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::string const &amp;&nbsp;</td>
<td class="paramname"> <em>value</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set backend specific option </p>
</div>
</div>
<a class="anchor" id="a9afb2b0791abbabd39c800e08d9c9717"></a><!-- doxytag: member="boost::locale::generator::use_ansi_encoding" ref="a9afb2b0791abbabd39c800e08d9c9717" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool boost::locale::generator::use_ansi_encoding </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Check if by default ANSI encoding is selected or UTF-8 onces. The default is false. </p>
</div>
</div>
<a class="anchor" id="ad9b74721ce3c5e1c39c7e9a4564e1e7b"></a><!-- doxytag: member="boost::locale::generator::use_ansi_encoding" ref="ad9b74721ce3c5e1c39c7e9a4564e1e7b" args="(bool enc)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void boost::locale::generator::use_ansi_encoding </td>
<td>(</td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>enc</em></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Select ANSI encodings as default system encoding rather then UTF-8 by default under Windows.</p>
<p>The default is the most portable and most powerful encoding, UTF-8, but the user can select "system" one if dealing with legacy applications </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/<a class="el" href="generator_8hpp_source.html">generator.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,91 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::hold_ptr&lt; T &gt; Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr&lt; T &gt;</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html#a907a9385c1a15dab07aade7466620bf6">get</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr&lt; T &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html#a30dbc88eb9fde35198774f3ace282712">get</a>()</td><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr&lt; T &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html#a681ee3d579435f9f2f171b830c402072">hold_ptr</a>()</td><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr&lt; T &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html#a0007514dc0410ccb16adf01c56874f52">hold_ptr</a>(T *v)</td><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr&lt; T &gt;</a></td><td><code> [inline, explicit]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html#a2c8a19e35ff3c57100b24371854f31b7">operator*</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr&lt; T &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html#af99f3719b755b787b022253aa6f8d1c0">operator*</a>()</td><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr&lt; T &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html#a7ae6b54ed5471dd9560904c7ff8a7971">operator-&gt;</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr&lt; T &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html#a474f2619452b63408e1e761f414328f4">operator-&gt;</a>()</td><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr&lt; T &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html#a2d7b2957c037589b65b2cdd4f61ebe03">release</a>()</td><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr&lt; T &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html#acb84b86bb220d663ffe13e5be9cfd72e">reset</a>(T *p=0)</td><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr&lt; T &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html#a3e2640b5df80f86aeb68a6ee78dfd6f9">swap</a>(hold_ptr &amp;other)</td><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr&lt; T &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html#aace934e7a8b3f1880d1a06fa85795a48">~hold_ptr</a>()</td><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr&lt; T &gt;</a></td><td><code> [inline]</code></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,344 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::hold_ptr&lt; T &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr&lt; T &gt;</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<h1>boost::locale::hold_ptr&lt; T &gt; Class Template Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::hold_ptr" -->
<p>a smart pointer similar to std::auto_ptr but it is non-copyable and the underlying object has the same constness as the pointer itself (unlike an ordinary pointer).
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="hold__ptr_8hpp_source.html">boost/locale/hold_ptr.hpp</a>&gt;</code></p>
<p><a href="classboost_1_1locale_1_1hold__ptr-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1hold__ptr.html#a681ee3d579435f9f2f171b830c402072">hold_ptr</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1hold__ptr.html#a0007514dc0410ccb16adf01c56874f52">hold_ptr</a> (T *v)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1hold__ptr.html#aace934e7a8b3f1880d1a06fa85795a48">~hold_ptr</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">T const *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1hold__ptr.html#a907a9385c1a15dab07aade7466620bf6">get</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">T *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1hold__ptr.html#a30dbc88eb9fde35198774f3ace282712">get</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">T const &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1hold__ptr.html#a2c8a19e35ff3c57100b24371854f31b7">operator*</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">T &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1hold__ptr.html#af99f3719b755b787b022253aa6f8d1c0">operator*</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">T const *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1hold__ptr.html#a7ae6b54ed5471dd9560904c7ff8a7971">operator-&gt;</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">T *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1hold__ptr.html#a474f2619452b63408e1e761f414328f4">operator-&gt;</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">T *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1hold__ptr.html#a2d7b2957c037589b65b2cdd4f61ebe03">release</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1hold__ptr.html#acb84b86bb220d663ffe13e5be9cfd72e">reset</a> (T *p=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3e2640b5df80f86aeb68a6ee78dfd6f9"></a><!-- doxytag: member="boost::locale::hold_ptr::swap" ref="a3e2640b5df80f86aeb68a6ee78dfd6f9" args="(hold_ptr &amp;other)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1hold__ptr.html#a3e2640b5df80f86aeb68a6ee78dfd6f9">swap</a> (<a class="el" href="classboost_1_1locale_1_1hold__ptr.html">hold_ptr</a> &amp;other)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Swap two pointers. <br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;typename T&gt;<br/>
class boost::locale::hold_ptr&lt; T &gt;</h3>
<p>a smart pointer similar to std::auto_ptr but it is non-copyable and the underlying object has the same constness as the pointer itself (unlike an ordinary pointer). </p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a681ee3d579435f9f2f171b830c402072"></a><!-- doxytag: member="boost::locale::hold_ptr::hold_ptr" ref="a681ee3d579435f9f2f171b830c402072" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr</a>&lt; T &gt;::<a class="el" href="classboost_1_1locale_1_1hold__ptr.html">hold_ptr</a> </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create new empty pointer </p>
</div>
</div>
<a class="anchor" id="a0007514dc0410ccb16adf01c56874f52"></a><!-- doxytag: member="boost::locale::hold_ptr::hold_ptr" ref="a0007514dc0410ccb16adf01c56874f52" args="(T *v)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr</a>&lt; T &gt;::<a class="el" href="classboost_1_1locale_1_1hold__ptr.html">hold_ptr</a> </td>
<td>(</td>
<td class="paramtype">T *&nbsp;</td>
<td class="paramname"> <em>v</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline, explicit]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a pointer that holds <em>v</em>, ownership is transferred to smart pointer </p>
</div>
</div>
<a class="anchor" id="aace934e7a8b3f1880d1a06fa85795a48"></a><!-- doxytag: member="boost::locale::hold_ptr::~hold_ptr" ref="aace934e7a8b3f1880d1a06fa85795a48" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr</a>&lt; T &gt;::~<a class="el" href="classboost_1_1locale_1_1hold__ptr.html">hold_ptr</a> </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Destroy smart pointer and the object it owns. </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a907a9385c1a15dab07aade7466620bf6"></a><!-- doxytag: member="boost::locale::hold_ptr::get" ref="a907a9385c1a15dab07aade7466620bf6" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="memname">
<tr>
<td class="memname">T const* <a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr</a>&lt; T &gt;::get </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get a const pointer to the object </p>
</div>
</div>
<a class="anchor" id="a30dbc88eb9fde35198774f3ace282712"></a><!-- doxytag: member="boost::locale::hold_ptr::get" ref="a30dbc88eb9fde35198774f3ace282712" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="memname">
<tr>
<td class="memname">T* <a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr</a>&lt; T &gt;::get </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get a mutable pointer to the object </p>
</div>
</div>
<a class="anchor" id="af99f3719b755b787b022253aa6f8d1c0"></a><!-- doxytag: member="boost::locale::hold_ptr::operator*" ref="af99f3719b755b787b022253aa6f8d1c0" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="memname">
<tr>
<td class="memname">T&amp; <a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr</a>&lt; T &gt;::operator* </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get a mutable reference to the object </p>
</div>
</div>
<a class="anchor" id="a2c8a19e35ff3c57100b24371854f31b7"></a><!-- doxytag: member="boost::locale::hold_ptr::operator*" ref="a2c8a19e35ff3c57100b24371854f31b7" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="memname">
<tr>
<td class="memname">T const&amp; <a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr</a>&lt; T &gt;::operator* </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get a const reference to the object </p>
</div>
</div>
<a class="anchor" id="a7ae6b54ed5471dd9560904c7ff8a7971"></a><!-- doxytag: member="boost::locale::hold_ptr::operator&#45;&gt;" ref="a7ae6b54ed5471dd9560904c7ff8a7971" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="memname">
<tr>
<td class="memname">T const* <a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr</a>&lt; T &gt;::operator-&gt; </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get a const pointer to the object </p>
</div>
</div>
<a class="anchor" id="a474f2619452b63408e1e761f414328f4"></a><!-- doxytag: member="boost::locale::hold_ptr::operator&#45;&gt;" ref="a474f2619452b63408e1e761f414328f4" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="memname">
<tr>
<td class="memname">T* <a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr</a>&lt; T &gt;::operator-&gt; </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get a mutable pointer to the object </p>
</div>
</div>
<a class="anchor" id="a2d7b2957c037589b65b2cdd4f61ebe03"></a><!-- doxytag: member="boost::locale::hold_ptr::release" ref="a2d7b2957c037589b65b2cdd4f61ebe03" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="memname">
<tr>
<td class="memname">T* <a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr</a>&lt; T &gt;::release </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Transfer an ownership on the pointer to user </p>
</div>
</div>
<a class="anchor" id="acb84b86bb220d663ffe13e5be9cfd72e"></a><!-- doxytag: member="boost::locale::hold_ptr::reset" ref="acb84b86bb220d663ffe13e5be9cfd72e" args="(T *p=0)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classboost_1_1locale_1_1hold__ptr.html">boost::locale::hold_ptr</a>&lt; T &gt;::reset </td>
<td>(</td>
<td class="paramtype">T *&nbsp;</td>
<td class="paramname"> <em>p</em> = <code>0</code></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set new value to pointer, previous object is destroyed, ownership on new object is transferred </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/<a class="el" href="hold__ptr_8hpp_source.html">hold_ptr.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,97 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::info Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1info.html">boost::locale::info</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1info.html#a249c20e36da6827a8dc8b12a8342a7dc">country</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1info.html">boost::locale::info</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1info.html#ac79e3924b5473862ab15a3290b1c8d15ab59b95580bc749f21c832a70d4b73c61">country_property</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1info.html">boost::locale::info</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1info.html#a1979a5d7b90604c45e856a139c68f5ba">encoding</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1info.html">boost::locale::info</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1info.html#ac79e3924b5473862ab15a3290b1c8d15a1aa0567014d09df594b4a616f20c9b26">encoding_property</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1info.html">boost::locale::info</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1info.html#aee97062cd9c8a1c6b24a160783865ee2">get_integer_property</a>(integer_property v) const =0</td><td><a class="el" href="classboost_1_1locale_1_1info.html">boost::locale::info</a></td><td><code> [protected, pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1info.html#a38673d9985abd1c98713b262fadfe584">get_string_property</a>(string_propery v) const =0</td><td><a class="el" href="classboost_1_1locale_1_1info.html">boost::locale::info</a></td><td><code> [protected, pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1info.html#a01c274323da1367b153952ee1f056572">id</a></td><td><a class="el" href="classboost_1_1locale_1_1info.html">boost::locale::info</a></td><td><code> [static]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1info.html#a5545bf33988c859b3b864d4d65178134">info</a>(size_t refs=0)</td><td><a class="el" href="classboost_1_1locale_1_1info.html">boost::locale::info</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1info.html#a53d7aa756e1b74f360913a9c9d41bb6d">integer_property</a> enum name</td><td><a class="el" href="classboost_1_1locale_1_1info.html">boost::locale::info</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1info.html#a7c56b9df3aba82649afc66c06192c7df">language</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1info.html">boost::locale::info</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1info.html#ac79e3924b5473862ab15a3290b1c8d15a51e81de8c364b3734f4e2baf1abaddcf">language_property</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1info.html">boost::locale::info</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1info.html#af8181bf226f369548c030220932323b9">name</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1info.html">boost::locale::info</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1info.html#ac79e3924b5473862ab15a3290b1c8d15ab68bcb824a19b6cfd95ad3c714369369">name_property</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1info.html">boost::locale::info</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1info.html#ac79e3924b5473862ab15a3290b1c8d15">string_propery</a> enum name</td><td><a class="el" href="classboost_1_1locale_1_1info.html">boost::locale::info</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1info.html#aafbbb5c291f60ce6fc3bc056859ba181">utf8</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1info.html">boost::locale::info</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1info.html#a53d7aa756e1b74f360913a9c9d41bb6da4d27d781e7da56cb9b94bfd8cdcab5ea">utf8_property</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1info.html">boost::locale::info</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1info.html#a2e949e4362c8f0195e2a645fe875f1b4">variant</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1info.html">boost::locale::info</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1info.html#ac79e3924b5473862ab15a3290b1c8d15a2b38cb5c60ed931f21fc9bec4984900c">variant_property</a> enum value</td><td><a class="el" href="classboost_1_1locale_1_1info.html">boost::locale::info</a></td><td></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,358 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::info Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1info.html">boost::locale::info</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> </div>
<div class="headertitle">
<h1>boost::locale::info Class Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::info" -->
<p>a facet that holds general information about locale
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="info_8hpp_source.html">boost/locale/info.hpp</a>&gt;</code></p>
<p><a href="classboost_1_1locale_1_1info-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1info.html#ac79e3924b5473862ab15a3290b1c8d15">string_propery</a> { <br/>
&nbsp;&nbsp;<a class="el" href="classboost_1_1locale_1_1info.html#ac79e3924b5473862ab15a3290b1c8d15a51e81de8c364b3734f4e2baf1abaddcf">language_property</a>,
<a class="el" href="classboost_1_1locale_1_1info.html#ac79e3924b5473862ab15a3290b1c8d15ab59b95580bc749f21c832a70d4b73c61">country_property</a>,
<a class="el" href="classboost_1_1locale_1_1info.html#ac79e3924b5473862ab15a3290b1c8d15a2b38cb5c60ed931f21fc9bec4984900c">variant_property</a>,
<a class="el" href="classboost_1_1locale_1_1info.html#ac79e3924b5473862ab15a3290b1c8d15a1aa0567014d09df594b4a616f20c9b26">encoding_property</a>,
<br/>
&nbsp;&nbsp;<a class="el" href="classboost_1_1locale_1_1info.html#ac79e3924b5473862ab15a3290b1c8d15ab68bcb824a19b6cfd95ad3c714369369">name_property</a>
<br/>
}</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1info.html#a53d7aa756e1b74f360913a9c9d41bb6d">integer_property</a> { <a class="el" href="classboost_1_1locale_1_1info.html#a53d7aa756e1b74f360913a9c9d41bb6da4d27d781e7da56cb9b94bfd8cdcab5ea">utf8_property</a>
}</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1info.html#a5545bf33988c859b3b864d4d65178134">info</a> (size_t refs=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1info.html#a7c56b9df3aba82649afc66c06192c7df">language</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1info.html#a249c20e36da6827a8dc8b12a8342a7dc">country</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1info.html#a2e949e4362c8f0195e2a645fe875f1b4">variant</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1info.html#a1979a5d7b90604c45e856a139c68f5ba">encoding</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1info.html#af8181bf226f369548c030220932323b9">name</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1info.html#aafbbb5c291f60ce6fc3bc056859ba181">utf8</a> () const </td></tr>
<tr><td colspan="2"><h2><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a01c274323da1367b153952ee1f056572"></a><!-- doxytag: member="boost::locale::info::id" ref="a01c274323da1367b153952ee1f056572" args="" -->
static std::locale::id&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1info.html#a01c274323da1367b153952ee1f056572">id</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This member uniquely defines this facet, required by STL. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1info.html#a38673d9985abd1c98713b262fadfe584">get_string_property</a> (<a class="el" href="classboost_1_1locale_1_1info.html#ac79e3924b5473862ab15a3290b1c8d15">string_propery</a> v) const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1info.html#aee97062cd9c8a1c6b24a160783865ee2">get_integer_property</a> (<a class="el" href="classboost_1_1locale_1_1info.html#a53d7aa756e1b74f360913a9c9d41bb6d">integer_property</a> v) const =0</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>a facet that holds general information about locale </p>
<p>This facet should be always created in order to make all Boost.Locale functions work </p>
<hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a53d7aa756e1b74f360913a9c9d41bb6d"></a><!-- doxytag: member="boost::locale::info::integer_property" ref="a53d7aa756e1b74f360913a9c9d41bb6d" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classboost_1_1locale_1_1info.html#a53d7aa756e1b74f360913a9c9d41bb6d">boost::locale::info::integer_property</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Integer information about locale </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a53d7aa756e1b74f360913a9c9d41bb6da4d27d781e7da56cb9b94bfd8cdcab5ea"></a><!-- doxytag: member="utf8_property" ref="a53d7aa756e1b74f360913a9c9d41bb6da4d27d781e7da56cb9b94bfd8cdcab5ea" args="" -->utf8_property</em>&nbsp;</td><td>
<p>Non zero value if uses UTF-8 encoding. </p>
</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ac79e3924b5473862ab15a3290b1c8d15"></a><!-- doxytag: member="boost::locale::info::string_propery" ref="ac79e3924b5473862ab15a3290b1c8d15" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classboost_1_1locale_1_1info.html#ac79e3924b5473862ab15a3290b1c8d15">boost::locale::info::string_propery</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>String information about the locale </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="ac79e3924b5473862ab15a3290b1c8d15a51e81de8c364b3734f4e2baf1abaddcf"></a><!-- doxytag: member="language_property" ref="ac79e3924b5473862ab15a3290b1c8d15a51e81de8c364b3734f4e2baf1abaddcf" args="" -->language_property</em>&nbsp;</td><td>
<p>ISO 639 language id. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ac79e3924b5473862ab15a3290b1c8d15ab59b95580bc749f21c832a70d4b73c61"></a><!-- doxytag: member="country_property" ref="ac79e3924b5473862ab15a3290b1c8d15ab59b95580bc749f21c832a70d4b73c61" args="" -->country_property</em>&nbsp;</td><td>
<p>ISO 3166 country id. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ac79e3924b5473862ab15a3290b1c8d15a2b38cb5c60ed931f21fc9bec4984900c"></a><!-- doxytag: member="variant_property" ref="ac79e3924b5473862ab15a3290b1c8d15a2b38cb5c60ed931f21fc9bec4984900c" args="" -->variant_property</em>&nbsp;</td><td>
<p>Variant for locale. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ac79e3924b5473862ab15a3290b1c8d15a1aa0567014d09df594b4a616f20c9b26"></a><!-- doxytag: member="encoding_property" ref="ac79e3924b5473862ab15a3290b1c8d15a1aa0567014d09df594b4a616f20c9b26" args="" -->encoding_property</em>&nbsp;</td><td>
<p>encoding name </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ac79e3924b5473862ab15a3290b1c8d15ab68bcb824a19b6cfd95ad3c714369369"></a><!-- doxytag: member="name_property" ref="ac79e3924b5473862ab15a3290b1c8d15ab68bcb824a19b6cfd95ad3c714369369" args="" -->name_property</em>&nbsp;</td><td>
<p>locale name </p>
</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a5545bf33988c859b3b864d4d65178134"></a><!-- doxytag: member="boost::locale::info::info" ref="a5545bf33988c859b3b864d4d65178134" args="(size_t refs=0)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">boost::locale::info::info </td>
<td>(</td>
<td class="paramtype">size_t&nbsp;</td>
<td class="paramname"> <em>refs</em> = <code>0</code></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Standard facet's constructor </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a249c20e36da6827a8dc8b12a8342a7dc"></a><!-- doxytag: member="boost::locale::info::country" ref="a249c20e36da6827a8dc8b12a8342a7dc" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::string boost::locale::info::country </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get country name </p>
</div>
</div>
<a class="anchor" id="a1979a5d7b90604c45e856a139c68f5ba"></a><!-- doxytag: member="boost::locale::info::encoding" ref="a1979a5d7b90604c45e856a139c68f5ba" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::string boost::locale::info::encoding </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get encoding </p>
</div>
</div>
<a class="anchor" id="aee97062cd9c8a1c6b24a160783865ee2"></a><!-- doxytag: member="boost::locale::info::get_integer_property" ref="aee97062cd9c8a1c6b24a160783865ee2" args="(integer_property v) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual int boost::locale::info::get_integer_property </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1info.html#a53d7aa756e1b74f360913a9c9d41bb6d">integer_property</a>&nbsp;</td>
<td class="paramname"> <em>v</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [protected, pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get integer property by its id <em>v</em> </p>
</div>
</div>
<a class="anchor" id="a38673d9985abd1c98713b262fadfe584"></a><!-- doxytag: member="boost::locale::info::get_string_property" ref="a38673d9985abd1c98713b262fadfe584" args="(string_propery v) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual std::string boost::locale::info::get_string_property </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1info.html#ac79e3924b5473862ab15a3290b1c8d15">string_propery</a>&nbsp;</td>
<td class="paramname"> <em>v</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [protected, pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get string property by its id <em>v</em> </p>
</div>
</div>
<a class="anchor" id="a7c56b9df3aba82649afc66c06192c7df"></a><!-- doxytag: member="boost::locale::info::language" ref="a7c56b9df3aba82649afc66c06192c7df" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::string boost::locale::info::language </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get language name </p>
</div>
</div>
<a class="anchor" id="af8181bf226f369548c030220932323b9"></a><!-- doxytag: member="boost::locale::info::name" ref="af8181bf226f369548c030220932323b9" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::string boost::locale::info::name </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the name of the locale, like en_US.UTF-8 </p>
</div>
</div>
<a class="anchor" id="aafbbb5c291f60ce6fc3bc056859ba181"></a><!-- doxytag: member="boost::locale::info::utf8" ref="aafbbb5c291f60ce6fc3bc056859ba181" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool boost::locale::info::utf8 </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>True if the underlying encoding is UTF-8 (for char streams and strings) </p>
</div>
</div>
<a class="anchor" id="a2e949e4362c8f0195e2a645fe875f1b4"></a><!-- doxytag: member="boost::locale::info::variant" ref="a2e949e4362c8f0195e2a645fe875f1b4" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::string boost::locale::info::variant </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get locale variant </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/<a class="el" href="info_8hpp_source.html">info.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,96 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::ios_info Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1ios__info.html">boost::locale::ios_info</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1ios__info.html#ad31ea1190ae882f20eea582312c6c573">currency_flags</a>(uint64_t flags)</td><td><a class="el" href="classboost_1_1locale_1_1ios__info.html">boost::locale::ios_info</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1ios__info.html#ac98b6625dcd7e552e144510192daebb7">currency_flags</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1ios__info.html">boost::locale::ios_info</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1ios__info.html#aec16372d284296c63ebd282121fa0005">date_flags</a>(uint64_t flags)</td><td><a class="el" href="classboost_1_1locale_1_1ios__info.html">boost::locale::ios_info</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1ios__info.html#af46aa3529a930f328613533c6626260a">date_flags</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1ios__info.html">boost::locale::ios_info</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1ios__info.html#a4c788d42a54235a501cfd6602e0939d9">date_time_pattern</a>(std::basic_string&lt; CharType &gt; const &amp;str)</td><td><a class="el" href="classboost_1_1locale_1_1ios__info.html">boost::locale::ios_info</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1ios__info.html#ab1e517242a73bb4802014391f4720338">date_time_pattern</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1ios__info.html">boost::locale::ios_info</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1ios__info.html#a6e90b9fcfb723495da5239fc380b0331">datetime_flags</a>(uint64_t flags)</td><td><a class="el" href="classboost_1_1locale_1_1ios__info.html">boost::locale::ios_info</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1ios__info.html#a5e034268f4b5295ddaae948ffe8a1ec0">datetime_flags</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1ios__info.html">boost::locale::ios_info</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1ios__info.html#a18b06a5cf88e25361bf188f64216edf2">display_flags</a>(uint64_t flags)</td><td><a class="el" href="classboost_1_1locale_1_1ios__info.html">boost::locale::ios_info</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1ios__info.html#a8b72d7ac5dcd8be72f4bf49b73616db4">display_flags</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1ios__info.html">boost::locale::ios_info</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1ios__info.html#a08b1bb49e5806900bfa1901e869497a6">domain_id</a>(int)</td><td><a class="el" href="classboost_1_1locale_1_1ios__info.html">boost::locale::ios_info</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1ios__info.html#a91fee7df7d3802c65c28c5ef24a10707">domain_id</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1ios__info.html">boost::locale::ios_info</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1ios__info.html#a02f6979dffc2df97c3612d72b7c7241b">get</a>(std::ios_base &amp;ios)</td><td><a class="el" href="classboost_1_1locale_1_1ios__info.html">boost::locale::ios_info</a></td><td><code> [static]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1ios__info.html#a06bdad5c9b11e57c16ad623776ce5096">time_flags</a>(uint64_t flags)</td><td><a class="el" href="classboost_1_1locale_1_1ios__info.html">boost::locale::ios_info</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1ios__info.html#ab8e618c7e292dba53d9334926522031e">time_flags</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1ios__info.html">boost::locale::ios_info</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1ios__info.html#a3f140278815b521f1568c52d0a9fea11">time_zone</a>(std::string const &amp;)</td><td><a class="el" href="classboost_1_1locale_1_1ios__info.html">boost::locale::ios_info</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1ios__info.html#a0325f6eca8b939609614fe98e4e9ab42">time_zone</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1ios__info.html">boost::locale::ios_info</a></td><td></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,450 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::ios_info Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1ios__info.html">boost::locale::ios_info</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> </div>
<div class="headertitle">
<h1>boost::locale::ios_info Class Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::ios_info" -->
<p>This class holds an external data - beyond existing fmtflags that std::ios_base holds.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="formatting_8hpp_source.html">boost/locale/formatting.hpp</a>&gt;</code></p>
<p><a href="classboost_1_1locale_1_1ios__info-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><b>string_set</b></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1ios__info.html#a18b06a5cf88e25361bf188f64216edf2">display_flags</a> (uint64_t flags)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1ios__info.html#ad31ea1190ae882f20eea582312c6c573">currency_flags</a> (uint64_t flags)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1ios__info.html#aec16372d284296c63ebd282121fa0005">date_flags</a> (uint64_t flags)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1ios__info.html#a06bdad5c9b11e57c16ad623776ce5096">time_flags</a> (uint64_t flags)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1ios__info.html#a6e90b9fcfb723495da5239fc380b0331">datetime_flags</a> (uint64_t flags)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1ios__info.html#a08b1bb49e5806900bfa1901e869497a6">domain_id</a> (int)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1ios__info.html#a3f140278815b521f1568c52d0a9fea11">time_zone</a> (std::string const &amp;)</td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;typename CharType &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">void&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1ios__info.html#a4c788d42a54235a501cfd6602e0939d9">date_time_pattern</a> (std::basic_string&lt; CharType &gt; const &amp;str)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint64_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1ios__info.html#a8b72d7ac5dcd8be72f4bf49b73616db4">display_flags</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint64_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1ios__info.html#ac98b6625dcd7e552e144510192daebb7">currency_flags</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint64_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1ios__info.html#af46aa3529a930f328613533c6626260a">date_flags</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint64_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1ios__info.html#ab8e618c7e292dba53d9334926522031e">time_flags</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint64_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1ios__info.html#a5e034268f4b5295ddaae948ffe8a1ec0">datetime_flags</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1ios__info.html#a91fee7df7d3802c65c28c5ef24a10707">domain_id</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1ios__info.html#a0325f6eca8b939609614fe98e4e9ab42">time_zone</a> () const </td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;typename CharType &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">std::basic_string&lt; CharType &gt;&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1ios__info.html#ab1e517242a73bb4802014391f4720338">date_time_pattern</a> () const </td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classboost_1_1locale_1_1ios__info.html">ios_info</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1ios__info.html#a02f6979dffc2df97c3612d72b7c7241b">get</a> (std::ios_base &amp;ios)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>This class holds an external data - beyond existing fmtflags that std::ios_base holds. </p>
<p>You should almost never create this object directly. Instead, you should access it via ios_info::get(stream_object) static member function. It automatically creates default formatting data for that stream </p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ad31ea1190ae882f20eea582312c6c573"></a><!-- doxytag: member="boost::locale::ios_info::currency_flags" ref="ad31ea1190ae882f20eea582312c6c573" args="(uint64_t flags)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void boost::locale::ios_info::currency_flags </td>
<td>(</td>
<td class="paramtype">uint64_t&nbsp;</td>
<td class="paramname"> <em>flags</em></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set a flags that define how to format currency </p>
</div>
</div>
<a class="anchor" id="ac98b6625dcd7e552e144510192daebb7"></a><!-- doxytag: member="boost::locale::ios_info::currency_flags" ref="ac98b6625dcd7e552e144510192daebb7" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint64_t boost::locale::ios_info::currency_flags </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get a flags that define how to format currency </p>
</div>
</div>
<a class="anchor" id="aec16372d284296c63ebd282121fa0005"></a><!-- doxytag: member="boost::locale::ios_info::date_flags" ref="aec16372d284296c63ebd282121fa0005" args="(uint64_t flags)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void boost::locale::ios_info::date_flags </td>
<td>(</td>
<td class="paramtype">uint64_t&nbsp;</td>
<td class="paramname"> <em>flags</em></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set a flags that define how to format date </p>
</div>
</div>
<a class="anchor" id="af46aa3529a930f328613533c6626260a"></a><!-- doxytag: member="boost::locale::ios_info::date_flags" ref="af46aa3529a930f328613533c6626260a" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint64_t boost::locale::ios_info::date_flags </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get a flags that define how to format date </p>
</div>
</div>
<a class="anchor" id="a4c788d42a54235a501cfd6602e0939d9"></a><!-- doxytag: member="boost::locale::ios_info::date_time_pattern" ref="a4c788d42a54235a501cfd6602e0939d9" args="(std::basic_string&lt; CharType &gt; const &amp;str)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType &gt; </div>
<table class="memname">
<tr>
<td class="memname">void boost::locale::ios_info::date_time_pattern </td>
<td>(</td>
<td class="paramtype">std::basic_string&lt; CharType &gt; const &amp;&nbsp;</td>
<td class="paramname"> <em>str</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set date/time pattern (strftime like) </p>
</div>
</div>
<a class="anchor" id="ab1e517242a73bb4802014391f4720338"></a><!-- doxytag: member="boost::locale::ios_info::date_time_pattern" ref="ab1e517242a73bb4802014391f4720338" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType &gt; </div>
<table class="memname">
<tr>
<td class="memname">std::basic_string&lt;CharType&gt; boost::locale::ios_info::date_time_pattern </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get date/time pattern (strftime like) </p>
</div>
</div>
<a class="anchor" id="a6e90b9fcfb723495da5239fc380b0331"></a><!-- doxytag: member="boost::locale::ios_info::datetime_flags" ref="a6e90b9fcfb723495da5239fc380b0331" args="(uint64_t flags)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void boost::locale::ios_info::datetime_flags </td>
<td>(</td>
<td class="paramtype">uint64_t&nbsp;</td>
<td class="paramname"> <em>flags</em></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set a flags that define how to format both date and time </p>
</div>
</div>
<a class="anchor" id="a5e034268f4b5295ddaae948ffe8a1ec0"></a><!-- doxytag: member="boost::locale::ios_info::datetime_flags" ref="a5e034268f4b5295ddaae948ffe8a1ec0" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint64_t boost::locale::ios_info::datetime_flags </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get a flags that define how to format both date and time </p>
</div>
</div>
<a class="anchor" id="a8b72d7ac5dcd8be72f4bf49b73616db4"></a><!-- doxytag: member="boost::locale::ios_info::display_flags" ref="a8b72d7ac5dcd8be72f4bf49b73616db4" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint64_t boost::locale::ios_info::display_flags </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get a flags that define a way for format data like number, spell, currency etc. </p>
</div>
</div>
<a class="anchor" id="a18b06a5cf88e25361bf188f64216edf2"></a><!-- doxytag: member="boost::locale::ios_info::display_flags" ref="a18b06a5cf88e25361bf188f64216edf2" args="(uint64_t flags)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void boost::locale::ios_info::display_flags </td>
<td>(</td>
<td class="paramtype">uint64_t&nbsp;</td>
<td class="paramname"> <em>flags</em></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set a flags that define a way for format data like number, spell, currency etc. </p>
</div>
</div>
<a class="anchor" id="a08b1bb49e5806900bfa1901e869497a6"></a><!-- doxytag: member="boost::locale::ios_info::domain_id" ref="a08b1bb49e5806900bfa1901e869497a6" args="(int)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void boost::locale::ios_info::domain_id </td>
<td>(</td>
<td class="paramtype">int&nbsp;</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set special message domain identification </p>
</div>
</div>
<a class="anchor" id="a91fee7df7d3802c65c28c5ef24a10707"></a><!-- doxytag: member="boost::locale::ios_info::domain_id" ref="a91fee7df7d3802c65c28c5ef24a10707" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int boost::locale::ios_info::domain_id </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get special message domain identification </p>
</div>
</div>
<a class="anchor" id="a02f6979dffc2df97c3612d72b7c7241b"></a><!-- doxytag: member="boost::locale::ios_info::get" ref="a02f6979dffc2df97c3612d72b7c7241b" args="(std::ios_base &amp;ios)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classboost_1_1locale_1_1ios__info.html">ios_info</a>&amp; boost::locale::ios_info::get </td>
<td>(</td>
<td class="paramtype">std::ios_base &amp;&nbsp;</td>
<td class="paramname"> <em>ios</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get <a class="el" href="classboost_1_1locale_1_1ios__info.html" title="This class holds an external data - beyond existing fmtflags that std::ios_base holds.">ios_info</a> instance for specific stream object </p>
</div>
</div>
<a class="anchor" id="ab8e618c7e292dba53d9334926522031e"></a><!-- doxytag: member="boost::locale::ios_info::time_flags" ref="ab8e618c7e292dba53d9334926522031e" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint64_t boost::locale::ios_info::time_flags </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get a flags that define how to format time </p>
</div>
</div>
<a class="anchor" id="a06bdad5c9b11e57c16ad623776ce5096"></a><!-- doxytag: member="boost::locale::ios_info::time_flags" ref="a06bdad5c9b11e57c16ad623776ce5096" args="(uint64_t flags)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void boost::locale::ios_info::time_flags </td>
<td>(</td>
<td class="paramtype">uint64_t&nbsp;</td>
<td class="paramname"> <em>flags</em></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set a flags that define how to format time </p>
</div>
</div>
<a class="anchor" id="a0325f6eca8b939609614fe98e4e9ab42"></a><!-- doxytag: member="boost::locale::ios_info::time_zone" ref="a0325f6eca8b939609614fe98e4e9ab42" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::string boost::locale::ios_info::time_zone </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get time zone for formatting dates and time </p>
</div>
</div>
<a class="anchor" id="a3f140278815b521f1568c52d0a9fea11"></a><!-- doxytag: member="boost::locale::ios_info::time_zone" ref="a3f140278815b521f1568c52d0a9fea11" args="(std::string const &amp;)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void boost::locale::ios_info::time_zone </td>
<td>(</td>
<td class="paramtype">std::string const &amp;&nbsp;</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set time zone for formatting dates and time </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/<a class="el" href="formatting_8hpp_source.html">formatting.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,85 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::localization_backend Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1localization__backend.html">boost::locale::localization_backend</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1localization__backend.html#a631af306f8652dcf7874b0bb38ab8891">clear_options</a>()=0</td><td><a class="el" href="classboost_1_1locale_1_1localization__backend.html">boost::locale::localization_backend</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1localization__backend.html#ab89828234ca84d4b43f3692bfbb08b25">clone</a>() const =0</td><td><a class="el" href="classboost_1_1locale_1_1localization__backend.html">boost::locale::localization_backend</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1localization__backend.html#a5992c75d469f775ce1d18a0912bfa8a1">install</a>(std::locale const &amp;base, locale_category_type category, character_facet_type type=nochar_facet)=0</td><td><a class="el" href="classboost_1_1locale_1_1localization__backend.html">boost::locale::localization_backend</a></td><td><code> [pure virtual]</code></td></tr>
<tr bgcolor="#f0f0f0"><td><b>localization_backend</b>() (defined in <a class="el" href="classboost_1_1locale_1_1localization__backend.html">boost::locale::localization_backend</a>)</td><td><a class="el" href="classboost_1_1locale_1_1localization__backend.html">boost::locale::localization_backend</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1localization__backend.html#a3dc9028eb813001f6cdd8fca937837ef">set_option</a>(std::string const &amp;name, std::string const &amp;value)=0</td><td><a class="el" href="classboost_1_1locale_1_1localization__backend.html">boost::locale::localization_backend</a></td><td><code> [pure virtual]</code></td></tr>
<tr bgcolor="#f0f0f0"><td><b>~localization_backend</b>() (defined in <a class="el" href="classboost_1_1locale_1_1localization__backend.html">boost::locale::localization_backend</a>)</td><td><a class="el" href="classboost_1_1locale_1_1localization__backend.html">boost::locale::localization_backend</a></td><td><code> [inline, virtual]</code></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,215 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::localization_backend Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1localization__backend.html">boost::locale::localization_backend</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<h1>boost::locale::localization_backend Class Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::localization_backend" -->
<p>this class represents a localization backend that can be used for localizing your application.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="localization__backend_8hpp_source.html">boost/locale/localization_backend.hpp</a>&gt;</code></p>
<p><a href="classboost_1_1locale_1_1localization__backend-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classboost_1_1locale_1_1localization__backend.html">localization_backend</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1localization__backend.html#ab89828234ca84d4b43f3692bfbb08b25">clone</a> () const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1localization__backend.html#a3dc9028eb813001f6cdd8fca937837ef">set_option</a> (std::string const &amp;name, std::string const &amp;value)=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1localization__backend.html#a631af306f8652dcf7874b0bb38ab8891">clear_options</a> ()=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual std::locale&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1localization__backend.html#a5992c75d469f775ce1d18a0912bfa8a1">install</a> (std::locale const &amp;base, <a class="el" href="namespaceboost_1_1locale.html#a32e8cb87d2f68a5577dbb7ce55c0d2b1">locale_category_type</a> category, <a class="el" href="namespaceboost_1_1locale.html#a8c993aaf15e683e97d062560ccf914d8">character_facet_type</a> type=<a class="el" href="namespaceboost_1_1locale.html#a330a4c5134eb5110b33a0b4f986f34be">nochar_facet</a>)=0</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>this class represents a localization backend that can be used for localizing your application. </p>
<p>Backends are usually registered inside the localization backends manager and allow transparent support of different backends, so a user can switch the backend by simply linking the application to the correct one.</p>
<p>Backends may support different tuning options, but these are the default options available to the user for all of them</p>
<ol type="1">
<li><code>locale</code> - the name of the locale in POSIX format like en_US.UTF-8</li>
<li><code>use_ansi_encoding</code> - select system locale using ANSI codepages rather then UTF-8 under Windows by default</li>
<li><code>message_path</code> - path to the location of message catalogs (vector of strings)</li>
<li><code>message_application</code> - the name of applications that use message catalogs (vector of strings)</li>
</ol>
<p>Each backend can be installed with a different default priotiry so when you work with two different backends, you can specify priotiry so this backend will be chosen according to their priority. </p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a631af306f8652dcf7874b0bb38ab8891"></a><!-- doxytag: member="boost::locale::localization_backend::clear_options" ref="a631af306f8652dcf7874b0bb38ab8891" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void boost::locale::localization_backend::clear_options </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Clear all options </p>
</div>
</div>
<a class="anchor" id="ab89828234ca84d4b43f3692bfbb08b25"></a><!-- doxytag: member="boost::locale::localization_backend::clone" ref="ab89828234ca84d4b43f3692bfbb08b25" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classboost_1_1locale_1_1localization__backend.html">localization_backend</a>* boost::locale::localization_backend::clone </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Make a polymorphic copy of the backend </p>
</div>
</div>
<a class="anchor" id="a5992c75d469f775ce1d18a0912bfa8a1"></a><!-- doxytag: member="boost::locale::localization_backend::install" ref="a5992c75d469f775ce1d18a0912bfa8a1" args="(std::locale const &amp;base, locale_category_type category, character_facet_type type=nochar_facet)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual std::locale boost::locale::localization_backend::install </td>
<td>(</td>
<td class="paramtype">std::locale const &amp;&nbsp;</td>
<td class="paramname"> <em>base</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceboost_1_1locale.html#a32e8cb87d2f68a5577dbb7ce55c0d2b1">locale_category_type</a>&nbsp;</td>
<td class="paramname"> <em>category</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceboost_1_1locale.html#a8c993aaf15e683e97d062560ccf914d8">character_facet_type</a>&nbsp;</td>
<td class="paramname"> <em>type</em> = <code><a class="el" href="namespaceboost_1_1locale.html#a330a4c5134eb5110b33a0b4f986f34be">nochar_facet</a></code></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a facet for category <em>category</em> and character type <em>type</em> </p>
</div>
</div>
<a class="anchor" id="a3dc9028eb813001f6cdd8fca937837ef"></a><!-- doxytag: member="boost::locale::localization_backend::set_option" ref="a3dc9028eb813001f6cdd8fca937837ef" args="(std::string const &amp;name, std::string const &amp;value)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void boost::locale::localization_backend::set_option </td>
<td>(</td>
<td class="paramtype">std::string const &amp;&nbsp;</td>
<td class="paramname"> <em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::string const &amp;&nbsp;</td>
<td class="paramname"> <em>value</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set option for backend, for example "locale" or "encoding" </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/<a class="el" href="localization__backend_8hpp_source.html">localization_backend.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,90 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::localization_backend_manager Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">boost::locale::localization_backend_manager</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html#ae3c6eca5cc54c5161fef3bfd14509c64">add_backend</a>(std::string const &amp;name, std::auto_ptr&lt; localization_backend &gt; backend)</td><td><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">boost::locale::localization_backend_manager</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html#a89d377e934af287573212581cab70dd6">get</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">boost::locale::localization_backend_manager</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html#a7bd336cf325b0ee284ab8a07813679c0">get_all_backends</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">boost::locale::localization_backend_manager</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html#a65649bc161a0cc160da9b40a9ad14e20">global</a>(localization_backend_manager const &amp;)</td><td><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">boost::locale::localization_backend_manager</a></td><td><code> [static]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html#a0935a48d3012f62197f4e92119ee62b5">global</a>()</td><td><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">boost::locale::localization_backend_manager</a></td><td><code> [static]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html#a0407271db5e7722f901c510474c3581f">localization_backend_manager</a>()</td><td><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">boost::locale::localization_backend_manager</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html#ad2fb02931f4b202eedc46b3da4a24449">localization_backend_manager</a>(localization_backend_manager const &amp;)</td><td><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">boost::locale::localization_backend_manager</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html#af506ec1809f2f67c71f590862f63eeab">operator=</a>(localization_backend_manager const &amp;)</td><td><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">boost::locale::localization_backend_manager</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html#a8c9841c83aa85dbf8f61b2e17732499a">remove_all_backends</a>()</td><td><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">boost::locale::localization_backend_manager</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html#adf33775a09e7a765c3401e769019e915">select</a>(std::string const &amp;backend_name, locale_category_type category=all_categories)</td><td><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">boost::locale::localization_backend_manager</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html#a7e602229ef95ea60834fdea95110bf19">~localization_backend_manager</a>()</td><td><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">boost::locale::localization_backend_manager</a></td><td></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,345 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::localization_backend_manager Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">boost::locale::localization_backend_manager</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> </div>
<div class="headertitle">
<h1>boost::locale::localization_backend_manager Class Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::localization_backend_manager" -->
<p>Localization backend manager is a class that holds various backend and allows creation of their combination or selection.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="localization__backend_8hpp_source.html">boost/locale/localization_backend.hpp</a>&gt;</code></p>
<p><a href="classboost_1_1locale_1_1localization__backend__manager-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html#a0407271db5e7722f901c510474c3581f">localization_backend_manager</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html#ad2fb02931f4b202eedc46b3da4a24449">localization_backend_manager</a> (<a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">localization_backend_manager</a> const &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">localization_backend_manager</a> <br class="typebreak"/>
const &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html#af506ec1809f2f67c71f590862f63eeab">operator=</a> (<a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">localization_backend_manager</a> const &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html#a7e602229ef95ea60834fdea95110bf19">~localization_backend_manager</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::auto_ptr<br class="typebreak"/>
&lt; <a class="el" href="classboost_1_1locale_1_1localization__backend.html">localization_backend</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html#a89d377e934af287573212581cab70dd6">get</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html#ae3c6eca5cc54c5161fef3bfd14509c64">add_backend</a> (std::string const &amp;name, std::auto_ptr&lt; <a class="el" href="classboost_1_1locale_1_1localization__backend.html">localization_backend</a> &gt; backend)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html#a8c9841c83aa85dbf8f61b2e17732499a">remove_all_backends</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::string &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html#a7bd336cf325b0ee284ab8a07813679c0">get_all_backends</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html#adf33775a09e7a765c3401e769019e915">select</a> (std::string const &amp;backend_name, <a class="el" href="namespaceboost_1_1locale.html#a32e8cb87d2f68a5577dbb7ce55c0d2b1">locale_category_type</a> category=<a class="el" href="namespaceboost_1_1locale.html#ab51b0b65a19b1db3adc14e9866097e2a">all_categories</a>)</td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">localization_backend_manager</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html#a65649bc161a0cc160da9b40a9ad14e20">global</a> (<a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">localization_backend_manager</a> const &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">localization_backend_manager</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html#a0935a48d3012f62197f4e92119ee62b5">global</a> ()</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Localization backend manager is a class that holds various backend and allows creation of their combination or selection. </p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a0407271db5e7722f901c510474c3581f"></a><!-- doxytag: member="boost::locale::localization_backend_manager::localization_backend_manager" ref="a0407271db5e7722f901c510474c3581f" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">boost::locale::localization_backend_manager::localization_backend_manager </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>New empty <a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html" title="Localization backend manager is a class that holds various backend and allows creation of their combi...">localization_backend_manager</a> </p>
</div>
</div>
<a class="anchor" id="ad2fb02931f4b202eedc46b3da4a24449"></a><!-- doxytag: member="boost::locale::localization_backend_manager::localization_backend_manager" ref="ad2fb02931f4b202eedc46b3da4a24449" args="(localization_backend_manager const &amp;)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">boost::locale::localization_backend_manager::localization_backend_manager </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">localization_backend_manager</a> const &amp;&nbsp;</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Copy <a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html" title="Localization backend manager is a class that holds various backend and allows creation of their combi...">localization_backend_manager</a> </p>
</div>
</div>
<a class="anchor" id="a7e602229ef95ea60834fdea95110bf19"></a><!-- doxytag: member="boost::locale::localization_backend_manager::~localization_backend_manager" ref="a7e602229ef95ea60834fdea95110bf19" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">boost::locale::localization_backend_manager::~localization_backend_manager </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Destructor </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ae3c6eca5cc54c5161fef3bfd14509c64"></a><!-- doxytag: member="boost::locale::localization_backend_manager::add_backend" ref="ae3c6eca5cc54c5161fef3bfd14509c64" args="(std::string const &amp;name, std::auto_ptr&lt; localization_backend &gt; backend)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void boost::locale::localization_backend_manager::add_backend </td>
<td>(</td>
<td class="paramtype">std::string const &amp;&nbsp;</td>
<td class="paramname"> <em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::auto_ptr&lt; <a class="el" href="classboost_1_1locale_1_1localization__backend.html">localization_backend</a> &gt;&nbsp;</td>
<td class="paramname"> <em>backend</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Add new backend to the manager, each backend should be uniquely defined by its name.</p>
<p>This library provides: "icu", "posix", "winapi" and "std" backends. </p>
</div>
</div>
<a class="anchor" id="a89d377e934af287573212581cab70dd6"></a><!-- doxytag: member="boost::locale::localization_backend_manager::get" ref="a89d377e934af287573212581cab70dd6" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::auto_ptr&lt;<a class="el" href="classboost_1_1locale_1_1localization__backend.html">localization_backend</a>&gt; boost::locale::localization_backend_manager::get </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create new localization backend according to current settings. </p>
</div>
</div>
<a class="anchor" id="a7bd336cf325b0ee284ab8a07813679c0"></a><!-- doxytag: member="boost::locale::localization_backend_manager::get_all_backends" ref="a7bd336cf325b0ee284ab8a07813679c0" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::vector&lt;std::string&gt; boost::locale::localization_backend_manager::get_all_backends </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get list of all available backends </p>
</div>
</div>
<a class="anchor" id="a0935a48d3012f62197f4e92119ee62b5"></a><!-- doxytag: member="boost::locale::localization_backend_manager::global" ref="a0935a48d3012f62197f4e92119ee62b5" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">localization_backend_manager</a> boost::locale::localization_backend_manager::global </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get global backend manager</p>
<p>This function is thread safe </p>
</div>
</div>
<a class="anchor" id="a65649bc161a0cc160da9b40a9ad14e20"></a><!-- doxytag: member="boost::locale::localization_backend_manager::global" ref="a65649bc161a0cc160da9b40a9ad14e20" args="(localization_backend_manager const &amp;)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">localization_backend_manager</a> boost::locale::localization_backend_manager::global </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">localization_backend_manager</a> const &amp;&nbsp;</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set new global backend manager, the old one is returned.</p>
<p>This function is thread safe </p>
</div>
</div>
<a class="anchor" id="af506ec1809f2f67c71f590862f63eeab"></a><!-- doxytag: member="boost::locale::localization_backend_manager::operator=" ref="af506ec1809f2f67c71f590862f63eeab" args="(localization_backend_manager const &amp;)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">localization_backend_manager</a> const&amp; boost::locale::localization_backend_manager::operator= </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">localization_backend_manager</a> const &amp;&nbsp;</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Assign <a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html" title="Localization backend manager is a class that holds various backend and allows creation of their combi...">localization_backend_manager</a> </p>
</div>
</div>
<a class="anchor" id="a8c9841c83aa85dbf8f61b2e17732499a"></a><!-- doxytag: member="boost::locale::localization_backend_manager::remove_all_backends" ref="a8c9841c83aa85dbf8f61b2e17732499a" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void boost::locale::localization_backend_manager::remove_all_backends </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Clear backend </p>
</div>
</div>
<a class="anchor" id="adf33775a09e7a765c3401e769019e915"></a><!-- doxytag: member="boost::locale::localization_backend_manager::select" ref="adf33775a09e7a765c3401e769019e915" args="(std::string const &amp;backend_name, locale_category_type category=all_categories)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void boost::locale::localization_backend_manager::select </td>
<td>(</td>
<td class="paramtype">std::string const &amp;&nbsp;</td>
<td class="paramname"> <em>backend_name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceboost_1_1locale.html#a32e8cb87d2f68a5577dbb7ce55c0d2b1">locale_category_type</a>&nbsp;</td>
<td class="paramname"> <em>category</em> = <code><a class="el" href="namespaceboost_1_1locale.html#ab51b0b65a19b1db3adc14e9866097e2a">all_categories</a></code></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Select specific backend by name for a category <em>category</em>. It allows combining different backends for user preferences. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/<a class="el" href="localization__backend_8hpp_source.html">localization_backend.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,87 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::message_format&lt; CharType &gt; Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1message__format.html">boost::locale::message_format&lt; CharType &gt;</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1message__format.html#a83f473295edf14b9e1ae1476b81231bc">char_type</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1message__format.html">boost::locale::message_format&lt; CharType &gt;</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#ga3f2c9d7f9a363efa607738083a986251">convert</a>(char_type const *msg, string_type &amp;buffer) const =0</td><td><a class="el" href="classboost_1_1locale_1_1message__format.html">boost::locale::message_format&lt; CharType &gt;</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#ga73e25178ba9ef91ebe1df0aade4d8ae6">domain</a>(std::string const &amp;domain) const =0</td><td><a class="el" href="classboost_1_1locale_1_1message__format.html">boost::locale::message_format&lt; CharType &gt;</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#ga4f65e4e1c3995eb09dd8f8f0e150a012">get</a>(int domain_id, char_type const *context, char_type const *id) const =0</td><td><a class="el" href="classboost_1_1locale_1_1message__format.html">boost::locale::message_format&lt; CharType &gt;</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#gabb35b8a77bca9d28c5d5c266b66fe291">get</a>(int domain_id, char_type const *context, char_type const *single_id, int n) const =0</td><td><a class="el" href="classboost_1_1locale_1_1message__format.html">boost::locale::message_format&lt; CharType &gt;</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#gafa681d0df94a35f9d75c16dea099d03e">message_format</a>(size_t refs=0)</td><td><a class="el" href="classboost_1_1locale_1_1message__format.html">boost::locale::message_format&lt; CharType &gt;</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="group__message.html#gaaa932705310ce196fccc9d672b25518f">string_type</a> typedef</td><td><a class="el" href="classboost_1_1locale_1_1message__format.html">boost::locale::message_format&lt; CharType &gt;</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>~message_format</b>() (defined in <a class="el" href="classboost_1_1locale_1_1message__format.html">boost::locale::message_format&lt; CharType &gt;</a>)</td><td><a class="el" href="classboost_1_1locale_1_1message__format.html">boost::locale::message_format&lt; CharType &gt;</a></td><td><code> [inline, protected, virtual]</code></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,137 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::message_format&lt; CharType &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1message__format.html">boost::locale::message_format&lt; CharType &gt;</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<h1>boost::locale::message_format&lt; CharType &gt; Class Template Reference<br/>
<small>
[<a class="el" href="group__message.html">Message Formatting (translation)</a>]</small>
</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::message_format" -->
<p>This facet provides message formatting abilities.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="message_8hpp_source.html">boost/locale/message.hpp</a>&gt;</code></p>
<p><a href="classboost_1_1locale_1_1message__format-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef CharType&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1message__format.html#a83f473295edf14b9e1ae1476b81231bc">char_type</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef std::basic_string<br class="typebreak"/>
&lt; CharType &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#gaaa932705310ce196fccc9d672b25518f">string_type</a></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#gafa681d0df94a35f9d75c16dea099d03e">message_format</a> (size_t refs=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classboost_1_1locale_1_1message__format.html#a83f473295edf14b9e1ae1476b81231bc">char_type</a> const *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#ga4f65e4e1c3995eb09dd8f8f0e150a012">get</a> (int domain_id, <a class="el" href="classboost_1_1locale_1_1message__format.html#a83f473295edf14b9e1ae1476b81231bc">char_type</a> const *context, <a class="el" href="classboost_1_1locale_1_1message__format.html#a83f473295edf14b9e1ae1476b81231bc">char_type</a> const *id) const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classboost_1_1locale_1_1message__format.html#a83f473295edf14b9e1ae1476b81231bc">char_type</a> const *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#gabb35b8a77bca9d28c5d5c266b66fe291">get</a> (int domain_id, <a class="el" href="classboost_1_1locale_1_1message__format.html#a83f473295edf14b9e1ae1476b81231bc">char_type</a> const *context, <a class="el" href="classboost_1_1locale_1_1message__format.html#a83f473295edf14b9e1ae1476b81231bc">char_type</a> const *single_id, int n) const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#ga73e25178ba9ef91ebe1df0aade4d8ae6">domain</a> (std::string const &amp;domain) const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classboost_1_1locale_1_1message__format.html#a83f473295edf14b9e1ae1476b81231bc">char_type</a> const *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__message.html#ga3f2c9d7f9a363efa607738083a986251">convert</a> (<a class="el" href="classboost_1_1locale_1_1message__format.html#a83f473295edf14b9e1ae1476b81231bc">char_type</a> const *msg, <a class="el" href="group__message.html#gaaa932705310ce196fccc9d672b25518f">string_type</a> &amp;buffer) const =0</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;typename CharType&gt;<br/>
class boost::locale::message_format&lt; CharType &gt;</h3>
<p>This facet provides message formatting abilities. </p>
<hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="a83f473295edf14b9e1ae1476b81231bc"></a><!-- doxytag: member="boost::locale::message_format::char_type" ref="a83f473295edf14b9e1ae1476b81231bc" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename CharType&gt; </div>
<table class="memname">
<tr>
<td class="memname">typedef CharType <a class="el" href="classboost_1_1locale_1_1message__format.html">boost::locale::message_format</a>&lt; CharType &gt;::<a class="el" href="classboost_1_1locale_1_1message__format.html#a83f473295edf14b9e1ae1476b81231bc">char_type</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Character type </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/<a class="el" href="message_8hpp_source.html">message.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,83 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::period::period_type Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">boost::locale::period::period_type</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html#ad81b414edc6ea88accc5dad5d17a351b">mark</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">boost::locale::period::period_type</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html#a0156ce442f97fd86fa7c702e4d24031a">operator!=</a>(period_type const &amp;other) const </td><td><a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">boost::locale::period::period_type</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html#a53ac6fdbaa7ae1b6d90e67bb5aadcce0">operator==</a>(period_type const &amp;other) const </td><td><a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">boost::locale::period::period_type</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html#a8abba35d5073884677ce69ec3ba3eba7">period_type</a>(marks::period_mark m=marks::invalid)</td><td><a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">boost::locale::period::period_type</a></td><td><code> [inline]</code></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,187 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::period::period_type Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="namespaceboost_1_1locale_1_1period.html">period</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">boost::locale::period::period_type</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<h1>boost::locale::period::period_type Class Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::period::period_type" -->
<p>This class holds a type that represents certain period of time like year, hour, second and so on.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="date__time__facet_8hpp_source.html">boost/locale/date_time_facet.hpp</a>&gt;</code></p>
<p><a href="classboost_1_1locale_1_1period_1_1period__type-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html#a8abba35d5073884677ce69ec3ba3eba7">period_type</a> (<a class="el" href="namespaceboost_1_1locale_1_1period_1_1marks.html#a1536eaff4b2a880782128fc127f40d3a">marks::period_mark</a> m=marks::invalid)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceboost_1_1locale_1_1period_1_1marks.html#a1536eaff4b2a880782128fc127f40d3a">marks::period_mark</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html#ad81b414edc6ea88accc5dad5d17a351b">mark</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html#a53ac6fdbaa7ae1b6d90e67bb5aadcce0">operator==</a> (<a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">period_type</a> const &amp;other) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html#a0156ce442f97fd86fa7c702e4d24031a">operator!=</a> (<a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">period_type</a> const &amp;other) const </td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>This class holds a type that represents certain period of time like year, hour, second and so on. </p>
<p>It can be created from either <a class="el" href="namespaceboost_1_1locale_1_1period_1_1marks.html#a1536eaff4b2a880782128fc127f40d3a" title="the type that defines a flag that holds a period identifier">marks::period_mark</a> type or by using shortcuts in period namespace - calling functions like <a class="el" href="namespaceboost_1_1locale_1_1period.html#a9ea8d1453bed512ee16bea3199fd92af">period::year()</a>, <a class="el" href="namespaceboost_1_1locale_1_1period.html#a35f2ca900e3cda757c4598b686ca5969">period::hour()</a> and so on.</p>
<p>Basically it represents the same object as enum <a class="el" href="namespaceboost_1_1locale_1_1period_1_1marks.html#a1536eaff4b2a880782128fc127f40d3a" title="the type that defines a flag that holds a period identifier">marks::period_mark</a> but allows to provide save operator overloading that would not collide with casing of enum to numeric values. </p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a8abba35d5073884677ce69ec3ba3eba7"></a><!-- doxytag: member="boost::locale::period::period_type::period_type" ref="a8abba35d5073884677ce69ec3ba3eba7" args="(marks::period_mark m=marks::invalid)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">boost::locale::period::period_type::period_type </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespaceboost_1_1locale_1_1period_1_1marks.html#a1536eaff4b2a880782128fc127f40d3a">marks::period_mark</a>&nbsp;</td>
<td class="paramname"> <em>m</em> = <code>marks::invalid</code></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a period of specific type, default is invalid. </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ad81b414edc6ea88accc5dad5d17a351b"></a><!-- doxytag: member="boost::locale::period::period_type::mark" ref="ad81b414edc6ea88accc5dad5d17a351b" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceboost_1_1locale_1_1period_1_1marks.html#a1536eaff4b2a880782128fc127f40d3a">marks::period_mark</a> boost::locale::period::period_type::mark </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the value of <a class="el" href="namespaceboost_1_1locale_1_1period_1_1marks.html#a1536eaff4b2a880782128fc127f40d3a" title="the type that defines a flag that holds a period identifier">marks::period_mark</a> it was created with. </p>
</div>
</div>
<a class="anchor" id="a0156ce442f97fd86fa7c702e4d24031a"></a><!-- doxytag: member="boost::locale::period::period_type::operator!=" ref="a0156ce442f97fd86fa7c702e4d24031a" args="(period_type const &amp;other) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool boost::locale::period::period_type::operator!= </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">period_type</a> const &amp;&nbsp;</td>
<td class="paramname"> <em>other</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Check if two periods are different </p>
</div>
</div>
<a class="anchor" id="a53ac6fdbaa7ae1b6d90e67bb5aadcce0"></a><!-- doxytag: member="boost::locale::period::period_type::operator==" ref="a53ac6fdbaa7ae1b6d90e67bb5aadcce0" args="(period_type const &amp;other) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool boost::locale::period::period_type::operator== </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">period_type</a> const &amp;&nbsp;</td>
<td class="paramname"> <em>other</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Check if two periods are the same </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/<a class="el" href="date__time__facet_8hpp_source.html">date_time_facet.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,87 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>boost::locale::util::base_converter Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html">boost::locale::util::base_converter</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html#a702b31840be6f5c540cd22ac75cb2349">clone</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html">boost::locale::util::base_converter</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html#afeecf1ee2699c26960cbf2d7d6d71d41">from_unicode</a>(uint32_t u, char *begin, char const *end)</td><td><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html">boost::locale::util::base_converter</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html#aa02e2dfd8ddc2b40a8705c6ea7fa8d48">illegal</a></td><td><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html">boost::locale::util::base_converter</a></td><td><code> [static]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html#aa78dd2bae2783e31a00849a4e74aeb1e">incomplete</a></td><td><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html">boost::locale::util::base_converter</a></td><td><code> [static]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html#aadcc2c1a767f9d24972c6995e81c1315">is_thread_safe</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html">boost::locale::util::base_converter</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html#ab2332b78e3e0c0b94ea3f6dafd123d60">max_len</a>() const </td><td><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html">boost::locale::util::base_converter</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html#a27181b314e09f62ae9ea8fcd30d4e7c4">to_unicode</a>(char const *&amp;begin, char const *end)</td><td><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html">boost::locale::util::base_converter</a></td><td><code> [inline, virtual]</code></td></tr>
<tr bgcolor="#f0f0f0"><td><b>~base_converter</b>() (defined in <a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html">boost::locale::util::base_converter</a>)</td><td><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html">boost::locale::util::base_converter</a></td><td><code> [inline, virtual]</code></td></tr>
</table></div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,272 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost::locale::util::base_converter Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>boost</b> </li>
<li><a class="el" href="namespaceboost_1_1locale.html">locale</a> </li>
<li><a class="el" href="namespaceboost_1_1locale_1_1util.html">util</a> </li>
<li><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html">boost::locale::util::base_converter</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> </div>
<div class="headertitle">
<h1>boost::locale::util::base_converter Class Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="boost::locale::util::base_converter" -->
<p>This class represent a simple stateless converter from UCS-4 and to UCS-4 for each single code point.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="util_8hpp_source.html">boost/locale/util.hpp</a>&gt;</code></p>
<p><a href="classboost_1_1locale_1_1util_1_1base__converter-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html#ab2332b78e3e0c0b94ea3f6dafd123d60">max_len</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html#aadcc2c1a767f9d24972c6995e81c1315">is_thread_safe</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html">base_converter</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html#a702b31840be6f5c540cd22ac75cb2349">clone</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual uint32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html#a27181b314e09f62ae9ea8fcd30d4e7c4">to_unicode</a> (char const *&amp;begin, char const *end)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual uint32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html#afeecf1ee2699c26960cbf2d7d6d71d41">from_unicode</a> (uint32_t u, char *begin, char const *end)</td></tr>
<tr><td colspan="2"><h2><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const uint32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html#aa02e2dfd8ddc2b40a8705c6ea7fa8d48">illegal</a> = 0xFFFFFFFF</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const uint32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html#aa78dd2bae2783e31a00849a4e74aeb1e">incomplete</a> = 0xFFFFFFFE</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>This class represent a simple stateless converter from UCS-4 and to UCS-4 for each single code point. </p>
<p>This class is used for creation of std::codecvt facet for converting utf-16/utf-32 encoding to encoding supported by this converter</p>
<p>Please note, this converter should be fully stateless. Fully stateless means it should never assume that it is called in any specific order on the text. Even if the encoding itself seems to be stateless like windows-1255 or shift-jis, some encoders (most notably iconv) can actually compose several code-point into one or decompose them in case composite characters are found. So be very careful when implementing these converters for certain character set. </p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a702b31840be6f5c540cd22ac75cb2349"></a><!-- doxytag: member="boost::locale::util::base_converter::clone" ref="a702b31840be6f5c540cd22ac75cb2349" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html">base_converter</a>* boost::locale::util::base_converter::clone </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a polymorphic copy of this object, usually called only if <a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html#aadcc2c1a767f9d24972c6995e81c1315">is_thread_safe()</a> return false </p>
</div>
</div>
<a class="anchor" id="afeecf1ee2699c26960cbf2d7d6d71d41"></a><!-- doxytag: member="boost::locale::util::base_converter::from_unicode" ref="afeecf1ee2699c26960cbf2d7d6d71d41" args="(uint32_t u, char *begin, char const *end)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual uint32_t boost::locale::util::base_converter::from_unicode </td>
<td>(</td>
<td class="paramtype">uint32_t&nbsp;</td>
<td class="paramname"> <em>u</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char *&nbsp;</td>
<td class="paramname"> <em>begin</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char const *&nbsp;</td>
<td class="paramname"> <em>end</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Convert a single code-point <em>u</em> into encoding and store it in [begin,end) range.</p>
<p>If u is invalid Unicode code-point, or it can not be mapped correctly to represented character set, <em>illegal</em> should be returned</p>
<p>If u can be converted to a sequence of bytes c1, ... , cN (1&lt;= N &lt;= <a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html#ab2332b78e3e0c0b94ea3f6dafd123d60">max_len()</a> ) then</p>
<ol type="1">
<li>If end - begin &gt;= N, c1, ... cN are written starting at begin and N is returned</li>
<li>If end - begin &lt; N, incomplete is returned, it is unspecified what would be stored in bytes in range [begin,end) </li>
</ol>
</div>
</div>
<a class="anchor" id="aadcc2c1a767f9d24972c6995e81c1315"></a><!-- doxytag: member="boost::locale::util::base_converter::is_thread_safe" ref="aadcc2c1a767f9d24972c6995e81c1315" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool boost::locale::util::base_converter::is_thread_safe </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns true if calling the functions from_unicode, to_unicode, and max_len is thread safe.</p>
<p>Rule of thumb: if this class' implementation uses simple tables that are unchanged or is purely algorithmic like UTF-8 - so it does not share any mutable bit for independent to_unicode, from_unicode calls, you may set it to true, otherwise, for example if you use iconv_t descriptor or UConverter as conversion object return false, and this object will be cloned for each use. </p>
</div>
</div>
<a class="anchor" id="ab2332b78e3e0c0b94ea3f6dafd123d60"></a><!-- doxytag: member="boost::locale::util::base_converter::max_len" ref="ab2332b78e3e0c0b94ea3f6dafd123d60" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual int boost::locale::util::base_converter::max_len </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return the maximal length that one Unicode code-point can be converted to, for example for UTF-8 it is 4, for Shift-JIS it is 2 and ISO-8859-1 is 1 </p>
</div>
</div>
<a class="anchor" id="a27181b314e09f62ae9ea8fcd30d4e7c4"></a><!-- doxytag: member="boost::locale::util::base_converter::to_unicode" ref="a27181b314e09f62ae9ea8fcd30d4e7c4" args="(char const *&amp;begin, char const *end)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual uint32_t boost::locale::util::base_converter::to_unicode </td>
<td>(</td>
<td class="paramtype">char const *&amp;&nbsp;</td>
<td class="paramname"> <em>begin</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char const *&nbsp;</td>
<td class="paramname"> <em>end</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Convert a single character starting at begin and ending at most at end to Unicode code-point.</p>
<p>if valid input sequence found in [<em>begin</em>,<em>code_point_end</em>) such as <em>begin</em> &lt; <em>code_point_end</em> &amp;&amp; <em>code_point_end</em> &lt;= <em>end</em> it is converted to its Unicode code point equivalent, <em>begin</em> is set to <em>code_point_end</em> </p>
<p>if incomplete input sequence found in [<em>begin</em>,<em>end</em>), i.e. there my be such <em>code_point_end</em> that <em>code_point_end</em> &gt; <em>end</em> and [<em>begin</em>, <em>code_point_end</em>) would be valid input sequence, then <em>incomplete</em> is returned begin stays unchanged, for example for UTF-8 conversion a *begin = 0xc2, <em>begin</em> +1 = <em>end</em> is such situation.</p>
<p>if invalid input sequence found, i.e. there there is a sequence [<em>begin</em>, <em>code_point_end</em>) such as <em>code_point_end</em> &lt;= <em>end</em> that is illegal for this encoding, <em>illegal</em> is returned and begin stays unchanged. For example if *begin = 0xFF and begin &lt; end for UTF-8, then <em>illegal</em> is returned. </p>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="aa02e2dfd8ddc2b40a8705c6ea7fa8d48"></a><!-- doxytag: member="boost::locale::util::base_converter::illegal" ref="aa02e2dfd8ddc2b40a8705c6ea7fa8d48" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const uint32_t <a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html#aa02e2dfd8ddc2b40a8705c6ea7fa8d48">boost::locale::util::base_converter::illegal</a> = 0xFFFFFFFF<code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>This value should be returned when an illegal input sequence or code-point is observed: For example if a UCS-32 code-point is in the range reserved for UTF-16 surrogates or an invalid UTF-8 sequence is found </p>
</div>
</div>
<a class="anchor" id="aa78dd2bae2783e31a00849a4e74aeb1e"></a><!-- doxytag: member="boost::locale::util::base_converter::incomplete" ref="aa78dd2bae2783e31a00849a4e74aeb1e" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const uint32_t <a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html#aa78dd2bae2783e31a00849a4e74aeb1e">boost::locale::util::base_converter::incomplete</a> = 0xFFFFFFFE<code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>This value is returned in following cases: The of incomplete input sequence was found or insufficient output buffer was provided so complete output could not be written. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>boost/locale/<a class="el" href="util_8hpp_source.html">util.hpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

92
doc/html/classes.html Normal file
View File

@@ -0,0 +1,92 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Alphabetical List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>Class Index</h1> </div>
</div>
<div class="contents">
<div class="qindex"><a class="qindex" href="#letter_A">A</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_B">B</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_C">C</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_D">D</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_G">G</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_H">H</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_I">I</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_L">L</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_M">M</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_P">P</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_S">S</a></div>
<table align="center" width="95%" border="0" cellspacing="0" cellpadding="0">
<tr><td><a name="letter_A"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&nbsp;&nbsp;A&nbsp;&nbsp;</div></td></tr></table>
</td><td><a name="letter_C"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&nbsp;&nbsp;C&nbsp;&nbsp;</div></td></tr></table>
</td><td><a name="letter_D"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&nbsp;&nbsp;D&nbsp;&nbsp;</div></td></tr></table>
</td><td><a name="letter_H"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&nbsp;&nbsp;H&nbsp;&nbsp;</div></td></tr></table>
</td><td><a name="letter_M"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&nbsp;&nbsp;M&nbsp;&nbsp;</div></td></tr></table>
</td></tr><tr><td><a class="el" href="classboost_1_1locale_1_1abstract__calendar.html">abstract_calendar</a> (<a class="el" href="namespaceboost_1_1locale.html">boost::locale</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classboost_1_1locale_1_1calendar.html">calendar</a> (<a class="el" href="namespaceboost_1_1locale.html">boost::locale</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classboost_1_1locale_1_1date__time.html">date_time</a> (<a class="el" href="namespaceboost_1_1locale.html">boost::locale</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classboost_1_1locale_1_1hold__ptr.html">hold_ptr</a> (<a class="el" href="namespaceboost_1_1locale.html">boost::locale</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classboost_1_1locale_1_1message__format.html">message_format</a> (<a class="el" href="namespaceboost_1_1locale.html">boost::locale</a>)&nbsp;&nbsp;&nbsp;</td></tr><tr><td><a name="letter_B"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&nbsp;&nbsp;B&nbsp;&nbsp;</div></td></tr></table>
</td><td><a class="el" href="classboost_1_1locale_1_1calendar__facet.html">calendar_facet</a> (<a class="el" href="namespaceboost_1_1locale.html">boost::locale</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classboost_1_1locale_1_1date__time__duration.html">date_time_duration</a> (<a class="el" href="namespaceboost_1_1locale.html">boost::locale</a>)&nbsp;&nbsp;&nbsp;</td><td><a name="letter_I"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&nbsp;&nbsp;I&nbsp;&nbsp;</div></td></tr></table>
</td><td><a class="el" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html">messages_info</a> (<a class="el" href="namespaceboost_1_1locale_1_1gnu__gettext.html">boost::locale::gnu_gettext</a>)&nbsp;&nbsp;&nbsp;</td></tr><tr><td><a class="el" href="classboost_1_1locale_1_1util_1_1base__converter.html">base_converter</a> (<a class="el" href="namespaceboost_1_1locale_1_1util.html">boost::locale::util</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classboost_1_1locale_1_1collator.html">collator</a> (<a class="el" href="namespaceboost_1_1locale.html">boost::locale</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classboost_1_1locale_1_1date__time__error.html">date_time_error</a> (<a class="el" href="namespaceboost_1_1locale.html">boost::locale</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classboost_1_1locale_1_1info.html">info</a> (<a class="el" href="namespaceboost_1_1locale.html">boost::locale</a>)&nbsp;&nbsp;&nbsp;</td><td><a name="letter_P"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&nbsp;&nbsp;P&nbsp;&nbsp;</div></td></tr></table>
</td></tr><tr><td><a class="el" href="classboost_1_1locale_1_1basic__format.html">basic_format</a> (<a class="el" href="namespaceboost_1_1locale.html">boost::locale</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classboost_1_1locale_1_1collator__base.html">collator_base</a> (<a class="el" href="namespaceboost_1_1locale.html">boost::locale</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="structboost_1_1locale_1_1date__time__period.html">date_time_period</a> (<a class="el" href="namespaceboost_1_1locale.html">boost::locale</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classboost_1_1locale_1_1conv_1_1invalid__charset__error.html">invalid_charset_error</a> (<a class="el" href="namespaceboost_1_1locale_1_1conv.html">boost::locale::conv</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classboost_1_1locale_1_1period_1_1period__type.html">period_type</a> (<a class="el" href="namespaceboost_1_1locale_1_1period.html">boost::locale::period</a>)&nbsp;&nbsp;&nbsp;</td></tr><tr><td><a class="el" href="classboost_1_1locale_1_1basic__message.html">basic_message</a> (<a class="el" href="namespaceboost_1_1locale.html">boost::locale</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="structboost_1_1locale_1_1comparator.html">comparator</a> (<a class="el" href="namespaceboost_1_1locale.html">boost::locale</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classboost_1_1locale_1_1date__time__period__set.html">date_time_period_set</a> (<a class="el" href="namespaceboost_1_1locale.html">boost::locale</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classboost_1_1locale_1_1ios__info.html">ios_info</a> (<a class="el" href="namespaceboost_1_1locale.html">boost::locale</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="structboost_1_1locale_1_1posix__time.html">posix_time</a> (<a class="el" href="namespaceboost_1_1locale.html">boost::locale</a>)&nbsp;&nbsp;&nbsp;</td></tr><tr><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__indexing.html">boundary_indexing</a> (<a class="el" href="namespaceboost_1_1locale_1_1boundary.html">boost::locale::boundary</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classboost_1_1locale_1_1conv_1_1conversion__error.html">conversion_error</a> (<a class="el" href="namespaceboost_1_1locale_1_1conv.html">boost::locale::conv</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html">messages_info::domain</a> (<a class="el" href="namespaceboost_1_1locale_1_1gnu__gettext.html">boost::locale::gnu_gettext</a>)&nbsp;&nbsp;&nbsp;</td><td><a name="letter_L"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&nbsp;&nbsp;L&nbsp;&nbsp;</div></td></tr></table>
</td><td><a name="letter_S"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&nbsp;&nbsp;S&nbsp;&nbsp;</div></td></tr></table>
</td></tr><tr><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point.html">boundary_point</a> (<a class="el" href="namespaceboost_1_1locale_1_1boundary.html">boost::locale::boundary</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classboost_1_1locale_1_1converter.html">converter</a> (<a class="el" href="namespaceboost_1_1locale.html">boost::locale</a>)&nbsp;&nbsp;&nbsp;</td><td><a name="letter_G"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&nbsp;&nbsp;G&nbsp;&nbsp;</div></td></tr></table>
</td><td><a class="el" href="classboost_1_1locale_1_1localization__backend.html">localization_backend</a> (<a class="el" href="namespaceboost_1_1locale.html">boost::locale</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment.html">segment</a> (<a class="el" href="namespaceboost_1_1locale_1_1boundary.html">boost::locale::boundary</a>)&nbsp;&nbsp;&nbsp;</td></tr><tr><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1boundary__point__index.html">boundary_point_index</a> (<a class="el" href="namespaceboost_1_1locale_1_1boundary.html">boost::locale::boundary</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classboost_1_1locale_1_1converter__base.html">converter_base</a> (<a class="el" href="namespaceboost_1_1locale.html">boost::locale</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classboost_1_1locale_1_1generator.html">generator</a> (<a class="el" href="namespaceboost_1_1locale.html">boost::locale</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">localization_backend_manager</a> (<a class="el" href="namespaceboost_1_1locale.html">boost::locale</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classboost_1_1locale_1_1boundary_1_1segment__index.html">segment_index</a> (<a class="el" href="namespaceboost_1_1locale_1_1boundary.html">boost::locale::boundary</a>)&nbsp;&nbsp;&nbsp;</td></tr><tr><td><a class="el" href="structboost_1_1locale_1_1boundary_1_1break__info.html">break_info</a> (<a class="el" href="namespaceboost_1_1locale_1_1boundary.html">boost::locale::boundary</a>)&nbsp;&nbsp;&nbsp;</td></tr></table><div class="qindex"><a class="qindex" href="#letter_A">A</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_B">B</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_C">C</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_D">D</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_G">G</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_H">H</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_I">I</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_L">L</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_M">M</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_P">P</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_S">S</a></div>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

BIN
doc/html/closed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

View File

@@ -0,0 +1,108 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: collate.cpp</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>collate.cpp</h1> </div>
</div>
<div class="contents">
<p>Example of using collation functions</p>
<div class="fragment"><pre class="fragment"><span class="comment">//</span>
<span class="comment">// Copyright (c) 2009-2011 Artyom Beilis (Tonkikh)</span>
<span class="comment">//</span>
<span class="comment">// Distributed under the Boost Software License, Version 1.0. (See</span>
<span class="comment">// accompanying file LICENSE_1_0.txt or copy at</span>
<span class="comment">// http://www.boost.org/LICENSE_1_0.txt)</span>
<span class="comment">//</span>
<span class="preprocessor">#include &lt;iostream&gt;</span>
<span class="preprocessor">#include &lt;string&gt;</span>
<span class="preprocessor">#include &lt;set&gt;</span>
<span class="preprocessor">#include &lt;boost/locale.hpp&gt;</span>
<span class="keyword">using namespace </span>std;
<span class="keyword">using namespace </span>boost::locale;
<span class="keywordtype">int</span> main()
{
<a name="_a0"></a><a class="code" href="classboost_1_1locale_1_1generator.html" title="the major class used for locale generation">generator</a> gen;
std::locale::global(gen(<span class="stringliteral">&quot;&quot;</span>));
<span class="keyword">typedef</span> std::set&lt;std::string,std::locale&gt; set_type;
set_type all_strings;
<span class="keywordflow">while</span>(!cin.eof()) {
std::string tmp;
getline(cin,tmp);
all_strings.insert(tmp);
}
<span class="keywordflow">for</span>(set_type::iterator p=all_strings.begin();p!=all_strings.end();++p) {
cout&lt;&lt;*p&lt;&lt;endl;
}
}
<span class="comment">// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4</span>
</pre></div> </div>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

96
doc/html/collation.html Normal file
View File

@@ -0,0 +1,96 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Collation</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><a class="el" href="main.html">Boost.Locale</a> </li>
<li><a class="el" href="using_boost_locale.html">Using Boost.Locale</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>Collation </h1> </div>
</div>
<div class="contents">
<p>Boost.Locale provides a <a class="el" href="classboost_1_1locale_1_1collator.html">collator</a> class, derived from <code>std::collate</code>, that adds support for primary, secondary, tertiary, quaternary and identical comparison levels. They can be approximately defined as:</p>
<ol type="1">
<li>Primary -- ignore accents and character case, comparing base letters only. For example "facade" and "Façade" are the same.</li>
<li>Secondary -- ignore character case but consider accents. "facade" and "façade" are different but "Façade" and "façade" are the same.</li>
<li>Tertiary -- consider both case and accents: "Façade" and "façade" are different. Ignore punctuation.</li>
<li>Quaternary -- consider all case, accents, and punctuation. The words must be identical in terms of Unicode representation.</li>
<li>Identical -- as quaternary, but compare code points as well.</li>
</ol>
<p>There are two ways of using the <a class="el" href="classboost_1_1locale_1_1collator.html">collator</a> facet: directly, by calling its member functions <a class="el" href="classboost_1_1locale_1_1collator.html#ab90dc7bb909a71d3cd9a5e8d7b2eb80e">compare</a>, <a class="el" href="classboost_1_1locale_1_1collator.html#a8dc6443fb193616332ca50f207a9b189">transform</a> and <a class="el" href="classboost_1_1locale_1_1collator.html#a89752e2023643f972b6cc8024340d5d4">hash</a>, or indirectly by using the <a class="el" href="structboost_1_1locale_1_1comparator.html">comparator</a> template class in STL algorithms.</p>
<p>For example:</p>
<div class="fragment"><pre class="fragment"> wstring a=L<span class="stringliteral">&quot;Façade&quot;</span>, b=L<span class="stringliteral">&quot;facade&quot;</span>;
<span class="keywordtype">bool</span> eq = 0 == use_facet&lt;collator&lt;wchar_t&gt; &gt;(loc).compare(collator_base::secondary,a,b);
wcout &lt;&lt; a &lt;&lt;L<span class="stringliteral">&quot; and &quot;</span>&lt;&lt;b&lt;&lt;L<span class="stringliteral">&quot; are &quot;</span> &lt;&lt; (eq ? L<span class="stringliteral">&quot;identical&quot;</span> : L<span class="stringliteral">&quot;different&quot;</span>)&lt;&lt;endl;
</pre></div><p><code>std::locale</code> is designed to be useful as a comparison class in STL collections and algorithms. To get similar functionality with comparison levels, you must use the comparator class.</p>
<div class="fragment"><pre class="fragment"> std::map&lt;std::string,std::string,comparator&lt;char,collator_base::secondary&gt; &gt; strings;
<span class="comment">// Now strings uses the default system locale for string comparison</span>
</pre></div><p>You can also set a specific locale or level when creating and using the <a class="el" href="structboost_1_1locale_1_1comparator.html">comparator</a> class:</p>
<div class="fragment"><pre class="fragment"> comparator&lt;char&gt; comp(some_locale,some_level);
std::map&lt;std::string,std::string,comparator&lt;char&gt; &gt; strings(comp);
</pre></div> </div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,221 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost/locale/collator.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
</ul>
</div>
<div class="header">
<div class="headertitle">
<h1>boost/locale/collator.hpp</h1> </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//</span>
<a name="l00002"></a>00002 <span class="comment">// Copyright (c) 2009-2011 Artyom Beilis (Tonkikh)</span>
<a name="l00003"></a>00003 <span class="comment">//</span>
<a name="l00004"></a>00004 <span class="comment">// Distributed under the Boost Software License, Version 1.0. (See</span>
<a name="l00005"></a>00005 <span class="comment">// accompanying file LICENSE_1_0.txt or copy at</span>
<a name="l00006"></a>00006 <span class="comment">// http://www.boost.org/LICENSE_1_0.txt)</span>
<a name="l00007"></a>00007 <span class="comment">//</span>
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef BOOST_LOCALE_COLLATOR_HPP_INCLUDED</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define BOOST_LOCALE_COLLATOR_HPP_INCLUDED</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;boost/locale/config.hpp&gt;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#ifdef BOOST_MSVC</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(push)</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(disable : 4275 4251 4231 4660)</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#include &lt;locale&gt;</span>
<a name="l00017"></a>00017
<a name="l00018"></a>00018
<a name="l00019"></a>00019 <span class="keyword">namespace </span>boost {
<a name="l00020"></a><a class="code" href="namespaceboost_1_1locale.html">00020</a> <span class="keyword">namespace </span>locale {
<a name="l00021"></a>00021
<a name="l00022"></a>00022 <span class="keyword">class </span><a class="code" href="classboost_1_1locale_1_1info.html" title="a facet that holds general information about locale">info</a>;
<a name="l00023"></a>00023
<a name="l00030"></a>00030
<a name="l00034"></a>00034
<a name="l00035"></a><a class="code" href="classboost_1_1locale_1_1collator__base.html">00035</a> <span class="keyword">class </span><a class="code" href="classboost_1_1locale_1_1collator__base.html" title="a base class that includes collation level flags">collator_base</a> {
<a name="l00036"></a>00036 <span class="keyword">public</span>:
<a name="l00040"></a><a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">00040</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00041"></a><a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22ae57e842f398a27ee490208f5af39675b">00041</a> <a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22ae57e842f398a27ee490208f5af39675b" title="1st collation level: base letters">primary</a> = 0,
<a name="l00042"></a><a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22ad8e103443d69f03f00ac4b68a7181866">00042</a> <a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22ad8e103443d69f03f00ac4b68a7181866" title="2nd collation level: letters and accents">secondary</a> = 1,
<a name="l00043"></a><a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22a3a852752e9663b7b3340c435d0cfe36a">00043</a> <a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22a3a852752e9663b7b3340c435d0cfe36a" title="3rd collation level: letters, accents and case">tertiary</a> = 2,
<a name="l00044"></a><a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22a22ca1875fd63667fbb018df16b0aedba">00044</a> <a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22a22ca1875fd63667fbb018df16b0aedba" title="4th collation level: letters, accents, case and punctuation">quaternary</a> = 3,
<a name="l00045"></a><a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22a3c209055ff840e311581ab43013026f2">00045</a> <a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22a3c209055ff840e311581ab43013026f2" title="identical collation level: include code-point comparison">identical</a> = 4
<a name="l00046"></a>00046 } level_type;
<a name="l00047"></a>00047 };
<a name="l00048"></a>00048
<a name="l00055"></a>00055 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType&gt;
<a name="l00056"></a><a class="code" href="classboost_1_1locale_1_1collator.html">00056</a> <span class="keyword">class </span><a class="code" href="classboost_1_1locale_1_1collator.html" title="Collation facet.">collator</a> :
<a name="l00057"></a>00057 <span class="keyword">public</span> std::collate&lt;CharType&gt;,
<a name="l00058"></a>00058 <span class="keyword">public</span> <a class="code" href="classboost_1_1locale_1_1collator__base.html" title="a base class that includes collation level flags">collator_base</a>
<a name="l00059"></a>00059 {
<a name="l00060"></a>00060 <span class="keyword">public</span>:
<a name="l00064"></a><a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">00064</a> <span class="keyword">typedef</span> CharType char_type;
<a name="l00068"></a><a class="code" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">00068</a> <span class="keyword">typedef</span> std::basic_string&lt;CharType&gt; string_type;
<a name="l00069"></a>00069
<a name="l00070"></a>00070
<a name="l00077"></a><a class="code" href="classboost_1_1locale_1_1collator.html#ab90dc7bb909a71d3cd9a5e8d7b2eb80e">00077</a> <span class="keywordtype">int</span> <a class="code" href="classboost_1_1locale_1_1collator.html#ab90dc7bb909a71d3cd9a5e8d7b2eb80e">compare</a>(<a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a> level,
<a name="l00078"></a>00078 <a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> <span class="keyword">const</span> *b1,<a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> <span class="keyword">const</span> *e1,
<a name="l00079"></a>00079 <a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> <span class="keyword">const</span> *b2,<a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> <span class="keyword">const</span> *e2)<span class="keyword"> const</span>
<a name="l00080"></a>00080 <span class="keyword"> </span>{
<a name="l00081"></a>00081 <span class="keywordflow">return</span> <a class="code" href="classboost_1_1locale_1_1collator.html#ada3a683bed35789e081b710a8e9a9a07">do_compare</a>(level,b1,e1,b2,e2);
<a name="l00082"></a>00082 }
<a name="l00094"></a><a class="code" href="classboost_1_1locale_1_1collator.html#a8dc6443fb193616332ca50f207a9b189">00094</a> <a class="code" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a> <a class="code" href="classboost_1_1locale_1_1collator.html#a8dc6443fb193616332ca50f207a9b189">transform</a>(<a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a> level,<a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> <span class="keyword">const</span> *b,<a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> <span class="keyword">const</span> *e)<span class="keyword"> const</span>
<a name="l00095"></a>00095 <span class="keyword"> </span>{
<a name="l00096"></a>00096 <span class="keywordflow">return</span> <a class="code" href="classboost_1_1locale_1_1collator.html#a84b5cb6ff01cf1a1330e1556a2c674d5">do_transform</a>(level,b,e);
<a name="l00097"></a>00097 }
<a name="l00098"></a>00098
<a name="l00106"></a><a class="code" href="classboost_1_1locale_1_1collator.html#a89752e2023643f972b6cc8024340d5d4">00106</a> <span class="keywordtype">long</span> <a class="code" href="classboost_1_1locale_1_1collator.html#a89752e2023643f972b6cc8024340d5d4">hash</a>(<a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a> level,<a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> <span class="keyword">const</span> *b,<a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> <span class="keyword">const</span> *e)<span class="keyword"> const</span>
<a name="l00107"></a>00107 <span class="keyword"> </span>{
<a name="l00108"></a>00108 <span class="keywordflow">return</span> <a class="code" href="classboost_1_1locale_1_1collator.html#aa093cd4ed0b4be4a5e38f0f04a56ac0b">do_hash</a>(level,b,e);
<a name="l00109"></a>00109 }
<a name="l00110"></a>00110
<a name="l00118"></a><a class="code" href="classboost_1_1locale_1_1collator.html#a9ccdfec693cdc5a71b5adc1f083881bf">00118</a> <span class="keywordtype">int</span> <a class="code" href="classboost_1_1locale_1_1collator.html#ab90dc7bb909a71d3cd9a5e8d7b2eb80e">compare</a>(<a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a> level,<a class="code" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a> <span class="keyword">const</span> &amp;l,<a class="code" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a> <span class="keyword">const</span> &amp;r)<span class="keyword"> const</span>
<a name="l00119"></a>00119 <span class="keyword"> </span>{
<a name="l00120"></a>00120 <span class="keywordflow">return</span> <a class="code" href="classboost_1_1locale_1_1collator.html#ada3a683bed35789e081b710a8e9a9a07">do_compare</a>(level,l.data(),l.data()+l.size(),r.data(),r.data()+r.size());
<a name="l00121"></a>00121 }
<a name="l00122"></a>00122
<a name="l00128"></a>00128
<a name="l00129"></a><a class="code" href="classboost_1_1locale_1_1collator.html#a76000f6cf10bfe63dd7fd10652de3f5b">00129</a> <span class="keywordtype">long</span> <a class="code" href="classboost_1_1locale_1_1collator.html#a89752e2023643f972b6cc8024340d5d4">hash</a>(<a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a> level,<a class="code" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a> <span class="keyword">const</span> &amp;s)<span class="keyword"> const</span>
<a name="l00130"></a>00130 <span class="keyword"> </span>{
<a name="l00131"></a>00131 <span class="keywordflow">return</span> <a class="code" href="classboost_1_1locale_1_1collator.html#aa093cd4ed0b4be4a5e38f0f04a56ac0b">do_hash</a>(level,s.data(),s.data()+s.size());
<a name="l00132"></a>00132 }
<a name="l00142"></a><a class="code" href="classboost_1_1locale_1_1collator.html#aa9976b4fa0fba6c5d1a1dea9b5ef02ca">00142</a> <a class="code" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a> <a class="code" href="classboost_1_1locale_1_1collator.html#a8dc6443fb193616332ca50f207a9b189">transform</a>(<a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a> level,<a class="code" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a> <span class="keyword">const</span> &amp;s)<span class="keyword"> const</span>
<a name="l00143"></a>00143 <span class="keyword"> </span>{
<a name="l00144"></a>00144 <span class="keywordflow">return</span> <a class="code" href="classboost_1_1locale_1_1collator.html#a84b5cb6ff01cf1a1330e1556a2c674d5">do_transform</a>(level,s.data(),s.data()+s.size());
<a name="l00145"></a>00145 }
<a name="l00146"></a>00146
<a name="l00147"></a>00147 <span class="keyword">protected</span>:
<a name="l00148"></a>00148
<a name="l00152"></a><a class="code" href="classboost_1_1locale_1_1collator.html#a25a8b21a756756e850a7488a54610053">00152</a> <a class="code" href="classboost_1_1locale_1_1collator.html#a25a8b21a756756e850a7488a54610053">collator</a>(<span class="keywordtype">size_t</span> refs = 0) : std::collate&lt;CharType&gt;(refs)
<a name="l00153"></a>00153 {
<a name="l00154"></a>00154 }
<a name="l00155"></a>00155
<a name="l00156"></a>00156 <span class="keyword">virtual</span> ~<a class="code" href="classboost_1_1locale_1_1collator.html" title="Collation facet.">collator</a>()
<a name="l00157"></a>00157 {
<a name="l00158"></a>00158 }
<a name="l00159"></a>00159
<a name="l00164"></a><a class="code" href="classboost_1_1locale_1_1collator.html#ada3a683bed35789e081b710a8e9a9a07">00164</a> <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classboost_1_1locale_1_1collator.html#ada3a683bed35789e081b710a8e9a9a07">do_compare</a>( <a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> <span class="keyword">const</span> *b1,<a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> <span class="keyword">const</span> *e1,
<a name="l00165"></a>00165 <a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> <span class="keyword">const</span> *b2,<a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> <span class="keyword">const</span> *e2)<span class="keyword"> const</span>
<a name="l00166"></a>00166 <span class="keyword"> </span>{
<a name="l00167"></a>00167 <span class="keywordflow">return</span> <a class="code" href="classboost_1_1locale_1_1collator.html#ada3a683bed35789e081b710a8e9a9a07">do_compare</a>(<a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22a3c209055ff840e311581ab43013026f2" title="identical collation level: include code-point comparison">identical</a>,b1,e1,b2,e2);
<a name="l00168"></a>00168 }
<a name="l00173"></a><a class="code" href="classboost_1_1locale_1_1collator.html#a84b5cb6ff01cf1a1330e1556a2c674d5">00173</a> <span class="keyword">virtual</span> <a class="code" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a> <a class="code" href="classboost_1_1locale_1_1collator.html#a84b5cb6ff01cf1a1330e1556a2c674d5">do_transform</a>(<a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> <span class="keyword">const</span> *b,<a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> <span class="keyword">const</span> *e)<span class="keyword"> const</span>
<a name="l00174"></a>00174 <span class="keyword"> </span>{
<a name="l00175"></a>00175 <span class="keywordflow">return</span> <a class="code" href="classboost_1_1locale_1_1collator.html#a84b5cb6ff01cf1a1330e1556a2c674d5">do_transform</a>(<a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22a3c209055ff840e311581ab43013026f2" title="identical collation level: include code-point comparison">identical</a>,b,e);
<a name="l00176"></a>00176 }
<a name="l00181"></a><a class="code" href="classboost_1_1locale_1_1collator.html#aa093cd4ed0b4be4a5e38f0f04a56ac0b">00181</a> <span class="keyword">virtual</span> <span class="keywordtype">long</span> <a class="code" href="classboost_1_1locale_1_1collator.html#aa093cd4ed0b4be4a5e38f0f04a56ac0b">do_hash</a>(<a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> <span class="keyword">const</span> *b,<a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> <span class="keyword">const</span> *e)<span class="keyword"> const</span>
<a name="l00182"></a>00182 <span class="keyword"> </span>{
<a name="l00183"></a>00183 <span class="keywordflow">return</span> <a class="code" href="classboost_1_1locale_1_1collator.html#aa093cd4ed0b4be4a5e38f0f04a56ac0b">do_hash</a>(<a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22a3c209055ff840e311581ab43013026f2" title="identical collation level: include code-point comparison">identical</a>,b,e);
<a name="l00184"></a>00184 }
<a name="l00185"></a>00185
<a name="l00189"></a>00189 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classboost_1_1locale_1_1collator.html#ada3a683bed35789e081b710a8e9a9a07">do_compare</a>( <a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a> level,
<a name="l00190"></a>00190 <a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> <span class="keyword">const</span> *b1,<a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> <span class="keyword">const</span> *e1,
<a name="l00191"></a>00191 <a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> <span class="keyword">const</span> *b2,<a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> <span class="keyword">const</span> *e2) <span class="keyword">const</span> = 0;
<a name="l00195"></a>00195 <span class="keyword">virtual</span> <a class="code" href="classboost_1_1locale_1_1collator.html#a106a3fe9e068530013c428661758733d">string_type</a> <a class="code" href="classboost_1_1locale_1_1collator.html#a84b5cb6ff01cf1a1330e1556a2c674d5">do_transform</a>(<a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a> level,<a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> <span class="keyword">const</span> *b,<a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> <span class="keyword">const</span> *e) <span class="keyword">const</span> = 0;
<a name="l00199"></a>00199 <span class="keyword">virtual</span> <span class="keywordtype">long</span> <a class="code" href="classboost_1_1locale_1_1collator.html#aa093cd4ed0b4be4a5e38f0f04a56ac0b">do_hash</a>(<a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">level_type</a> level,<a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> <span class="keyword">const</span> *b,<a class="code" href="classboost_1_1locale_1_1collator.html#a2b74a0b9a613a4a4337632bf34644c6f">char_type</a> <span class="keyword">const</span> *e) <span class="keyword">const</span> = 0;
<a name="l00200"></a>00200
<a name="l00201"></a>00201
<a name="l00202"></a>00202 };
<a name="l00203"></a>00203
<a name="l00216"></a>00216 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType,collator_base::level_type default_level = collator_base::<span class="keywordtype">id</span>entical&gt;
<a name="l00217"></a><a class="code" href="structboost_1_1locale_1_1comparator.html">00217</a> <span class="keyword">struct </span><a class="code" href="structboost_1_1locale_1_1comparator.html" title="This class can be used in STL algorithms and containers for comparison of strings with a level other ...">comparator</a>
<a name="l00218"></a>00218 {
<a name="l00219"></a>00219 <span class="keyword">public</span>:
<a name="l00225"></a><a class="code" href="structboost_1_1locale_1_1comparator.html#af40ee48c6c93b6e5d91492a3e0cb96a8">00225</a> <a class="code" href="structboost_1_1locale_1_1comparator.html#af40ee48c6c93b6e5d91492a3e0cb96a8">comparator</a>(std::locale <span class="keyword">const</span> &amp;l=std::locale(),<a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">collator_base::level_type</a> level=default_level) :
<a name="l00226"></a>00226 locale_(l),
<a name="l00227"></a>00227 level_(level)
<a name="l00228"></a>00228 {
<a name="l00229"></a>00229 }
<a name="l00230"></a>00230
<a name="l00234"></a><a class="code" href="structboost_1_1locale_1_1comparator.html#abd62dbc2af0eb6e6c261a7c88e09f752">00234</a> <span class="keywordtype">bool</span> <a class="code" href="structboost_1_1locale_1_1comparator.html#abd62dbc2af0eb6e6c261a7c88e09f752">operator()</a>(std::basic_string&lt;CharType&gt; <span class="keyword">const</span> &amp;left,std::basic_string&lt;CharType&gt; <span class="keyword">const</span> &amp;right)<span class="keyword"> const</span>
<a name="l00235"></a>00235 <span class="keyword"> </span>{
<a name="l00236"></a>00236 <span class="keywordflow">return</span> std::use_facet&lt;collator&lt;CharType&gt; &gt;(locale_).compare(level_,left,right) &lt; 0;
<a name="l00237"></a>00237 }
<a name="l00238"></a>00238 <span class="keyword">private</span>:
<a name="l00239"></a>00239 std::locale locale_;
<a name="l00240"></a>00240 <a class="code" href="classboost_1_1locale_1_1collator__base.html#a73c12de809733273304fef7f0af28b22">collator_base::level_type</a> level_;
<a name="l00241"></a>00241 };
<a name="l00242"></a>00242
<a name="l00243"></a>00243
<a name="l00247"></a>00247
<a name="l00248"></a>00248 } <span class="comment">// locale</span>
<a name="l00249"></a>00249 } <span class="comment">// boost</span>
<a name="l00250"></a>00250
<a name="l00251"></a>00251 <span class="preprocessor">#ifdef BOOST_MSVC</span>
<a name="l00252"></a>00252 <span class="preprocessor"></span><span class="preprocessor">#pragma warning(pop)</span>
<a name="l00253"></a>00253 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00254"></a>00254 <span class="preprocessor"></span>
<a name="l00255"></a>00255
<a name="l00256"></a>00256 <span class="preprocessor">#endif</span>
<a name="l00257"></a>00257 <span class="preprocessor"></span>
<a name="l00258"></a>00258
<a name="l00259"></a>00259
<a name="l00260"></a>00260
<a name="l00261"></a>00261 <span class="comment">// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,133 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost/locale/config.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
</ul>
</div>
<div class="header">
<div class="headertitle">
<h1>boost/locale/config.hpp</h1> </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//</span>
<a name="l00002"></a>00002 <span class="comment">// Copyright (c) 2009-2011 Artyom Beilis (Tonkikh)</span>
<a name="l00003"></a>00003 <span class="comment">//</span>
<a name="l00004"></a>00004 <span class="comment">// Distributed under the Boost Software License, Version 1.0. (See</span>
<a name="l00005"></a>00005 <span class="comment">// accompanying file LICENSE_1_0.txt or copy at</span>
<a name="l00006"></a>00006 <span class="comment">// http://www.boost.org/LICENSE_1_0.txt)</span>
<a name="l00007"></a>00007 <span class="comment">//</span>
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef BOOST_LOCALE_CONFIG_HPP_INCLUDED</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define BOOST_LOCALE_CONFIG_HPP_INCLUDED</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;boost/config.hpp&gt;</span>
<a name="l00012"></a>00012
<a name="l00013"></a>00013 <span class="comment">// Support older ICU versions</span>
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef BOOST_SYMBOL_VISIBLE</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor"># define BOOST_SYMBOL_VISIBLE</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00017"></a>00017 <span class="preprocessor"></span>
<a name="l00018"></a>00018 <span class="preprocessor">#ifdef BOOST_HAS_DECLSPEC </span>
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor"># if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_LOCALE_DYN_LINK)</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># ifdef BOOST_LOCALE_SOURCE</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor"># define BOOST_LOCALE_DECL BOOST_SYMBOL_EXPORT</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor"># else</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor"># define BOOST_LOCALE_DECL BOOST_SYMBOL_IMPORT</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor"># endif // BOOST_LOCALE_SOURCE</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor"># endif // DYN_LINK</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#endif // BOOST_HAS_DECLSPEC</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a>00028 <span class="preprocessor">#ifndef BOOST_LOCALE_DECL</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor"># define BOOST_LOCALE_DECL</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span>
<a name="l00032"></a>00032 <span class="comment">//</span>
<a name="l00033"></a>00033 <span class="comment">// Automatically link to the correct build variant where possible. </span>
<a name="l00034"></a>00034 <span class="comment">// </span>
<a name="l00035"></a>00035 <span class="preprocessor">#if !defined(BOOST_ALL_NO_LIB) &amp;&amp; !defined(BOOST_LOCALE_NO_LIB) &amp;&amp; !defined(BOOST_LOCALE_SOURCE)</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="comment">//</span>
<a name="l00037"></a>00037 <span class="comment">// Set the name of our library, this will get undef&#39;ed by auto_link.hpp</span>
<a name="l00038"></a>00038 <span class="comment">// once it&#39;s done with it:</span>
<a name="l00039"></a>00039 <span class="comment">//</span>
<a name="l00040"></a>00040 <span class="preprocessor">#define BOOST_LIB_NAME boost_locale</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="comment">//</span>
<a name="l00042"></a>00042 <span class="comment">// If we&#39;re importing code from a dll, then tell auto_link.hpp about it:</span>
<a name="l00043"></a>00043 <span class="comment">//</span>
<a name="l00044"></a>00044 <span class="preprocessor">#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_LOCALE_DYN_LINK)</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span><span class="preprocessor"># define BOOST_DYN_LINK</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span><span class="comment">//</span>
<a name="l00048"></a>00048 <span class="comment">// And include the header that does the work:</span>
<a name="l00049"></a>00049 <span class="comment">//</span>
<a name="l00050"></a>00050 <span class="preprocessor">#include &lt;boost/config/auto_link.hpp&gt;</span>
<a name="l00051"></a>00051 <span class="preprocessor">#endif // auto-linking disabled</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span>
<a name="l00053"></a>00053
<a name="l00054"></a>00054
<a name="l00055"></a>00055 <span class="preprocessor">#endif // boost/locale/config.hpp</span>
<a name="l00056"></a>00056 <span class="preprocessor"></span><span class="comment">// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4</span>
<a name="l00057"></a>00057
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,332 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: boost/locale/conversion.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
</ul>
</div>
<div class="header">
<div class="headertitle">
<h1>boost/locale/conversion.hpp</h1> </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//</span>
<a name="l00002"></a>00002 <span class="comment">// Copyright (c) 2009-2011 Artyom Beilis (Tonkikh)</span>
<a name="l00003"></a>00003 <span class="comment">//</span>
<a name="l00004"></a>00004 <span class="comment">// Distributed under the Boost Software License, Version 1.0. (See</span>
<a name="l00005"></a>00005 <span class="comment">// accompanying file LICENSE_1_0.txt or copy at</span>
<a name="l00006"></a>00006 <span class="comment">// http://www.boost.org/LICENSE_1_0.txt)</span>
<a name="l00007"></a>00007 <span class="comment">//</span>
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef BOOST_LOCALE_CONVERTER_HPP_INCLUDED</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define BOOST_LOCALE_CONVERTER_HPP_INCLUDED</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;boost/locale/config.hpp&gt;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#ifdef BOOST_MSVC</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(push)</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(disable : 4275 4251 4231 4660)</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#include &lt;locale&gt;</span>
<a name="l00017"></a>00017
<a name="l00018"></a>00018
<a name="l00019"></a>00019 <span class="keyword">namespace </span>boost {
<a name="l00020"></a>00020 <span class="keyword">namespace </span>locale {
<a name="l00021"></a>00021
<a name="l00028"></a>00028
<a name="l00029"></a>00029
<a name="l00033"></a><a class="code" href="classboost_1_1locale_1_1converter__base.html">00033</a> <span class="keyword">class </span><a class="code" href="classboost_1_1locale_1_1converter__base.html" title="This class provides base flags for text manipulation. It is used as base for converter facet...">converter_base</a> {
<a name="l00034"></a>00034 <span class="keyword">public</span>:
<a name="l00038"></a><a class="code" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669b">00038</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00039"></a><a class="code" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669bae20bf7eface68062a0b9f2396833354a">00039</a> normalization,
<a name="l00040"></a><a class="code" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669ba0fee54e09732910ab30856d0e34c8ad2">00040</a> upper_case,
<a name="l00041"></a><a class="code" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669ba2c5c38c6bc6ca01fb9e573c148ba8ebe">00041</a> lower_case,
<a name="l00042"></a><a class="code" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669ba91936aed5b7c3a82b4d2c2354ead03d3">00042</a> case_folding,
<a name="l00043"></a><a class="code" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669bac136b257286085de7bd7eb4a7876dfa7">00043</a> <a class="code" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669bac136b257286085de7bd7eb4a7876dfa7" title="Convert text to title case.">title_case</a>
<a name="l00044"></a>00044 } conversion_type;
<a name="l00045"></a>00045 };
<a name="l00046"></a>00046
<a name="l00047"></a>00047 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType&gt;
<a name="l00048"></a>00048 <span class="keyword">class </span>converter;
<a name="l00049"></a>00049
<a name="l00050"></a>00050 <span class="preprocessor"> #ifdef BOOST_LOCALE_DOXYGEN</span>
<a name="l00051"></a>00051 <span class="preprocessor"></span>
<a name="l00052"></a>00052
<a name="l00053"></a>00053
<a name="l00054"></a>00054
<a name="l00055"></a>00055
<a name="l00056"></a>00056
<a name="l00057"></a>00057 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Char&gt;
<a name="l00058"></a><a class="code" href="classboost_1_1locale_1_1converter.html">00058</a> <span class="keyword">class </span>BOOST_LOCALE_DECL <a class="code" href="classboost_1_1locale_1_1converter.html" title="The facet that implements text manipulation.">converter</a>: <span class="keyword">public</span> <a class="code" href="classboost_1_1locale_1_1converter__base.html" title="This class provides base flags for text manipulation. It is used as base for converter facet...">converter_base</a>, <span class="keyword">public</span> std::locale::facet {
<a name="l00059"></a>00059 <span class="keyword">public</span>:
<a name="l00061"></a><a class="code" href="classboost_1_1locale_1_1converter.html#a0ab17b265161bb2c5d7a233710d2740b">00061</a> <span class="keyword">static</span> std::locale::id id;
<a name="l00062"></a>00062
<a name="l00064"></a><a class="code" href="classboost_1_1locale_1_1converter.html#aba25fd4a18937543823cd61bef72c628">00064</a> <a class="code" href="classboost_1_1locale_1_1converter.html" title="The facet that implements text manipulation.">converter</a>(<span class="keywordtype">size_t</span> refs = 0) : std::locale::facet(refs)
<a name="l00065"></a>00065 {
<a name="l00066"></a>00066 }
<a name="l00071"></a>00071 <span class="keyword">virtual</span> std::basic_string&lt;Char&gt; convert(conversion_type how,Char <span class="keyword">const</span> *begin,Char <span class="keyword">const</span> *end,<span class="keywordtype">int</span> flags = 0) <span class="keyword">const</span> = 0;
<a name="l00072"></a>00072 <span class="preprocessor">#if defined (__SUNPRO_CC) &amp;&amp; defined (_RWSTD_VER)</span>
<a name="l00073"></a>00073 <span class="preprocessor"></span> std::locale::id&amp; __get_id (<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> id; }
<a name="l00074"></a>00074 <span class="preprocessor">#endif</span>
<a name="l00075"></a>00075 <span class="preprocessor"></span> };
<a name="l00076"></a>00076 <span class="preprocessor"> #else</span>
<a name="l00077"></a>00077 <span class="preprocessor"></span>
<a name="l00078"></a>00078 <span class="keyword">template</span>&lt;&gt;
<a name="l00079"></a>00079 <span class="keyword">class </span>BOOST_LOCALE_DECL converter&lt;char&gt; : <span class="keyword">public</span> converter_base, <span class="keyword">public</span> std::locale::facet {
<a name="l00080"></a>00080 <span class="keyword">public</span>:
<a name="l00081"></a>00081 <span class="keyword">static</span> std::locale::id id;
<a name="l00082"></a>00082
<a name="l00083"></a>00083 converter(<span class="keywordtype">size_t</span> refs = 0) : std::locale::facet(refs)
<a name="l00084"></a>00084 {
<a name="l00085"></a>00085 }
<a name="l00086"></a>00086 <span class="keyword">virtual</span> std::string convert(conversion_type how,<span class="keywordtype">char</span> <span class="keyword">const</span> *begin,<span class="keywordtype">char</span> <span class="keyword">const</span> *end,<span class="keywordtype">int</span> flags = 0) <span class="keyword">const</span> = 0;
<a name="l00087"></a>00087 <span class="preprocessor">#if defined (__SUNPRO_CC) &amp;&amp; defined (_RWSTD_VER)</span>
<a name="l00088"></a>00088 <span class="preprocessor"></span> std::locale::id&amp; __get_id (<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> id; }
<a name="l00089"></a>00089 <span class="preprocessor">#endif</span>
<a name="l00090"></a>00090 <span class="preprocessor"></span> };
<a name="l00091"></a>00091
<a name="l00092"></a>00092 <span class="keyword">template</span>&lt;&gt;
<a name="l00093"></a>00093 <span class="keyword">class </span>BOOST_LOCALE_DECL converter&lt;wchar_t&gt; : <span class="keyword">public</span> converter_base, <span class="keyword">public</span> std::locale::facet {
<a name="l00094"></a>00094 <span class="keyword">public</span>:
<a name="l00095"></a>00095 <span class="keyword">static</span> std::locale::id id;
<a name="l00096"></a>00096 converter(<span class="keywordtype">size_t</span> refs = 0) : std::locale::facet(refs)
<a name="l00097"></a>00097 {
<a name="l00098"></a>00098 }
<a name="l00099"></a>00099 <span class="keyword">virtual</span> std::wstring convert(conversion_type how,<span class="keywordtype">wchar_t</span> <span class="keyword">const</span> *begin,<span class="keywordtype">wchar_t</span> <span class="keyword">const</span> *end,<span class="keywordtype">int</span> flags = 0) <span class="keyword">const</span> = 0;
<a name="l00100"></a>00100 <span class="preprocessor">#if defined (__SUNPRO_CC) &amp;&amp; defined (_RWSTD_VER)</span>
<a name="l00101"></a>00101 <span class="preprocessor"></span> std::locale::id&amp; __get_id (<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> id; }
<a name="l00102"></a>00102 <span class="preprocessor">#endif</span>
<a name="l00103"></a>00103 <span class="preprocessor"></span> };
<a name="l00104"></a>00104
<a name="l00105"></a>00105 <span class="preprocessor"> #ifdef BOOST_HAS_CHAR16_T</span>
<a name="l00106"></a>00106 <span class="preprocessor"></span> <span class="keyword">template</span>&lt;&gt;
<a name="l00107"></a>00107 <span class="keyword">class </span>BOOST_LOCALE_DECL converter&lt;char16_t&gt; : <span class="keyword">public</span> converter_base, <span class="keyword">public</span> std::locale::facet {
<a name="l00108"></a>00108 <span class="keyword">public</span>:
<a name="l00109"></a>00109 <span class="keyword">static</span> std::locale::id id;
<a name="l00110"></a>00110 converter(<span class="keywordtype">size_t</span> refs = 0) : std::locale::facet(refs)
<a name="l00111"></a>00111 {
<a name="l00112"></a>00112 }
<a name="l00113"></a>00113 <span class="keyword">virtual</span> std::u16string convert(conversion_type how,char16_t <span class="keyword">const</span> *begin,char16_t <span class="keyword">const</span> *end,<span class="keywordtype">int</span> flags = 0) <span class="keyword">const</span> = 0;
<a name="l00114"></a>00114 <span class="preprocessor">#if defined (__SUNPRO_CC) &amp;&amp; defined (_RWSTD_VER)</span>
<a name="l00115"></a>00115 <span class="preprocessor"></span> std::locale::id&amp; __get_id (<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> id; }
<a name="l00116"></a>00116 <span class="preprocessor">#endif</span>
<a name="l00117"></a>00117 <span class="preprocessor"></span> };
<a name="l00118"></a>00118 <span class="preprocessor"> #endif</span>
<a name="l00119"></a>00119 <span class="preprocessor"></span>
<a name="l00120"></a>00120 <span class="preprocessor"> #ifdef BOOST_HAS_CHAR32_T</span>
<a name="l00121"></a>00121 <span class="preprocessor"></span> <span class="keyword">template</span>&lt;&gt;
<a name="l00122"></a>00122 <span class="keyword">class </span>BOOST_LOCALE_DECL converter&lt;char32_t&gt; : <span class="keyword">public</span> converter_base, <span class="keyword">public</span> std::locale::facet {
<a name="l00123"></a>00123 <span class="keyword">public</span>:
<a name="l00124"></a>00124 <span class="keyword">static</span> std::locale::id id;
<a name="l00125"></a>00125 converter(<span class="keywordtype">size_t</span> refs = 0) : std::locale::facet(refs)
<a name="l00126"></a>00126 {
<a name="l00127"></a>00127 }
<a name="l00128"></a>00128 <span class="keyword">virtual</span> std::u32string convert(conversion_type how,char32_t <span class="keyword">const</span> *begin,char32_t <span class="keyword">const</span> *end,<span class="keywordtype">int</span> flags = 0) <span class="keyword">const</span> = 0;
<a name="l00129"></a>00129 <span class="preprocessor">#if defined (__SUNPRO_CC) &amp;&amp; defined (_RWSTD_VER)</span>
<a name="l00130"></a>00130 <span class="preprocessor"></span> std::locale::id&amp; __get_id (<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> id; }
<a name="l00131"></a>00131 <span class="preprocessor">#endif</span>
<a name="l00132"></a>00132 <span class="preprocessor"></span> };
<a name="l00133"></a>00133 <span class="preprocessor"> #endif</span>
<a name="l00134"></a>00134 <span class="preprocessor"></span>
<a name="l00135"></a>00135 <span class="preprocessor"> #endif</span>
<a name="l00136"></a>00136 <span class="preprocessor"></span>
<a name="l00140"></a>00140
<a name="l00141"></a><a class="code" href="group__convert.html#ga6a595a415b83b8a0c8f14c34eb66cc9f">00141</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00142"></a><a class="code" href="group__convert.html#gga6a595a415b83b8a0c8f14c34eb66cc9fa6648d0eabb931f2e9d258570b297e98f">00142</a> norm_nfd,
<a name="l00143"></a><a class="code" href="group__convert.html#gga6a595a415b83b8a0c8f14c34eb66cc9faf6fe7be275e5e13df415ab258105ada0">00143</a> norm_nfc,
<a name="l00144"></a><a class="code" href="group__convert.html#gga6a595a415b83b8a0c8f14c34eb66cc9fa0fbc2ac042fc6f58af5818bfd06d5379">00144</a> norm_nfkd,
<a name="l00145"></a><a class="code" href="group__convert.html#gga6a595a415b83b8a0c8f14c34eb66cc9fa0305c1f3405ea70facf4c6a5ffa40583">00145</a> norm_nfkc,
<a name="l00146"></a><a class="code" href="group__convert.html#gga6a595a415b83b8a0c8f14c34eb66cc9faa29173d73d9be7fefcbb18c8712465d2">00146</a> <a class="code" href="group__convert.html#gga6a595a415b83b8a0c8f14c34eb66cc9faa29173d73d9be7fefcbb18c8712465d2" title="Default normalization - canonical decomposition followed by canonical composition.">norm_default</a> = norm_nfc,
<a name="l00147"></a>00147 } norm_type;
<a name="l00148"></a>00148
<a name="l00158"></a>00158 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType&gt;
<a name="l00159"></a><a class="code" href="group__convert.html#ga11672e3cc3ed7eecf1dd07060265aab2">00159</a> std::basic_string&lt;CharType&gt; <a class="code" href="group__convert.html#ga11672e3cc3ed7eecf1dd07060265aab2">normalize</a>(std::basic_string&lt;CharType&gt; <span class="keyword">const</span> &amp;str,<a class="code" href="group__convert.html#ga6a595a415b83b8a0c8f14c34eb66cc9f">norm_type</a> n=<a class="code" href="group__convert.html#gga6a595a415b83b8a0c8f14c34eb66cc9faa29173d73d9be7fefcbb18c8712465d2" title="Default normalization - canonical decomposition followed by canonical composition.">norm_default</a>,std::locale <span class="keyword">const</span> &amp;loc=std::locale())
<a name="l00160"></a>00160 {
<a name="l00161"></a>00161 <span class="keywordflow">return</span> std::use_facet&lt;converter&lt;CharType&gt; &gt;(loc).convert(<a class="code" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669bae20bf7eface68062a0b9f2396833354a" title="Apply Unicode normalization on the text.">converter_base::normalization</a>,str.data(),str.data() + str.size(),n);
<a name="l00162"></a>00162 }
<a name="l00163"></a>00163
<a name="l00173"></a>00173 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType&gt;
<a name="l00174"></a><a class="code" href="group__convert.html#ga340161bd91c1a768e927a4c827084a4c">00174</a> std::basic_string&lt;CharType&gt; <a class="code" href="group__convert.html#ga11672e3cc3ed7eecf1dd07060265aab2">normalize</a>(CharType <span class="keyword">const</span> *str,<a class="code" href="group__convert.html#ga6a595a415b83b8a0c8f14c34eb66cc9f">norm_type</a> n=<a class="code" href="group__convert.html#gga6a595a415b83b8a0c8f14c34eb66cc9faa29173d73d9be7fefcbb18c8712465d2" title="Default normalization - canonical decomposition followed by canonical composition.">norm_default</a>,std::locale <span class="keyword">const</span> &amp;loc=std::locale())
<a name="l00175"></a>00175 {
<a name="l00176"></a>00176 CharType <span class="keyword">const</span> *end=str;
<a name="l00177"></a>00177 <span class="keywordflow">while</span>(*end)
<a name="l00178"></a>00178 end++;
<a name="l00179"></a>00179 <span class="keywordflow">return</span> std::use_facet&lt;converter&lt;CharType&gt; &gt;(loc).convert(<a class="code" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669bae20bf7eface68062a0b9f2396833354a" title="Apply Unicode normalization on the text.">converter_base::normalization</a>,str,end,n);
<a name="l00180"></a>00180 }
<a name="l00181"></a>00181
<a name="l00191"></a>00191 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType&gt;
<a name="l00192"></a><a class="code" href="group__convert.html#ga348f607537413204e88c636392c29704">00192</a> std::basic_string&lt;CharType&gt; <a class="code" href="group__convert.html#ga11672e3cc3ed7eecf1dd07060265aab2">normalize</a>( CharType <span class="keyword">const</span> *begin,
<a name="l00193"></a>00193 CharType <span class="keyword">const</span> *end,
<a name="l00194"></a>00194 <a class="code" href="group__convert.html#ga6a595a415b83b8a0c8f14c34eb66cc9f">norm_type</a> n=<a class="code" href="group__convert.html#gga6a595a415b83b8a0c8f14c34eb66cc9faa29173d73d9be7fefcbb18c8712465d2" title="Default normalization - canonical decomposition followed by canonical composition.">norm_default</a>,
<a name="l00195"></a>00195 std::locale <span class="keyword">const</span> &amp;loc=std::locale())
<a name="l00196"></a>00196 {
<a name="l00197"></a>00197 <span class="keywordflow">return</span> std::use_facet&lt;converter&lt;CharType&gt; &gt;(loc).convert(<a class="code" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669bae20bf7eface68062a0b9f2396833354a" title="Apply Unicode normalization on the text.">converter_base::normalization</a>,begin,end,n);
<a name="l00198"></a>00198 }
<a name="l00199"></a>00199
<a name="l00201"></a>00201
<a name="l00207"></a>00207
<a name="l00208"></a>00208 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType&gt;
<a name="l00209"></a><a class="code" href="group__convert.html#ga7889a57e1bc1059fbb107db0781d0b6d">00209</a> std::basic_string&lt;CharType&gt; <a class="code" href="group__convert.html#ga7889a57e1bc1059fbb107db0781d0b6d">to_upper</a>(std::basic_string&lt;CharType&gt; <span class="keyword">const</span> &amp;str,std::locale <span class="keyword">const</span> &amp;loc=std::locale())
<a name="l00210"></a>00210 {
<a name="l00211"></a>00211 <span class="keywordflow">return</span> std::use_facet&lt;converter&lt;CharType&gt; &gt;(loc).convert(<a class="code" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669ba0fee54e09732910ab30856d0e34c8ad2" title="Convert text to upper case.">converter_base::upper_case</a>,str.data(),str.data()+str.size());
<a name="l00212"></a>00212 }
<a name="l00213"></a>00213
<a name="l00219"></a>00219 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType&gt;
<a name="l00220"></a><a class="code" href="group__convert.html#ga21cc3d265fccd4dc4ac299edde0637f8">00220</a> std::basic_string&lt;CharType&gt; <a class="code" href="group__convert.html#ga7889a57e1bc1059fbb107db0781d0b6d">to_upper</a>(CharType <span class="keyword">const</span> *str,std::locale <span class="keyword">const</span> &amp;loc=std::locale())
<a name="l00221"></a>00221 {
<a name="l00222"></a>00222 CharType <span class="keyword">const</span> *end=str;
<a name="l00223"></a>00223 <span class="keywordflow">while</span>(*end)
<a name="l00224"></a>00224 end++;
<a name="l00225"></a>00225 <span class="keywordflow">return</span> std::use_facet&lt;converter&lt;CharType&gt; &gt;(loc).convert(<a class="code" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669ba0fee54e09732910ab30856d0e34c8ad2" title="Convert text to upper case.">converter_base::upper_case</a>,str,end);
<a name="l00226"></a>00226 }
<a name="l00227"></a>00227
<a name="l00233"></a>00233 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType&gt;
<a name="l00234"></a><a class="code" href="group__convert.html#ga612ddbe1ed3fd910b22bcd6ae401ac22">00234</a> std::basic_string&lt;CharType&gt; <a class="code" href="group__convert.html#ga7889a57e1bc1059fbb107db0781d0b6d">to_upper</a>(CharType <span class="keyword">const</span> *begin,CharType <span class="keyword">const</span> *end,std::locale <span class="keyword">const</span> &amp;loc=std::locale())
<a name="l00235"></a>00235 {
<a name="l00236"></a>00236 <span class="keywordflow">return</span> std::use_facet&lt;converter&lt;CharType&gt; &gt;(loc).convert(<a class="code" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669ba0fee54e09732910ab30856d0e34c8ad2" title="Convert text to upper case.">converter_base::upper_case</a>,begin,end);
<a name="l00237"></a>00237 }
<a name="l00238"></a>00238
<a name="l00240"></a>00240
<a name="l00246"></a>00246
<a name="l00247"></a>00247 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType&gt;
<a name="l00248"></a><a class="code" href="group__convert.html#ga33de83f16ff2c09cac780977c6f67099">00248</a> std::basic_string&lt;CharType&gt; <a class="code" href="group__convert.html#ga33de83f16ff2c09cac780977c6f67099">to_lower</a>(std::basic_string&lt;CharType&gt; <span class="keyword">const</span> &amp;str,std::locale <span class="keyword">const</span> &amp;loc=std::locale())
<a name="l00249"></a>00249 {
<a name="l00250"></a>00250 <span class="keywordflow">return</span> std::use_facet&lt;converter&lt;CharType&gt; &gt;(loc).convert(<a class="code" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669ba2c5c38c6bc6ca01fb9e573c148ba8ebe" title="Convert text to lower case.">converter_base::lower_case</a>,str.data(),str.data()+str.size());
<a name="l00251"></a>00251 }
<a name="l00252"></a>00252
<a name="l00258"></a>00258 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType&gt;
<a name="l00259"></a><a class="code" href="group__convert.html#ga676a7c90319f0f82657cb31ce20d3dbd">00259</a> std::basic_string&lt;CharType&gt; <a class="code" href="group__convert.html#ga33de83f16ff2c09cac780977c6f67099">to_lower</a>(CharType <span class="keyword">const</span> *str,std::locale <span class="keyword">const</span> &amp;loc=std::locale())
<a name="l00260"></a>00260 {
<a name="l00261"></a>00261 CharType <span class="keyword">const</span> *end=str;
<a name="l00262"></a>00262 <span class="keywordflow">while</span>(*end)
<a name="l00263"></a>00263 end++;
<a name="l00264"></a>00264 <span class="keywordflow">return</span> std::use_facet&lt;converter&lt;CharType&gt; &gt;(loc).convert(<a class="code" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669ba2c5c38c6bc6ca01fb9e573c148ba8ebe" title="Convert text to lower case.">converter_base::lower_case</a>,str,end);
<a name="l00265"></a>00265 }
<a name="l00266"></a>00266
<a name="l00272"></a>00272 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType&gt;
<a name="l00273"></a><a class="code" href="group__convert.html#gab2d86cb2219169ab69c1d29f5d2a854e">00273</a> std::basic_string&lt;CharType&gt; <a class="code" href="group__convert.html#ga33de83f16ff2c09cac780977c6f67099">to_lower</a>(CharType <span class="keyword">const</span> *begin,CharType <span class="keyword">const</span> *end,std::locale <span class="keyword">const</span> &amp;loc=std::locale())
<a name="l00274"></a>00274 {
<a name="l00275"></a>00275 <span class="keywordflow">return</span> std::use_facet&lt;converter&lt;CharType&gt; &gt;(loc).convert(<a class="code" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669ba2c5c38c6bc6ca01fb9e573c148ba8ebe" title="Convert text to lower case.">converter_base::lower_case</a>,begin,end);
<a name="l00276"></a>00276 }
<a name="l00278"></a>00278
<a name="l00284"></a>00284
<a name="l00285"></a>00285 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType&gt;
<a name="l00286"></a><a class="code" href="group__convert.html#ga646f42adb01baf395d632c32f556a5b9">00286</a> std::basic_string&lt;CharType&gt; <a class="code" href="group__convert.html#ga646f42adb01baf395d632c32f556a5b9">to_title</a>(std::basic_string&lt;CharType&gt; <span class="keyword">const</span> &amp;str,std::locale <span class="keyword">const</span> &amp;loc=std::locale())
<a name="l00287"></a>00287 {
<a name="l00288"></a>00288 <span class="keywordflow">return</span> std::use_facet&lt;converter&lt;CharType&gt; &gt;(loc).convert(<a class="code" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669bac136b257286085de7bd7eb4a7876dfa7" title="Convert text to title case.">converter_base::title_case</a>,str.data(),str.data()+str.size());
<a name="l00289"></a>00289 }
<a name="l00290"></a>00290
<a name="l00296"></a>00296 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType&gt;
<a name="l00297"></a><a class="code" href="group__convert.html#ga50fbad5e11e8e8ed0b04e6fb6bc25057">00297</a> std::basic_string&lt;CharType&gt; <a class="code" href="group__convert.html#ga646f42adb01baf395d632c32f556a5b9">to_title</a>(CharType <span class="keyword">const</span> *str,std::locale <span class="keyword">const</span> &amp;loc=std::locale())
<a name="l00298"></a>00298 {
<a name="l00299"></a>00299 CharType <span class="keyword">const</span> *end=str;
<a name="l00300"></a>00300 <span class="keywordflow">while</span>(*end)
<a name="l00301"></a>00301 end++;
<a name="l00302"></a>00302 <span class="keywordflow">return</span> std::use_facet&lt;converter&lt;CharType&gt; &gt;(loc).convert(<a class="code" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669bac136b257286085de7bd7eb4a7876dfa7" title="Convert text to title case.">converter_base::title_case</a>,str,end);
<a name="l00303"></a>00303 }
<a name="l00304"></a>00304
<a name="l00310"></a>00310 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType&gt;
<a name="l00311"></a><a class="code" href="group__convert.html#gac9198c4fb61eefb72f1f863ed21b1e60">00311</a> std::basic_string&lt;CharType&gt; <a class="code" href="group__convert.html#ga646f42adb01baf395d632c32f556a5b9">to_title</a>(CharType <span class="keyword">const</span> *begin,CharType <span class="keyword">const</span> *end,std::locale <span class="keyword">const</span> &amp;loc=std::locale())
<a name="l00312"></a>00312 {
<a name="l00313"></a>00313 <span class="keywordflow">return</span> std::use_facet&lt;converter&lt;CharType&gt; &gt;(loc).convert(<a class="code" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669bac136b257286085de7bd7eb4a7876dfa7" title="Convert text to title case.">converter_base::title_case</a>,begin,end);
<a name="l00314"></a>00314 }
<a name="l00315"></a>00315
<a name="l00317"></a>00317
<a name="l00323"></a>00323
<a name="l00324"></a>00324 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType&gt;
<a name="l00325"></a><a class="code" href="group__convert.html#gabd1bc157122a5b9392487126fd0fffe5">00325</a> std::basic_string&lt;CharType&gt; <a class="code" href="group__convert.html#gabd1bc157122a5b9392487126fd0fffe5">fold_case</a>(std::basic_string&lt;CharType&gt; <span class="keyword">const</span> &amp;str,std::locale <span class="keyword">const</span> &amp;loc=std::locale())
<a name="l00326"></a>00326 {
<a name="l00327"></a>00327 <span class="keywordflow">return</span> std::use_facet&lt;converter&lt;CharType&gt; &gt;(loc).convert(<a class="code" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669ba91936aed5b7c3a82b4d2c2354ead03d3" title="Fold case in the text.">converter_base::case_folding</a>,str.data(),str.data()+str.size());
<a name="l00328"></a>00328 }
<a name="l00329"></a>00329
<a name="l00335"></a>00335 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType&gt;
<a name="l00336"></a><a class="code" href="group__convert.html#ga4254d12cc75cb7b66ca96deca3e90fd1">00336</a> std::basic_string&lt;CharType&gt; <a class="code" href="group__convert.html#gabd1bc157122a5b9392487126fd0fffe5">fold_case</a>(CharType <span class="keyword">const</span> *str,std::locale <span class="keyword">const</span> &amp;loc=std::locale())
<a name="l00337"></a>00337 {
<a name="l00338"></a>00338 CharType <span class="keyword">const</span> *end=str;
<a name="l00339"></a>00339 <span class="keywordflow">while</span>(*end)
<a name="l00340"></a>00340 end++;
<a name="l00341"></a>00341 <span class="keywordflow">return</span> std::use_facet&lt;converter&lt;CharType&gt; &gt;(loc).convert(<a class="code" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669ba91936aed5b7c3a82b4d2c2354ead03d3" title="Fold case in the text.">converter_base::case_folding</a>,str,end);
<a name="l00342"></a>00342 }
<a name="l00343"></a>00343
<a name="l00349"></a>00349 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CharType&gt;
<a name="l00350"></a><a class="code" href="group__convert.html#ga597671217af41a3fdee10281fb6a0d17">00350</a> std::basic_string&lt;CharType&gt; <a class="code" href="group__convert.html#gabd1bc157122a5b9392487126fd0fffe5">fold_case</a>(CharType <span class="keyword">const</span> *begin,CharType <span class="keyword">const</span> *end,std::locale <span class="keyword">const</span> &amp;loc=std::locale())
<a name="l00351"></a>00351 {
<a name="l00352"></a>00352 <span class="keywordflow">return</span> std::use_facet&lt;converter&lt;CharType&gt; &gt;(loc).convert(<a class="code" href="classboost_1_1locale_1_1converter__base.html#a726bc2bbcbb6f1e550cca14163fb669ba91936aed5b7c3a82b4d2c2354ead03d3" title="Fold case in the text.">converter_base::case_folding</a>,begin,end);
<a name="l00353"></a>00353 }
<a name="l00354"></a>00354
<a name="l00358"></a>00358 } <span class="comment">// locale</span>
<a name="l00359"></a>00359
<a name="l00360"></a>00360 } <span class="comment">// boost</span>
<a name="l00361"></a>00361
<a name="l00362"></a>00362 <span class="preprocessor">#ifdef BOOST_MSVC</span>
<a name="l00363"></a>00363 <span class="preprocessor"></span><span class="preprocessor">#pragma warning(pop)</span>
<a name="l00364"></a>00364 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00365"></a>00365 <span class="preprocessor"></span>
<a name="l00366"></a>00366
<a name="l00367"></a>00367 <span class="preprocessor">#endif</span>
<a name="l00368"></a>00368 <span class="preprocessor"></span>
<a name="l00378"></a>00378
<a name="l00379"></a>00379 <span class="comment">// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4</span>
<a name="l00380"></a>00380
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

127
doc/html/conversions.html Normal file
View File

@@ -0,0 +1,127 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Text Conversions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><a class="el" href="main.html">Boost.Locale</a> </li>
<li><a class="el" href="using_boost_locale.html">Using Boost.Locale</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>Text Conversions </h1> </div>
</div>
<div class="contents">
<p>There is a set of functions that perform basic string conversion operations: upper, lower and <a class="el" href="glossary.html#term_title_case">title case</a> conversions, <a class="el" href="glossary.html#term_case_folding">case folding</a> and Unicode <a class="el" href="glossary.html#term_normalization">normalization</a>. These are <a class="el" href="group__convert.html#ga7889a57e1bc1059fbb107db0781d0b6d">to_upper</a> , <a class="el" href="group__convert.html#ga33de83f16ff2c09cac780977c6f67099">to_lower</a>, <a class="el" href="group__convert.html#ga646f42adb01baf395d632c32f556a5b9">to_title</a>, <a class="el" href="group__convert.html#gabd1bc157122a5b9392487126fd0fffe5">fold_case</a> and <a class="el" href="group__convert.html#ga11672e3cc3ed7eecf1dd07060265aab2">normalize</a>.</p>
<p>All these functions receive an <code>std::locale</code> object as parameter or use a global locale by default.</p>
<p>Global locale is used in all examples below.</p>
<h2><a class="anchor" id="conversions_case"></a>
Case Handing</h2>
<p>For example: </p>
<div class="fragment"><pre class="fragment"> std::string grussen = <span class="stringliteral">&quot;grüßEN&quot;</span>;
std::cout &lt;&lt;<span class="stringliteral">&quot;Upper &quot;</span>&lt;&lt; <a class="code" href="group__convert.html#ga7889a57e1bc1059fbb107db0781d0b6d">boost::locale::to_upper</a>(grussen) &lt;&lt; std::endl
&lt;&lt;<span class="stringliteral">&quot;Lower &quot;</span>&lt;&lt; <a class="code" href="group__convert.html#ga33de83f16ff2c09cac780977c6f67099">boost::locale::to_lower</a>(grussen) &lt;&lt; std::endl
&lt;&lt;<span class="stringliteral">&quot;Title &quot;</span>&lt;&lt; <a class="code" href="group__convert.html#ga646f42adb01baf395d632c32f556a5b9">boost::locale::to_title</a>(grussen) &lt;&lt; std::endl
&lt;&lt;<span class="stringliteral">&quot;Fold &quot;</span>&lt;&lt; <a class="code" href="group__convert.html#gabd1bc157122a5b9392487126fd0fffe5">boost::locale::fold_case</a>(grussen) &lt;&lt; std::endl;
</pre></div><p>Would print:</p>
<div class="fragment"><pre class="fragment">
Upper GRÜSSEN
Lower grüßen
Title Grüßen
Fold grüssen
</pre></div><p>You may notice that there are existing functions <code>to_upper</code> and <code>to_lower</code> in the Boost.StringAlgo library. The difference is that these function operate over an entire string instead of performing incorrect character-by-character conversions.</p>
<p>For example:</p>
<div class="fragment"><pre class="fragment"> std::wstring grussen = L<span class="stringliteral">&quot;grüßen&quot;</span>;
std::wcout &lt;&lt; boost::algorithm::to_upper_copy(grussen) &lt;&lt; <span class="stringliteral">&quot; &quot;</span> &lt;&lt; <a class="code" href="group__convert.html#ga7889a57e1bc1059fbb107db0781d0b6d">boost::locale::to_upper</a>(grussen) &lt;&lt; std::endl;
</pre></div><p>Would give in output:</p>
<div class="fragment"><pre class="fragment">
GRÜßEN GRÜSSEN
</pre></div><p>Where a letter "ß" was not converted correctly to double-S in first case because of a limitation of <code>std::ctype</code> facet.</p>
<p>This is even more problematic in case of UTF-8 encodings where non US-ASCII are not converted at all. For example, this code</p>
<div class="fragment"><pre class="fragment"> std::string grussen = <span class="stringliteral">&quot;grüßen&quot;</span>;
std::cout &lt;&lt; boost::algorithm::to_upper_copy(grussen) &lt;&lt; <span class="stringliteral">&quot; &quot;</span> &lt;&lt; <a class="code" href="group__convert.html#ga7889a57e1bc1059fbb107db0781d0b6d">boost::locale::to_upper</a>(grussen) &lt;&lt; std::endl;
</pre></div><p>Would modify ASCII characters only</p>
<div class="fragment"><pre class="fragment">
GRüßEN GRÜSSEN
</pre></div><h2><a class="anchor" id="conversions_normalization"></a>
Unicode Normalization</h2>
<p>Unicode normalization is the process of converting strings to a standard form, suitable for text processing and comparison. For example, character "ü" can be represented by a single code point or a combination of the character "u" and the diaeresis "¨". Normalization is an important part of Unicode text processing.</p>
<p>Unicode defines four normalization forms. Each specific form is selected by a flag passed to <a class="el" href="group__convert.html#ga11672e3cc3ed7eecf1dd07060265aab2">normalize</a> function:</p>
<ul>
<li>NFD - Canonical decomposition - boost::locale::norm_nfd</li>
<li>NFC - Canonical decomposition followed by canonical composition - boost::locale::norm_nfc or boost::locale::norm_default</li>
<li>NFKD - Compatibility decomposition - boost::locale::norm_nfkd</li>
<li>NFKC - Compatibility decomposition followed by canonical composition - boost::locale::norm_nfkc</li>
</ul>
<p>For more details on normalization forms, read <a href="http://unicode.org/reports/tr15/#Norm_Forms">this article</a>.</p>
<h2><a class="anchor" id="conversions_notes"></a>
Notes</h2>
<ul>
<li><a class="el" href="group__convert.html#ga11672e3cc3ed7eecf1dd07060265aab2">normalize</a> operates only on Unicode-encoded strings, i.e.: UTF-8, UTF-16 and UTF-32 depending on the character width. So be careful when using non-UTF encodings as they may be treated incorrectly.</li>
<li><a class="el" href="group__convert.html#gabd1bc157122a5b9392487126fd0fffe5">fold_case</a> is generally a locale-independent operation, but it receives a locale as a parameter to determine the 8-bit encoding.</li>
<li>All of these functions can work with an STL string, a NUL terminated string, or a range defined by two pointers. They always return a newly created STL string.</li>
<li>The length of the string may change, see the above example. </li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

View File

@@ -0,0 +1,115 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: conversions.cpp</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<!--
Switch the lines for stand alone version
<link rel="stylesheet" type="text/css" href="http://www.boost.org/style-v2/section-basic.css">
-->
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<!--
Switch the lines for stand alone version
<img src="http://www.boost.org/gfx/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
-->
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>conversions.cpp</h1> </div>
</div>
<div class="contents">
<p>Example of using various text conversion functions.</p>
<div class="fragment"><pre class="fragment"><span class="comment">//</span>
<span class="comment">// Copyright (c) 2009-2011 Artyom Beilis (Tonkikh)</span>
<span class="comment">//</span>
<span class="comment">// Distributed under the Boost Software License, Version 1.0. (See</span>
<span class="comment">// accompanying file LICENSE_1_0.txt or copy at</span>
<span class="comment">// http://www.boost.org/LICENSE_1_0.txt)</span>
<span class="comment">//</span>
<span class="preprocessor">#include &lt;boost/locale.hpp&gt;</span>
<span class="preprocessor">#include &lt;boost/algorithm/string/case_conv.hpp&gt;</span>
<span class="preprocessor">#include &lt;iostream&gt;</span>
<span class="preprocessor">#include &lt;ctime&gt;</span>
<span class="keywordtype">int</span> main()
{
<span class="keyword">using namespace </span>boost::locale;
<span class="keyword">using namespace </span>std;
<span class="comment">// Create system default locale</span>
<a name="_a0"></a><a class="code" href="classboost_1_1locale_1_1generator.html" title="the major class used for locale generation">generator</a> gen;
locale loc=gen(<span class="stringliteral">&quot;&quot;</span>);
locale::global(loc);
cout.imbue(loc);
cout&lt;&lt;<span class="stringliteral">&quot;Correct case conversion can&#39;t be done by simple, character by character conversion&quot;</span>&lt;&lt;endl;
cout&lt;&lt;<span class="stringliteral">&quot;because case conversion is context sensitive and not 1-to-1 conversion&quot;</span>&lt;&lt;endl;
cout&lt;&lt;<span class="stringliteral">&quot;For example:&quot;</span>&lt;&lt;endl;
cout&lt;&lt;<span class="stringliteral">&quot; German grüßen correctly converted to &quot;</span>&lt;&lt;<a name="a1"></a><a class="code" href="group__convert.html#ga7889a57e1bc1059fbb107db0781d0b6d">to_upper</a>(<span class="stringliteral">&quot;grüßen&quot;</span>)&lt;&lt;<span class="stringliteral">&quot;, instead of incorrect &quot;</span>
&lt;&lt;boost::to_upper_copy(std::string(<span class="stringliteral">&quot;grüßen&quot;</span>))&lt;&lt;endl;
cout&lt;&lt;<span class="stringliteral">&quot; where ß is replaced with SS&quot;</span>&lt;&lt;endl;
cout&lt;&lt;<span class="stringliteral">&quot; Greek ὈΔΥΣΣΕΎΣ is correctly converted to &quot;</span>&lt;&lt;<a name="a2"></a><a class="code" href="group__convert.html#ga33de83f16ff2c09cac780977c6f67099">to_lower</a>(<span class="stringliteral">&quot;ὈΔΥΣΣΕΎΣ&quot;</span>)&lt;&lt;<span class="stringliteral">&quot;, instead of incorrect &quot;</span>
&lt;&lt;boost::to_lower_copy(std::string(<span class="stringliteral">&quot;ὈΔΥΣΣΕΎΣ&quot;</span>))&lt;&lt;endl;
cout&lt;&lt;<span class="stringliteral">&quot; where Σ is converted to σ or to ς, according to position in the word&quot;</span>&lt;&lt;endl;
cout&lt;&lt;<span class="stringliteral">&quot;Such type of conversion just can be done using std::toupper that work on character base, also std::toupper is &quot;</span>&lt;&lt;endl;
cout&lt;&lt;<span class="stringliteral">&quot;not even applicable when working with variable character length like in UTF-8 or UTF-16 limiting the correct &quot;</span>&lt;&lt;endl;
cout&lt;&lt;<span class="stringliteral">&quot;behavior to unicode subset BMP or ASCII only&quot;</span>&lt;&lt;endl;
}
<span class="comment">// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4</span>
</pre></div> </div>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More