strchar.h(3)

πŸ“¦ version 1.8.1, in ubuntu jammy

πŸ’– strchar.h β€” the strchar.h(3) era πŸ’–

okay bestie, gather round, because this is the strchar.h page from the Library Functions Manual and it's literally all about character string stuff. common and portable. yes. we love a portable queen. πŸŽ€


✨ NAME ✨

strchar.h β€” Common and portable character string related functions. that's it. that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

first things first, you gotta pull in the goods. include these, exactly these:

#include <cc++/config.h>
#include <cc++/missing.h>
#include <cctype>
#include <string>
#include <cstring>

πŸ¦‹ Namespaces πŸ¦‹

  • ost β€” that's the one, that's where everybody lives 🫢

🧚 Functions 🧚

okay so here's the whole squad, no cap, every single one of them:

  • __EXPORT char * ost::lsetField (char *target, size_t size, const char *src, const char fill=0)
  • __EXPORT char * ost::rsetField (char *target, size_t size, const char *src, const char fill=0)
  • __EXPORT char * ost::setString (char *target, size_t size, const char *src)
  • __EXPORT char * ost::addString (char *target, size_t size, const char *src)
  • __EXPORT char * ost::newString (const char *src, size_t size=0)
  • __EXPORT void ost::delString (char *str)
  • __EXPORT char * ost::setUpper (char *string, size_t size)
  • __EXPORT char * ost::setLower (char *string, size_t size)
  • __EXPORT char * ost::find (const char *cs, char *str, size_t len=0)
  • __EXPORT char * ost::rfind (const char *cs, char *str, size_t len=0)
  • __EXPORT char * ost::ifind (const char *cs, char *str, size_t len=0)
  • __EXPORT char * ost::strip (const char *cs, char *str, size_t len=0)
  • __EXPORT size_t ost::strchop (const char *cs, char *str, size_t len=0)
  • __EXPORT size_t ost::strtrim (const char *cs, char *str, size_t len=0)
  • char * ost::dupString (const char *src, size_t size=0)

like. look at that lineup. fourteen functions and a namespace and every single one of them is keeping it real. the lsetField / rsetField duo? twins. the find / rfind / ifind trio? a little friend group. and dupString at the very bottom with no __EXPORT on it, living its own life, main character energy honestly πŸ‘‘

notice the defaults are all sitting right there in the signatures β€” const char fill=0, size_t size=0, size_t len=0 β€” don't @ me, that's just what they say. ✨

πŸ’œ Detailed Description πŸ’œ

Common and portable character string related functions.

that's the whole thing bestie. it's giving "the description is the name again." iconic behaviour fr fr. 😭


πŸŽ€ Author πŸŽ€

Generated automatically by Doxygen for GNU CommonC++ from the source code.

so nobody hand-wrote this, the machine did it, and honestly? it ate. πŸ’…βœ¨


okay that's the page!! πŸ¦‹ this was GNU CommonC++, dated Sun Dec 27 2020, and that's the footer, so we're done here. go forth and manipulate some strings responsibly bestie, ily, bye πŸ’–πŸŒΈπŸŽ€πŸ«Ά

πŸ“¦ where this page comes from