Home | History | Annotate | Download | only in bits

Lines Matching defs:facet

69     class facet;
73 friend class facet;
166 * @brief Construct locale with another facet.
168 * Constructs a copy of the locale @a other. The facet @f is added to
169 * @other, replacing an existing facet of type Facet if there is one. If
173 * @param f The facet to add in.
193 * @brief Construct locale with another facet.
196 * existing facet of type Facet from the locale @a other into the new
199 * @param Facet The facet type to copy from other
202 * @throw std::runtime_error if other has no facet of type Facet.
240 * the collate facet in this locale. One use is to provide the locale to
249 * @return True if collate<Char> facet compares s1 < s2, else false.
325 // 22.1.1.1.2 Class locale::facet
329 * The facet class is the base class for a localization feature, such as
335 class locale::facet
358 * @brief Facet constructor.
361 * facet is destroyed when the last referencing locale is destroyed.
362 * Otherwise the facet will never be destroyed.
367 facet(size_t __refs = 0) throw() : _M_refcount(__refs ? 1 : 0)
370 /// Facet destructor.
372 ~facet();
409 facet(const facet&); // Not defined.
411 facet&
412 operator=(const facet&); // Not defined.
418 * @brief Facet ID class.
421 * Every facet class must define a public static member locale::id, or be
422 * derived from a facet that provides this member, otherwise the facet
470 friend class locale::facet;
486 const facet** _M_facets;
488 const facet** _M_caches;
546 _M_install_facet(const locale::id*, const facet*);
554 _M_install_cache(const facet*, size_t);
559 * @brief Test for the presence of a facet.
561 * has_facet tests the locale argument for the presence of the facet type
562 * provided as the template parameter. Facets derived from the facet
565 * @param Facet The facet type to test the presence of.
567 * @return true if locale contains a facet of type Facet, else false.
574 * @brief Return a facet.
576 facet of type Facet
577 * where Facet is the template parameter. If has_facet(locale) is true,
578 * there is a suitable facet to return. It throws std::bad_cast if the
579 * locale doesn't contain a facet of type Facet.
581 * @param Facet The facet type to access.
583 * @return Reference to facet of type Facet.
584 * @throw std::bad_cast if locale doesn't contain a facet of type Facet.
592 * @brief Facet for localized string comparison.
594 * This facet encapsulates the code to compare strings in a localized
601 * collate facet.
604 class collate : public locale::facet
620 /// Numpunct facet id.
628 * @param refs Passed to the base facet class.
632 : facet(__refs), _M_c_locale_collate(_S_get_c_locale())
642 * @param refs Passed to the base facet class.
646 : facet(__refs), _M_c_locale_collate(_S_clone_c_locale(__cloc))