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 theindentmanipulator will have no visible effect. it's done, it said goodbye π«Άvoid dec()β reduces the indentation level by the current increment (which is4by 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,4by default). slay.void setInc(size_t inc)β defines the increment value that gets used with thedecandincmembers. you're the one setting the rules now.void setWidth(size_t width)β defines the indentation to a specific valuewidth. 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 callsIndent::decfirst. thenFBB::indentgets called. the effect? the indentation level gets reduced just before the indentation is inserted.FBB::incindentβ this one callsIndent::incfirst. thenFBB::indentgets 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 theostreamfor 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 callsFBB::indentfirst. thenIndent::decgets called. the effect? the indentation gets inserted first, immediately followed by a reduction of the indentation level.FBB::indentincβ this one callsFBB::indentfirst. thenIndent::incgets called. the effect? the indentation gets inserted first, immediately followed by a increment of the indentation level.FBB::nlindentβ inserts a newline character (\n). thenFBB::indentgets 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 π
π BUGS π
None Reported.
(we're not saying it's perfect... but we're also not NOT saying it β¨)
π§ BOBCAT PROJECT FILES π§
- [
https://fbb-git.gitlab.io/bobcat/] β gitlab project page;
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.
πΈ COPYRIGHT πΈ
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
- ubuntu stonking: libbobcat-dev 6.15.01-1 Β· GPL-3.0-or-later WITH OpenSSL exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms