FBB::Indent(3bobcat)

✨ FBB::Indent ✨

okay bestie, welcome to FBB::Indent β€” that's a section 3 bobcat manual page, Text Indentation flavored, and it's literally the cutest little configurable text indenter you ever met. πŸ’–


🌸 NAME 🌸

FBB::Indent β€” configurable text indentation, no cap.


πŸŽ€ SYNOPSIS πŸŽ€

#include <bobcat/indent>

πŸ¦‹ DESCRIPTION πŸ¦‹

So FBB::Indent and its lil squad of manipulators are all about text-indentation. Text you shove into streams gets indented by a fully configurable amount, using a set of manipulators plus (static) member functions. it's giving "control freak but make it fashion" πŸ’…


πŸ’œ NAMESPACE πŸ’œ

FBB

Every single constructor, member, operator and manipulator mentioned in this man-page is defined in the namespace FBB. periodt.


🌈 INHERITS FROM 🌈

-

(nope, nothing. it's free. main character energy, no parent class. πŸ‘‘)


⭐ STATIC MEMBER FUNCTIONS ⭐

  • void clear() β€” resets the indentation level to zero. and jsyk, after you call this the indent manipulator will have no visible effect. it's done, it said goodbye 🫢
  • void dec() β€” reduces the indentation level by the current increment (which is 4 by default). and bestie, the indentation level is never reduces to a negative value β€” so don't try it, it will not go there πŸ’€
  • void inc() β€” increments the indentation level by the current increment (again, 4 by default). slay.
  • void setInc(size_t inc) β€” defines the increment value that gets used with the dec and inc members. you're the one setting the rules now.
  • void setWidth(size_t width) β€” defines the indentation to a specific value width. direct. precise. iconic.

πŸ’… MANIPULATORS πŸ’…

okay so these manipulators are not part of the FBB::Indent class β€” nope β€” they're defined in the FBB namespace. but you can absolutely insert them into your FBB::Indent object. here's the whole lineup:

  • FBB::decindent β€” this one calls Indent::dec first. then FBB::indent gets called. the effect? the indentation level gets reduced just before the indentation is inserted.
  • FBB::incindent β€” this one calls Indent::inc first. then FBB::indent gets called. the effect? the indentation level gets incremented just before the indentation is inserted.
  • FBB::indent β€” inserts the currently defined number of indentation blanks into the ostream for which it it called. (yes, "it it". the original said it it. we love a typo moment, it's part of the lore πŸ’€)
  • FBB::indentdec β€” this one calls FBB::indent first. then Indent::dec gets called. the effect? the indentation gets inserted first, immediately followed by a reduction of the indentation level.
  • FBB::indentinc β€” this one calls FBB::indent first. then Indent::inc gets called. the effect? the indentation gets inserted first, immediately followed by a increment of the indentation level.
  • FBB::nlindent β€” inserts a newline character (\n). then FBB::indent gets called, indenting the next line over the currently defined number of blanks. chef's kiss 😭

πŸ”₯ EXAMPLE πŸ”₯

using namespace std;
using namespace FBB;
int main()
{
    cout << indentinc << "Not indented" <<
            nlindent << "Indenting with 4 blanks\n";
    Indent::clear();
    cout << "No indentation\n";
}

πŸ“ FILES πŸ“

bobcat/indent β€” defines the class interface. that's the one you include, bestie.


πŸ’– SEE ALSO πŸ’–

bobcat(7)


πŸ™ˆ BUGS πŸ™ˆ

None Reported.

(we're not saying it's perfect... but we're also not NOT saying it ✨)


🧚 BOBCAT PROJECT FILES 🧚

Debian Bobcat project files:

  • libbobcat6 β€” debian package containing the shared library, changelog and copyright note;
  • libbobcat-dev β€” debian package containing the static library, headers, manual pages, and developer info;

πŸ‘‘ BOBCAT πŸ‘‘

Bobcat is an acronym of `Brokken’s Own Base Classes And Templates’. lowkey a serve.


This is free software, distributed under the terms of the GNU General Public License (GPL). free as in freedom, free as in slay πŸ¦‹


πŸ’œ AUTHOR πŸ’œ

Frank B. Brokken (f.b.brokken@rug.nl).


and that's the whole page, bestie β€” brought to you by libbobcat-dev_6.15.01, dated 2005-2026, in the FBB::Indent(3bobcat) era. go forth and indent responsibly πŸŽ€βœ¨πŸ’–

πŸ“¦ where this page comes from