Home | History | Annotate | Download | only in bits

Lines Matching defs:facet

72     class facet;
76 friend class facet;
169 * @brief Construct locale with another facet.
171 * Constructs a copy of the locale @a other. The facet @f is added to
172 * @other, replacing an existing facet of type Facet if there is one. If
176 * @param f The facet to add in.
196 * @brief Construct locale with another facet.
199 * existing facet of type Facet from the locale @a other into the new
202 * @param Facet The facet type to copy from other
205 * @throw std::runtime_error if other has no facet of type Facet.
243 * the collate facet in this locale. One use is to provide the locale to
252 * @return True if collate<Char> facet compares s1 < s2, else false.
328 // 22.1.1.1.2 Class locale::facet
333 * The facet class is the base class for a localization feature, such as
339 class locale::facet
362 * @brief Facet constructor.
365 * facet is destroyed when the last referencing locale is destroyed.
366 * Otherwise the facet will never be destroyed.
371 facet(size_t __refs = 0) throw() : _M_refcount(__refs ? 1 : 0)
374 /// Facet destructor.
376 ~facet();
419 facet(const facet&); // Not defined.
421 facet&
422 operator=(const facet&); // Not defined.
428 * @brief Facet ID class.
432 * Every facet class must define a public static member locale::id, or be
433 * derived from a facet that provides this member, otherwise the facet
481 friend class locale::facet;
497 const facet** _M_facets;
499 const facet** _M_caches;
560 _M_install_facet(const locale::id*, const facet*);
568 facet*, size_t);
573 * @brief Test for the presence of a facet.
575 * has_facet tests the locale argument for the presence of the facet type
576 * provided as the template parameter. Facets derived from the facet
579 * @param Facet The facet type to test the presence of.
581 * @return true if locale contains a facet of type Facet, else false.
588 * @brief Return a facet.
590 * use_facet looks for and returns a reference to a facet of type Facet
591 * where Facet is the template parameter. If has_facet(locale) is true,
592 * there is a suitable facet to return. It throws std::bad_cast if the
593 * locale doesn't contain a facet of type Facet.
595 * @param Facet The facet type to access.
597 * @return Reference to facet of type Facet.
598 * @throw std::bad_cast if locale doesn't contain a facet of type Facet.
606 * @brief Facet for localized string comparison.
608 * This facet encapsulates the code to compare strings in a localized
615 * collate facet.
618 class collate : public locale::facet
634 /// Numpunct facet id.
642 * @param refs Passed to the base facet class.
646 : facet(__refs), _M_c_locale_collate(_S_get_c_locale())
656 * @param refs Passed to the base facet class.
660 : facet(__refs), _M_c_locale_collate(_S_clone_c_locale(__cloc))