File: indent.yo

package info (click to toggle)
bobcat 6.02.02-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,960 kB
  • sloc: cpp: 18,954; fortran: 5,617; makefile: 2,787; sh: 659; perl: 401; ansic: 26
file content (94 lines) | stat: -rw-r--r-- 3,226 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
includefile(include/header)

COMMENT(manpage, section, releasedate, archive, short name)
manpage(FBB::Indent)(3bobcat)(_CurYrs_)(libbobcat-dev__CurVers_)
                    (Text Indentation)

manpagename(FBB::Indent)(Configurable text indentation)

manpagesynopsis()
    bf(#include <bobcat/indent>)nl()


manpagedescription()
    bf(FBB::Indent) and its various manipulators offer text-indentation. Text
inserted into streams is indented over a fully configurable amount using a set
of manipulators and (static) member functions.

includefile(include/namespace)

manpagesection(INHERITS FROM)
    -

manpagesection(STATIC MEMBER FUNCTIONS)

    itemization(
    itb(void clear())
        Resets the indentation level to zero. The bf(indent) manipulator will
have no visible effect after calling this member.
    itb(void dec())
        Reduces the indentation level by the current increment (4 by
default). The indentation level is never reduces to a negative value.
    itb(void inc())
        Increments the indentation level by the current increment (4 by
default).
    itb(void setInc(size_t inc))
        Defines the increment value used with the bf(dec) and bf(inc)
members.
    itb(void setWidth(size_t width))
        Defines the indentation to a specific value bf(width).
    )

manpagesection(MANIPULATORS)
    The following manipulators (which are em(not) part of the bf(FBB::Indent),
class, but em(are) defined in the bf(FBB) namespace) can be inserted into the
bf(FBB::Indent) object:
    itemization(
    itb(FBB::decindent)
        This manipulator will first call bf(Indent::dec). Then bf(FBB::indent)
is called. The effect will be that the indentation level is reduced just
before the indentation is inserted.
    itb(FBB::incindent)
        This manipulator will first call bf(Indent::inc). Then bf(FBB::indent)
is called. The effect will be that the indentation level is incremented just
before the indentation is inserted.
    itb(FBB::indent)
        This manipulator will insert the currently defined number of
indentation blanks into the tt(ostream) for which it it called.
    itb(FBB::indentdec)
        This manipulator will first call bf(FBB::indent), Then bf(Indent::dec)
is called. The effect will be that the indentation is inserted first,
immediately followed by a reduction of the indentation level.
    itb(FBB::indentinc)
        This manipulator will first call bf(FBB::indent), Then bf(Indent::inc)
is called. The effect will be that the indentation is inserted first,
immediately followed by a increment of the indentation level.
    itb(FBB::nlindent)
        This manipulator will insert a newline character (tt(\n)). Then
bf(FBB::indent) is called, indenting the next line over the currently defined
number of blanks.
    )

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

manpagefiles()
    em(bobcat/indent) - defines the class interface

manpageseealso()
    bf(bobcat)(7)

manpagebugs()
    None Reported.

includefile(include/trailer)