STD::__DETAIL::_BRACKETMATCHER(3)

πŸ“¦
version 16.2.1+r23+gd564253eb6c8 Β· 6 versions
, in arch rolling, fedora 44

πŸ’– NAME πŸ’–

std::__detail::_BracketMatcher< _TraitsT, __icase, __collate > β€” bestie, this is the little icon that matches a character range, aka a bracket expression. It's a page from the Library Functions Manual, straight out of libstdc++, and yes she's living in std::__detail because she's an implementation girly. πŸ’…


✨ SYNOPSIS ✨

#include <regex>

okay so first thing, she's a template:

template<typename _TraitsT, bool __icase, bool __collate>
struct std::__detail::_BracketMatcher< _TraitsT, __icase, __collate >

πŸŽ€ Public Types πŸŽ€

the whole friend group, in order:

  • typedef _TraitsT::char_class_type _CharClassT β€” her char class type era
  • typedef _TransT::_CharT _CharT β€” literally just the char type, no notes
  • typedef _TraitsT::string_type _StringT β€” the string type, obsessed
  • typedef _TransT::_StrTransT _StrTransT β€” the string translator type
  • typedef _RegexTranslator< _TraitsT, __icase, __collate > _TransT β€” the translator she's built on top of, and yes __icase and __collate pass straight through 🫢

🌸 Public Member Functions 🌸

every single one of them, no gatekeeping:

  • _BracketMatcher (bool __is_non_matching, const _TraitsT &__traits) β€” constructor moment, takes a bool __is_non_matching and a const _TraitsT &__traits
  • void _M_add_char (_CharT __c) β€” add one char, _CharT __c
  • void _M_add_character_class (const _StringT &__s, bool __neg) β€” add a character class from const _StringT &__s, with a bool __neg for the negation vibe
  • _StringT _M_add_collate_element (const _StringT &__s) β€” add a collate element from const _StringT &__s and hand back a _StringT
  • void _M_add_equivalence_class (const _StringT &__s) β€” add an equivalence class from const _StringT &__s
  • void _M_make_range (_CharT __l, _CharT __r) β€” build a range from _CharT __l to _CharT __r, slay
  • void _M_ready () β€” the final glow-up, call her when setup is done
  • bool operator() (_CharT __ch) const β€” the actual vibe check: does _CharT __ch match? returns bool, and she's const because she's not changing for anybody πŸ’…

πŸ¦‹ Detailed Description πŸ¦‹

template<typename _TraitsT, bool __icase, bool __collate>
struct std::__detail::_BracketMatcher< _TraitsT, __icase, __collate >

Matches a character range (bracket expression). that's it, that's the whole assignment, and she ate. πŸ”₯


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. not a human author, just a robot doing her best, and honestly? respect. 😭


no cap, every option, type, and signature up there is copied character-for-character, so don't come for me if you typo a template param β€” that's on you bestie πŸ™ˆ

mwah πŸ’– this was std::__det..._collate >(3) from the libstdc++ crew, served fresh from that Library Functions Manual, and that's the whole page. periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from
  • arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
  • fedora 44: libstdc++-docs 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • fedora 44: libstdc++-docs 16.2.1-2.fc44
  • fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms