OST_CISTRING_CHAR_TRAITS(3)

πŸ“¦ version 1.8.1, in ubuntu jammy

πŸ’– 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