~ubuntu-branches/ubuntu/trusty/c++-annotations/trusty

« back to all changes in this revision

Viewing changes to yo/string/ops.yo

  • Committer: Package Import Robot
  • Author(s): Frank B. Brokken
  • Date: 2013-05-30 13:32:18 UTC
  • mfrom: (1.1.24)
  • Revision ID: package-import@ubuntu.com-20130530133218-k39mr5uredd093jr
Tags: 9.7.2-1
New upstream release, repairs several minor left-over flaws.
This release incorporates 9.7.0 and 9.7.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
purposes) an (tt(unsigned)) tt(int).
6
6
 
7
7
All tt(string) members accepting tt(string) objects as arguments also accept
8
 
tt(char const *) (bf(C) ASCII-Z string) arguments. The same usually holds true
 
8
tt(char const *) (NTBS) arguments. The same usually holds true
9
9
for operators accepting tt(string) objects.
10
10
 
11
11
Some tt(string)-members use em(iterators). Iterators are formally introduced
49
49
tt(=))may also be used. Furthermore, assignment em(to) a character buffer is
50
50
also supported.)
51
51
    ittq(conversions)
52
 
        (the partial or complete contents of string objects may be
53
 
interpreted as bf(C) strings but the string's contents may also be
54
 
processed as a series of raw binary bytes, not necessarily terminating in an
55
 
ASCII-Z byte. Furthermore, in many situations plain characters and bf(C)
56
 
strings may be used where tt(std::string)s are accepted as well.)
 
52
        (the partial or complete contents of string objects may be interpreted
 
53
as bf(C) strings but the string's contents may also be processed as a series
 
54
of raw binary bytes, not necessarily terminating in a 0-valued
 
55
character. Furthermore, in many situations plain characters and bf(C) strings
 
56
may be used where tt(std::string)s are accepted as well.)
57
57
    ittq(breakdown)
58
58
        (the individual characters stored in a string can be accessed
59
59
using the familiar index operator (tt([])) allowing us to either access or
60
60
modify information in the middle of a string.)
61
61
    ittq(comparisons)
62
 
        (strings may be compared to other strings (or bf(C) ASCII-Z strings)
63
 
using the familiar logical comparison operators tt(==, !=, <, <=, >) and
64
 
tt(>=). There are also member functions available offering a more fine-grained
65
 
comparison.)
 
62
        (strings may be compared to other strings (NTB strings) using the
 
63
familiar logical comparison operators tt(==, !=, <, <=, >) and tt(>=). There
 
64
are also member functions available offering a more fine-grained comparison.)
66
65
    ittq(modification)
67
66
        (the contents of strings may be modified in many ways. Operators are
68
67
available to add information to string objects, to insert information in