OST_CISTRING_CHAR_TRAITS(3)
π NAME π
ost::cistring_char_traits< charT > β bestie this is the character traits class for case-insensitive strings, from the ost:: namespace, and it's a template over charT. That's the whole name, no cap. π
β¨ SYNOPSIS β¨
okay so first things first, you gotta pull it in:
#include <oststring.h>
and plot twist π β it Inherits string_char_traits< charT >. so it's giving "I'm the case-insensitive glow-up of my parent class," fr fr.
πΈ Static Public Member Functions πΈ
here's the whole squad, all static, all doing their little jobs:
static bool eq (char c1, char c2)
static bool ne (char c1, char c2)
static bool lt (char c1, char c2)
static int compare (const char *s1, const char *s2, size_t n)
four functions. that's the lineup. π
π¦ Member Function Documentation π¦
π compare β the main character
template<class charT > static int ost::cistring_char_traits< charT >::compare (const char * s1, const char * s2, size_t n) [inline], [static]
this one compares s1 and s2 over n characters, and it References strnicmp. yes bestie, the i in strnicmp is the whole vibe β insensitive comparison, periodt. π₯
π eq β are these two the same
template<class charT > static bool ost::cistring_char_traits< charT >::eq (char c1, char c2) [inline], [static]
π lt β is the first one less than the second
template<class charT > static bool ost::cistring_char_traits< charT >::lt (char c1, char c2) [inline], [static]
π ne β are these two NOT the same
template<class charT > static bool ost::cistring_char_traits< charT >::ne (char c1, char c2) [inline], [static]
ok so real talk π«Ά β all three of these (eq,lt,ne) are marked[inline]and[static], and they're documented right here with zero extra notes attached. that's it, that's the whole entry. don't go inventing behaviour for them, bestie, i would never lie to you. π
π Author π
Generated automatically by Doxygen for GNU CommonC++ from the source code.
so yeah, a robot wrote this one, not me. respect the bot though, it ate. π€β¨
and that's the whole page, babe β this gem comes to you from GNU CommonC++, dated Sun Dec 27 2020, and it lives in section 3 of the manual (ost::cistr...s< charT >(3), Library Functions Manual, if you're keeping receipts π). go forth and compare strings insensitively, you icon. mwah. πππ¦
π¦ where this page comes from
- ubuntu jammy: libcommoncpp2-doc 1.8.1-10
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms