summaryrefslogtreecommitdiff
path: root/lib/mystring/ChangeLog
blob: 458067b08f7b3bd1105a7c8229a052d0226f0749 (plain)
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
2000-04-09  Bruce Guenter  <bguenter@bguenter.pointsnorth.com>

	* count.cc (count): Added this routine to count the number of
	instances of a single character in a string.

2000-04-06  Bruce Guenter  <bguenter@bguenter.pointsnorth.com>

	* fdobuf.cc (operator<<): Moved this routine out of an inline
	declaration.

	* iter.h: Moved the mystring_iter declarations into this file.

	* rep.h: Moved the mystringrep declarations into this file.

	* join.h: Moved the mystringjoin declarations into this file.

	* mystring.h (class mystring): Renamed the "find_first" and
	"find_last" routines that scan for items in a set to
	"find_first_of" and "find_last_of".

1999-08-15  Bruce Guenter  <bguenter@mikhail.qcc.sk.ca>

	* mystring.h (class mystring_iter): Changed the default seperator
	for strings to '\0'
	(class mystring): Added a NUL constant (single 0 byte string).

1999-07-26  Bruce Guenter  <bguenter@mikhail.qcc.sk.ca>

	* mystring.h (class mystring_iter): Added this new iterator class,
	taken from code used in vmailmgr.  It is used to iterate over
	essentially a token-delimited string.

1999-07-14  Bruce Guenter  <bguenter@mikhail.qcc.sk.ca>

	* Removed all vestiges of mystringtmp support from this library.

1999-07-13  Bruce Guenter  <bguenter@mikhail.qcc.sk.ca>

	* append.cc: Fixed same bug as below in append.

	* assign.cc: Fixed bug in assign and dup where NULL pointers
	caused a crash.

	* append.cc, assign.cc: removed the mystringtmp versions of the
	append, assign, and dup operations.  mystringtmp now only exists
	in the cons[2-7].cc files and tmp.cc

	* find.cc: Split this file into find_first, find_first_of,
	find_last, and find_last_of.

1999-07-12  Bruce Guenter  <bguenter@mikhail.qcc.sk.ca>

	* join.cc (traverse): This routine traverses the linked list and
	builds a mystringrep out of it.

	* mystring.h: Renamed TRACE to MYSTRING_TRACE.
	Added a new mystringjoin class.  This class is used to turn a list
	of calls to "operator+" into a single constructor by building a
	linked list on the stack.  This will replace mystringtmp.

	* rep.cc (struct _rep_stats): Fixed the percentage function to not
	do divide-by-zero; modified the "slack" reporting to report a
	percentage of the requested length.

	* assign.cc: Re-added dup and assign functions for "char*" type,
	moving the constructors and assignment operators inline.

	* append.cc: Re-added append functions for "char*" type.

1999-07-08  Bruce Guenter  <bguenter@mikhail.qcc.sk.ca>

	* mystring.h (class mystring): Eliminated the "mystring" return
	value for the assign and append operators, since this return value
	is never used and causes extra operations.

	* operator_plus.cc: Created this new file containing the
	"operator+" routine.

	* operator_pleq.cc: Created this new file containing all the
	"operator+=" routines.

	* assign.cc: Created this new file containing all the assign and
	dup primitives.

	* mystring.h (class mystring): Removed the += operator taking
	"mystringtmp" parameter, and replaced it with two routines, one
	for "const mystring&", and one for "const char*".  This results in
	a net code shrinkage.

	* rep.cc (struct _rep_stats): Added this optional statistics
	gathering class to determine the effectiveness of the slack space
	and string appending.

	* append.cc (append): Use the new rep->append routine.

	* rep.cc (alloc): Allocate an amount of "slack" space when
	allocating a string, to allow for later appends.
	(append): This new routine appends a string to the current rep if
	and only if the current rep has a single reference and the new
	length of the string will fit within the current size.  If not, it
	makes a dup of this+str and returns a pointer to it.

1999-06-07  Bruce Guenter  <bguenter@mikhail.qcc.sk.ca>

	* tmp.cc: Removed the contents of checkstr, and moved the
	necessary parts into the constructors.  This makes the code more
	efficient, as the constructors are adequately specific to omit
	some of the branches in the comparisons.  It also ensures that len
	is always initialized, allowing many of the simple functions to be
	moved inline to the header file.

1999-04-01  Bruce Guenter  <bguenter@mikhail.qcc.sk.ca>

	* cons7.cc (mystring): Wrote this constructor to build a string
	from 7 inputs.