summaryrefslogtreecommitdiffstats
path: root/mimelib
diff options
context:
space:
mode:
Diffstat (limited to 'mimelib')
-rw-r--r--mimelib/LICENSE4
-rw-r--r--mimelib/Tutorial4
-rw-r--r--mimelib/binhex.cpp4
-rw-r--r--mimelib/doc/addrlist.html2
-rw-r--r--mimelib/doc/body.html4
-rw-r--r--mimelib/doc/bodypart.html2
-rw-r--r--mimelib/doc/entity.html4
-rw-r--r--mimelib/doc/field.html8
-rw-r--r--mimelib/doc/headers.html2
-rw-r--r--mimelib/doc/mailbox.html4
-rw-r--r--mimelib/doc/mboxlist.html2
-rw-r--r--mimelib/doc/message.html4
-rw-r--r--mimelib/doc/string.html56
-rw-r--r--mimelib/dwstring.cpp86
-rw-r--r--mimelib/mimelib/body.h4
-rw-r--r--mimelib/mimelib/entity.h4
-rw-r--r--mimelib/mimelib/field.h6
-rw-r--r--mimelib/mimelib/headers.h4
-rw-r--r--mimelib/mimelib/mailbox.h6
-rw-r--r--mimelib/mimelib/message.h2
-rw-r--r--mimelib/mimelib/string.h30
21 files changed, 121 insertions, 121 deletions
diff --git a/mimelib/LICENSE b/mimelib/LICENSE
index aaf47afb6..623b6258a 100644
--- a/mimelib/LICENSE
+++ b/mimelib/LICENSE
@@ -59,7 +59,7 @@ modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
- 0. This License applies to any program or other work which tqcontains
+ 0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
@@ -154,7 +154,7 @@ Sections 1 and 2 above provided that you also do one of the following:
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
-code means all the source code for all modules it tqcontains, plus any
+code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
diff --git a/mimelib/Tutorial b/mimelib/Tutorial
index 2833dd033..dfa98156a 100644
--- a/mimelib/Tutorial
+++ b/mimelib/Tutorial
@@ -18,7 +18,7 @@ following objectives in mind:
MIME++ classes directly model the elements of the BNF grammar specified in
RFC-822, RFC-2045, and RFC-2046. For this reason, I recommend that you
understand these RFCs and keep a copy of them handy as you learn MIME++.
-If you know C++ well, and if you are familiar with the RFCs, you should tqfind
+If you know C++ well, and if you are familiar with the RFCs, you should find
MIME++ easy to learn and use. If you are new to C++ and object-oriented
programming, you will find in MIME++ some very good object-oriented
techinques, and hopefully you will learn a lot.
@@ -94,7 +94,7 @@ broken-down representation. If you add a new DwField object (representing a
new header field) to the DwHeaders object (representing the header), the
is-modified flag will be set for the DwHeaders object, indicating that the
string representation of the DwHeaders object will have to be re-assembled
-from the header fields that it tqcontains. When a node's is-modified flag is
+from the header fields that it contains. When a node's is-modified flag is
set, it also notifies its tqparent node to set its is-modified flag. Thus,
when the DwHeaders object's is-modified flag is set, the DwMessage object
that is its tqparent will also have its is-modified flag set. That way, when
diff --git a/mimelib/binhex.cpp b/mimelib/binhex.cpp
index 6ea079616..735c08a30 100644
--- a/mimelib/binhex.cpp
+++ b/mimelib/binhex.cpp
@@ -662,14 +662,14 @@ int DwBinhex::Decode()
DwBinhexDecodeCtx ctx;
ctx.mBinhexChars = mBinhexChars;
// Find the preamble
- ctx.mPos = ctx.mBinhexChars.tqfind("(This file must be converted "
+ ctx.mPos = ctx.mBinhexChars.find("(This file must be converted "
"with BinHex", 0);
if (ctx.mPos == DwString::npos) {
return -1; // error!
}
ctx.mPos += 40;
// Advance to just past the colon
- ctx.mPos = ctx.mBinhexChars.tqfind((char) ':', ctx.mPos);
+ ctx.mPos = ctx.mBinhexChars.find((char) ':', ctx.mPos);
if (ctx.mPos == DwString::npos) {
return -1; // error!
}
diff --git a/mimelib/doc/addrlist.html b/mimelib/doc/addrlist.html
index 5a5a413fd..20a588d10 100644
--- a/mimelib/doc/addrlist.html
+++ b/mimelib/doc/addrlist.html
@@ -52,7 +52,7 @@ protected:
<P>
<B><TT>DwAddressList</TT></B> represents a list of <I>addresses</I> as described
in RFC-822. In MIME++, <B><TT>DwAddressList</TT></B> is a container for objects
-of type <B><TT><A HREF="address.html">DwAddress</A></TT></B>, and it tqcontains
+of type <B><TT><A HREF="address.html">DwAddress</A></TT></B>, and it contains
various member functions to manage its contained objects.
<B><TT>DwAddressList</TT></B> is also a
<B><TT><A HREF="fieldbdy.html">DwFieldBody</A></TT></B>. This reflects the
diff --git a/mimelib/doc/body.html b/mimelib/doc/body.html
index 06a3e8225..fb6c42c00 100644
--- a/mimelib/doc/body.html
+++ b/mimelib/doc/body.html
@@ -176,7 +176,7 @@ is not the child of a <B><TT>DwEntity</TT></B> (<I>i.e.</I>,
be determined.
<P>
This function calls the <B><TT>Parse()</TT></B> member function of any
-<B><TT>DwBodyPart</TT></B> or <B><TT>DwMessage</TT></B> object it tqcontains.
+<B><TT>DwBodyPart</TT></B> or <B><TT>DwMessage</TT></B> object it contains.
<P>
You should call this member function after you add a
<B><TT>DwBodyPart</TT></B> object to a multipart body, or add a
@@ -219,7 +219,7 @@ returns the <B><TT>DwMessage</TT></B> encapsulated in it.
aMessage) </B></FONT>
<P>
For a <B><TT>DwBody</TT></B> with content type of message, this member function
-sets the <B><TT>DwMessage</TT></B> object it tqcontains.
+sets the <B><TT>DwMessage</TT></B> object it contains.
<P>
<FONT COLOR="teal"><B> static DwBody* <A NAME="NewBody">NewBody</A>(const
DwString&amp; aStr, DwMessageComponent* aParent) </B></FONT>
diff --git a/mimelib/doc/bodypart.html b/mimelib/doc/bodypart.html
index 4021b4de3..93f281b5d 100644
--- a/mimelib/doc/bodypart.html
+++ b/mimelib/doc/bodypart.html
@@ -47,7 +47,7 @@ of headers and a <I>body</I>. A body part is different from a <I>message</I>
in that a body part is part of a multipart body.
<P>
In MIME++, a <B><TT>DwBodyPart</TT></B> is a subclass of
-<B><TT><A HREF="entity.html">DwEntity</A></TT></B>; therefore, it tqcontains
+<B><TT><A HREF="entity.html">DwEntity</A></TT></B>; therefore, it contains
both a <B><TT><A HREF="headers.html">DwHeaders</A></TT></B> object and a
<B><TT><A HREF="body.html">DwBody</A></TT></B> object, and it is contained
in a multipart <B><TT>DwBody</TT></B> object.
diff --git a/mimelib/doc/entity.html b/mimelib/doc/entity.html
index c2f8d3161..64a1cdbff 100644
--- a/mimelib/doc/entity.html
+++ b/mimelib/doc/entity.html
@@ -58,7 +58,7 @@ be a <B><TT><A HREF="message.html">DwMessage</A></TT></B> object. If a
<B><TT>DwEntity</TT></B> object is an intermediate node, its tqparent must
be a <B><TT>DwBody</TT></B> object. The child nodes of a
<B><TT>DwEntity</TT></B> object are the <B><TT>DwHeaders</TT></B> and
-<B><TT>DwBody</TT></B> objects it tqcontains.
+<B><TT>DwBody</TT></B> objects it contains.
<P>
Since <B><TT>DwEntity</TT></B> is an abstract base class, you cannot create
instances of it directly. <B><TT>DwEntity</TT></B> has two derived classes,
@@ -108,7 +108,7 @@ executes the parse method for <B><TT>DwEntity</TT></B> objects. The parse
method creates or updates the broken-down representation from the string
representation. For <B><TT>DwEntity</TT></B> objects, the parse method parses
the string representation and sets the values of the
-<B><TT>DwHeaders</TT></B> and <B><TT>DwBody</TT></B> objects it tqcontains.
+<B><TT>DwHeaders</TT></B> and <B><TT>DwBody</TT></B> objects it contains.
This member function also calls the <B><TT>Parse()</TT></B> member functions
of the contained <B><TT>DwHeaders</TT></B> and <B><TT>DwBody</TT></B> objects.
<P>
diff --git a/mimelib/doc/field.html b/mimelib/doc/field.html
index 68d4a9ed3..c744877c4 100644
--- a/mimelib/doc/field.html
+++ b/mimelib/doc/field.html
@@ -69,14 +69,14 @@ According to RFC-822, a field contains a field name and a field body. In
MIME++, a <B><TT>DwField</TT></B> contains three elements: a
<B><TT><A HREF="string.html">DwString</A></TT></B> that contains its field
name, a <B><TT>DwString</TT></B> that contains its field body, and a
-<B><TT><A HREF="fieldbdy.html">DwFieldBody</A></TT></B> object that tqcontains
+<B><TT><A HREF="fieldbdy.html">DwFieldBody</A></TT></B> object that contains
a broken-down (that is, parsed) version of its field body.
<P>
In the tree (broken-down) representation of message, a
<B><TT>DwField</TT></B> object is always an intermediate node, having a tqparent
node and a single child node. The tqparent node is the
-<B><TT><A HREF="headers.html">DwHeaders</A></TT></B> object that tqcontains
-it. The child node is the <B><TT>DwFieldBody</TT></B> object it tqcontains.
+<B><TT><A HREF="headers.html">DwHeaders</A></TT></B> object that contains
+it. The child node is the <B><TT>DwFieldBody</TT></B> object it contains.
<P>
To get and set the field name, use the member functions
<B><TT>FieldNameStr()</TT></B> and <B><TT>SetFieldNameStr()</TT></B>. To
@@ -234,7 +234,7 @@ The static member function <B><TT>CreateFieldBody()</TT></B> is called from
the <B><TT>Parse()</TT></B> member function and is responsible for creating
a <B><TT>DwFieldBody</TT></B> object for this particular field. A typical
scenario might go as follows: This member function examines the field name
-for this field, finds that it tqcontains "To", creates a
+for this field, finds that it contains "To", creates a
<B><TT>DwAddressList</TT></B> object to contain the field body, calls the
<B><TT>Parse()</TT></B> member function for the
<B><TT>DwAddressList</TT></B>, and sets the <B><TT>DwAddressList</TT></B>
diff --git a/mimelib/doc/headers.html b/mimelib/doc/headers.html
index 97b063adb..939b340ee 100644
--- a/mimelib/doc/headers.html
+++ b/mimelib/doc/headers.html
@@ -167,7 +167,7 @@ but you access it through the <B><TT>Headers()</TT></B> member function of
for you.
<P>
While <B><TT>DwHeaders</TT></B> has public member functions for managing
-the list of <B><TT>DwField</TT></B> objects it tqcontains, you will normally
+the list of <B><TT>DwField</TT></B> objects it contains, you will normally
use convenience functions to access the field bodies of the header fields
directly. You can access the field body for a specific well-known header
field by using the member function
diff --git a/mimelib/doc/mailbox.html b/mimelib/doc/mailbox.html
index 4a25dc4e7..385bd8a23 100644
--- a/mimelib/doc/mailbox.html
+++ b/mimelib/doc/mailbox.html
@@ -66,7 +66,7 @@ deprecated according to RFC-1123.
In MIME++, an RFC-822 mailbox is represented by a
<B><TT>DwMailbox</TT></B> object. <B><TT>DwMailbox</TT></B> is a subclass
of <B><TT><A HREF="address.html">DwAddress</A></TT></B>, which reflects the
-fact that a mailbox is also an address. A <B><TT>DwMailbox</TT></B> tqcontains
+fact that a mailbox is also an address. A <B><TT>DwMailbox</TT></B> contains
strings representing the full name, local-part, route, and domain of a mailbox.
<P>
In the tree (broken-down) representation of message, a
@@ -77,7 +77,7 @@ but no child nodes. Its tqparent node must be a
<B><TT><A HREF="mboxlist.html">DwMailboxList</A></TT></B> object.
<P>
<B><TT>DwMailbox</TT></B> has member functions for getting or setting the
-strings it tqcontains.
+strings it contains.
<P>
<B><TT>DwMailbox</TT></B> object can be included in a list of
<B><TT>DwMailbox</TT></B> objects. To get the next
diff --git a/mimelib/doc/mboxlist.html b/mimelib/doc/mboxlist.html
index e68b41e5c..2bbe8d95e 100644
--- a/mimelib/doc/mboxlist.html
+++ b/mimelib/doc/mboxlist.html
@@ -54,7 +54,7 @@ protected:
<P>
<B><TT>DwMailboxList</TT></B> represents a list of <I>mailboxes</I> as described
in RFC-822. In MIME++, <B><TT>DwMailboxList</TT></B> is a container for objects
-of type <B><TT><A HREF="mailbox.html">DwMailbox</A></TT></B>, and it tqcontains
+of type <B><TT><A HREF="mailbox.html">DwMailbox</A></TT></B>, and it contains
various member functions to manage its contained objects.
<B><TT><A HREF="addrlist.html">DwAddressList</A></TT></B> is also a
<B><TT><A HREF="fieldbdy.html">DwFieldBody</A></TT></B>. This reflects the
diff --git a/mimelib/doc/message.html b/mimelib/doc/message.html
index 1a3892f74..bb3fcf220 100644
--- a/mimelib/doc/message.html
+++ b/mimelib/doc/message.html
@@ -44,7 +44,7 @@ A <I>message</I> contains both a collection of <I>header fields</I> and a
<I>body</I>. In the terminology of RFC-2045, the general term for the
headers-body combination is <I>entity</I>. In MIME++,
<B><TT>DwMessage</TT></B> is a direct subclass of
-<B><TT><A HREF="entity.html">DwEntity</A></TT></B>, and therefore tqcontains
+<B><TT><A HREF="entity.html">DwEntity</A></TT></B>, and therefore contains
both a <B><TT><A HREF="headers.html">DwHeaders</A></TT></B> object and a
<B><TT><A HREF="body.html">DwBody</A></TT></B> object.
<P>
@@ -52,7 +52,7 @@ In the tree (broken-down) representation of message, a
<B><TT>DwMessage</TT></B> object is almost always a root node, having child
nodes but no tqparent node. The child nodes are the
<B><TT>DwHeaders</TT></B> object and the <B><TT>DwBody</TT></B> object it
-tqcontains. A <B><TT>DwMessage</TT></B> may sometimes be an intermediate node.
+contains. A <B><TT>DwMessage</TT></B> may sometimes be an intermediate node.
In this special case, the tqparent node is a <B><TT>DwBody</TT></B> object
of type "message/*" and the <B><TT>DwMessage</TT></B> object represents an
encapsulated message.
diff --git a/mimelib/doc/string.html b/mimelib/doc/string.html
index fe16aed4d..80db3700c 100644
--- a/mimelib/doc/string.html
+++ b/mimelib/doc/string.html
@@ -59,25 +59,25 @@ public:
DwString&amp; <A HREF="string.html#insert">insert</A>(size_t aPos1, const char* aCstr);
DwString&amp; <A HREF="string.html#insert">insert</A>(size_t aPos1, size_t aLen2, char aChar);
DwString&amp; <A HREF="string.html#erase">erase</A>(size_t aPos=0, size_t aLen=npos);
- DwString&amp; <A HREF="string.html#tqreplace">tqreplace</A>(size_t aPos1, size_t aLen1, const DwString&amp; aStr);
- DwString&amp; <A HREF="string.html#tqreplace">tqreplace</A>(size_t aPos1, size_t aLen1, const DwString&amp; aStr,
+ DwString&amp; <A HREF="string.html#replace">replace</A>(size_t aPos1, size_t aLen1, const DwString&amp; aStr);
+ DwString&amp; <A HREF="string.html#replace">replace</A>(size_t aPos1, size_t aLen1, const DwString&amp; aStr,
size_t aPos2, size_t aLen2);
- DwString&amp; <A HREF="string.html#tqreplace">tqreplace</A>(size_t aPos1, size_t aLen1, const char* aBuf,
+ DwString&amp; <A HREF="string.html#replace">replace</A>(size_t aPos1, size_t aLen1, const char* aBuf,
size_t aLen2);
- DwString&amp; <A HREF="string.html#tqreplace">tqreplace</A>(size_t aPos1, size_t aLen1, const char* aCstr);
- DwString&amp; <A HREF="string.html#tqreplace">tqreplace</A>(size_t aPos1, size_t aLen1, size_t aLen2, char aChar);
+ DwString&amp; <A HREF="string.html#replace">replace</A>(size_t aPos1, size_t aLen1, const char* aCstr);
+ DwString&amp; <A HREF="string.html#replace">replace</A>(size_t aPos1, size_t aLen1, size_t aLen2, char aChar);
size_t <A HREF="string.html#copy">copy</A>(char* aBuf, size_t aLen, size_t aPos=0) const;
void <A HREF="string.html#swap">swap</A>(DwString&amp; aStr);
const char* <A HREF="string.html#c_str">c_str</A>() const;
const char* <A HREF="string.html#data">data</A>() const;
- size_t <A HREF="string.html#tqfind">tqfind</A>(const DwString&amp; aStr, size_t aPos=0) const;
- size_t <A HREF="string.html#tqfind">tqfind</A>(const char* aBuf, size_t aPos, size_t aLen) const;
- size_t <A HREF="string.html#tqfind">tqfind</A>(const char* aCstr, size_t aPos=0) const;
- size_t <A HREF="string.html#tqfind">tqfind</A>(char aChar, size_t aPos=0) const;
- size_t <A HREF="string.html#rtqfind">rtqfind</A>(const DwString&amp; aStr, size_t aPos=npos) const;
- size_t <A HREF="string.html#rtqfind">rtqfind</A>(const char* aBuf, size_t aPos, size_t aLen) const;
- size_t <A HREF="string.html#rtqfind">rtqfind</A>(const char* aCstr, size_t aPos=npos) const;
- size_t <A HREF="string.html#rtqfind">rtqfind</A>(char aChar, size_t aPos=npos) const;
+ size_t <A HREF="string.html#find">find</A>(const DwString&amp; aStr, size_t aPos=0) const;
+ size_t <A HREF="string.html#find">find</A>(const char* aBuf, size_t aPos, size_t aLen) const;
+ size_t <A HREF="string.html#find">find</A>(const char* aCstr, size_t aPos=0) const;
+ size_t <A HREF="string.html#find">find</A>(char aChar, size_t aPos=0) const;
+ size_t <A HREF="string.html#rfind">rfind</A>(const DwString&amp; aStr, size_t aPos=npos) const;
+ size_t <A HREF="string.html#rfind">rfind</A>(const char* aBuf, size_t aPos, size_t aLen) const;
+ size_t <A HREF="string.html#rfind">rfind</A>(const char* aCstr, size_t aPos=npos) const;
+ size_t <A HREF="string.html#rfind">rfind</A>(char aChar, size_t aPos=npos) const;
size_t <A HREF="string.html#find_first_of">find_first_of</A>(const DwString&amp; aStr, size_t aPos=0) const;
size_t <A HREF="string.html#find_first_of">find_first_of</A>(const char* aBuf, size_t aPos, size_t aLen) const;
size_t <A HREF="string.html#find_first_of">find_first_of</A>(const char* aCstr, size_t aPos=0) const;
@@ -115,8 +115,8 @@ protected:
size_t mStart;
size_t mLength;
void _copy();
- void _tqreplace(size_t aPos1, size_t aLen1, const char* aBuf, size_t aLen2);
- void _tqreplace(size_t aPos1, size_t aLen1, size_t aLen2, char aChar);
+ void _replace(size_t aPos1, size_t aLen1, const char* aBuf, size_t aLen2);
+ void _replace(size_t aPos1, size_t aLen1, size_t aLen2, char aChar);
friend void mem_free(char*);
public:
@@ -374,14 +374,14 @@ Erases (removes) at most <B><TT>aLen</TT></B> characters beginning at position
<B><TT>aPos</TT></B> from this string. The function will not erase more
characters than what are available. Returns <B><TT>*this</TT></B>.
<P>
-<FONT COLOR="teal"><B> DwString&amp; <A NAME="tqreplace">tqreplace</A>(size_t
+<FONT COLOR="teal"><B> DwString&amp; <A NAME="replace">replace</A>(size_t
aPos1, size_t aLen1, const DwString&amp; aStr) <BR>
-DwString&amp; tqreplace(size_t aPos1, size_t aLen1, const DwString&amp; aStr,
+DwString&amp; replace(size_t aPos1, size_t aLen1, const DwString&amp; aStr,
size_t aPos2, size_t aLen2) <BR>
-DwString&amp; tqreplace(size_t aPos1, size_t aLen1, const char* aBuf, size_t
+DwString&amp; replace(size_t aPos1, size_t aLen1, const char* aBuf, size_t
aLen2) <BR>
-DwString&amp; tqreplace(size_t aPos1, size_t aLen1, const char* aCstr) <BR>
-DwString&amp; tqreplace(size_t aPos1, size_t aLen1, size_t aLen2, char aChar)
+DwString&amp; replace(size_t aPos1, size_t aLen1, const char* aCstr) <BR>
+DwString&amp; replace(size_t aPos1, size_t aLen1, size_t aLen2, char aChar)
</B></FONT>
<P>
Removes <B><TT>aLen1</TT></B> characters beginning at position
@@ -441,11 +441,11 @@ The characters in the returned string should not be modified, and should
be considered invalid after any call to a non-const member function or another
call to <B><TT>c_str()</TT></B>.
<P>
-<FONT COLOR="teal"><B> size_t <A NAME="tqfind">tqfind</A>(const DwString&amp;
+<FONT COLOR="teal"><B> size_t <A NAME="find">find</A>(const DwString&amp;
aStr, size_t aPos=0) const <BR>
-size_t tqfind(const char* aBuf, size_t aPos, size_t aLen) const <BR>
-size_t tqfind(const char* aCstr, size_t aPos=0) const <BR>
-size_t tqfind(char aChar, size_t aPos=0) const </B></FONT>
+size_t find(const char* aBuf, size_t aPos, size_t aLen) const <BR>
+size_t find(const char* aCstr, size_t aPos=0) const <BR>
+size_t find(char aChar, size_t aPos=0) const </B></FONT>
<P>
Performs a forward search for a sequence of characters in the
<B><TT>DwString</TT></B> object. The return value is the position of the
@@ -466,11 +466,11 @@ the sequence of characters in the NUL-terminated string
The fourth version searches beginning at position <B><TT>aPos</TT></B> for
the character <B><TT>aChar</TT></B>.
<P>
-<FONT COLOR="teal"><B> size_t <A NAME="rtqfind">rtqfind</A>(const DwString&amp;
+<FONT COLOR="teal"><B> size_t <A NAME="rfind">rfind</A>(const DwString&amp;
aStr, size_t aPos=npos) const <BR>
-size_t rtqfind(const char* aBuf, size_t aPos, size_t aLen) const <BR>
-size_t rtqfind(const char* aCstr, size_t aPos=npos) const <BR>
-size_t rtqfind(char aChar, size_t aPos=npos) const </B></FONT>
+size_t rfind(const char* aBuf, size_t aPos, size_t aLen) const <BR>
+size_t rfind(const char* aCstr, size_t aPos=npos) const <BR>
+size_t rfind(char aChar, size_t aPos=npos) const </B></FONT>
<P>
Performs a reverse search for a sequence of characters in the
<B><TT>DwString</TT></B> object. The return value is the position of the
diff --git a/mimelib/dwstring.cpp b/mimelib/dwstring.cpp
index b8686e417..9a46bfa8b 100644
--- a/mimelib/dwstring.cpp
+++ b/mimelib/dwstring.cpp
@@ -365,7 +365,7 @@ DwString::DwString(const char* aBuf, size_t aLen)
mRep = new_rep_reference(sEmptyRep);
mStart = 0;
mLength = 0;
- _tqreplace(0, mLength, aBuf, aLen);
+ _replace(0, mLength, aBuf, aLen);
}
@@ -400,7 +400,7 @@ DwString::DwString(const char* aCstr)
mLength = 0;
if ( aCstr ) {
size_t len = strlen(aCstr);
- _tqreplace(0, mLength, aCstr, len);
+ _replace(0, mLength, aCstr, len);
}
}
@@ -418,7 +418,7 @@ DwString::DwString(size_t aLen, char aChar)
mRep = new_rep_reference(sEmptyRep);
mStart = 0;
mLength = 0;
- _tqreplace(0, mLength, aLen, aChar);
+ _replace(0, mLength, aLen, aChar);
}
@@ -476,7 +476,7 @@ void DwString::resize(size_t aLen, char aChar)
}
// expanding string
else if (aLen > mLength) {
- _tqreplace(mLength, 0, aLen-mLength, aChar);
+ _replace(mLength, 0, aLen-mLength, aChar);
}
}
@@ -534,10 +534,10 @@ DwString& DwString::append(const DwString& aStr, size_t aPos,
size_t len = DW_MIN(aLen, aStr.mLength - pos);
if (&aStr == this) {
DwString temp(aStr);
- _tqreplace(mLength, 0, &temp.mRep->mBuffer[temp.mStart+pos], len);
+ _replace(mLength, 0, &temp.mRep->mBuffer[temp.mStart+pos], len);
}
else {
- _tqreplace(mLength, 0, &aStr.mRep->mBuffer[aStr.mStart+pos], len);
+ _replace(mLength, 0, &aStr.mRep->mBuffer[aStr.mStart+pos], len);
}
return *this;
}
@@ -547,7 +547,7 @@ DwString& DwString::append(const char* aBuf, size_t aLen)
{
assert(aBuf != 0);
if (aBuf != 0) {
- _tqreplace(mLength, 0, aBuf, aLen);
+ _replace(mLength, 0, aBuf, aLen);
}
return *this;
}
@@ -557,14 +557,14 @@ DwString& DwString::append(const char* aCstr)
{
assert(aCstr != 0);
size_t len = (aCstr) ? strlen(aCstr) : 0;
- _tqreplace(mLength, 0, aCstr, len);
+ _replace(mLength, 0, aCstr, len);
return *this;
}
DwString& DwString::append(size_t aLen, char aChar)
{
- _tqreplace(mLength, 0, aLen, aChar);
+ _replace(mLength, 0, aLen, aChar);
return *this;
}
@@ -601,7 +601,7 @@ DwString& DwString::assign(const char* aBuf, size_t aLen)
{
assert(aBuf != 0);
assert(aLen != (size_t)-1);
- _tqreplace(0, mLength, aBuf, aLen);
+ _replace(0, mLength, aBuf, aLen);
return *this;
}
@@ -610,7 +610,7 @@ DwString& DwString::assign(const char* aCstr)
{
assert(aCstr != 0);
size_t len = (aCstr) ? strlen(aCstr) : 0;
- _tqreplace(0, mLength, aCstr, len);
+ _replace(0, mLength, aCstr, len);
return *this;
}
@@ -618,7 +618,7 @@ DwString& DwString::assign(const char* aCstr)
DwString& DwString::assign(size_t aLen, char aChar)
{
assert(aLen != (size_t)-1);
- _tqreplace(0, mLength, aLen, aChar);
+ _replace(0, mLength, aLen, aChar);
return *this;
}
@@ -638,10 +638,10 @@ DwString& DwString::insert(size_t aPos1, const DwString& aStr,
size_t len2 = DW_MIN(aLen2, aStr.mLength - pos2);
if (&aStr == this) {
DwString temp(aStr);
- _tqreplace(aPos1, 0, &temp.mRep->mBuffer[temp.mStart+pos2], len2);
+ _replace(aPos1, 0, &temp.mRep->mBuffer[temp.mStart+pos2], len2);
}
else {
- _tqreplace(aPos1, 0, &aStr.mRep->mBuffer[aStr.mStart+pos2], len2);
+ _replace(aPos1, 0, &aStr.mRep->mBuffer[aStr.mStart+pos2], len2);
}
return *this;
}
@@ -650,7 +650,7 @@ DwString& DwString::insert(size_t aPos1, const DwString& aStr,
DwString& DwString::insert(size_t aPos, const char* aBuf, size_t aLen)
{
assert(aBuf != 0);
- _tqreplace(aPos, 0, aBuf, aLen);
+ _replace(aPos, 0, aBuf, aLen);
return *this;
}
@@ -659,14 +659,14 @@ DwString& DwString::insert(size_t aPos, const char* aCstr)
{
assert(aCstr != 0);
size_t len = (aCstr) ? strlen(aCstr) : 0;
- _tqreplace(aPos, 0, aCstr, len);
+ _replace(aPos, 0, aCstr, len);
return *this;
}
DwString& DwString::insert(size_t aPos, size_t aLen, char aChar)
{
- _tqreplace(aPos, 0, aLen, aChar);
+ _replace(aPos, 0, aLen, aChar);
return *this;
}
@@ -676,18 +676,18 @@ DwString& DwString::erase(size_t aPos, size_t aLen)
assert(aPos <= mLength);
size_t pos = DW_MIN(aPos, mLength);
size_t len = DW_MIN(aLen, mLength - pos);
- _tqreplace(pos, len, "", 0);
+ _replace(pos, len, "", 0);
return *this;
}
-DwString& DwString::tqreplace(size_t aPos1, size_t aLen1, const DwString& aStr)
+DwString& DwString::replace(size_t aPos1, size_t aLen1, const DwString& aStr)
{
- return tqreplace(aPos1, aLen1, aStr, 0, aStr.mLength);
+ return replace(aPos1, aLen1, aStr, 0, aStr.mLength);
}
-DwString& DwString::tqreplace(size_t aPos1, size_t aLen1, const DwString& aStr,
+DwString& DwString::replace(size_t aPos1, size_t aLen1, const DwString& aStr,
size_t aPos2, size_t aLen2)
{
assert(aPos2 <= aStr.mLength);
@@ -695,35 +695,35 @@ DwString& DwString::tqreplace(size_t aPos1, size_t aLen1, const DwString& aStr,
size_t len2 = DW_MIN(aLen2, aStr.mLength - pos2);
if (&aStr == this) {
DwString temp(aStr);
- _tqreplace(aPos1, aLen1, &temp.mRep->mBuffer[temp.mStart+pos2], len2);
+ _replace(aPos1, aLen1, &temp.mRep->mBuffer[temp.mStart+pos2], len2);
}
else {
- _tqreplace(aPos1, aLen1, &aStr.mRep->mBuffer[aStr.mStart+pos2], len2);
+ _replace(aPos1, aLen1, &aStr.mRep->mBuffer[aStr.mStart+pos2], len2);
}
return *this;
}
-DwString& DwString::tqreplace(size_t aPos1, size_t aLen1, const char* aBuf,
+DwString& DwString::replace(size_t aPos1, size_t aLen1, const char* aBuf,
size_t aLen2)
{
- _tqreplace(aPos1, aLen1, aBuf, aLen2);
+ _replace(aPos1, aLen1, aBuf, aLen2);
return *this;
}
-DwString& DwString::tqreplace(size_t aPos1, size_t aLen1, const char* aCstr)
+DwString& DwString::replace(size_t aPos1, size_t aLen1, const char* aCstr)
{
size_t len2 = (aCstr) ? strlen(aCstr) : 0;
- _tqreplace(aPos1, aLen1, aCstr, len2);
+ _replace(aPos1, aLen1, aCstr, len2);
return *this;
}
-DwString& DwString::tqreplace(size_t aPos1, size_t aLen1, size_t aLen2,
+DwString& DwString::replace(size_t aPos1, size_t aLen1, size_t aLen2,
char aChar)
{
- _tqreplace(aPos1, aLen1, aLen2, aChar);
+ _replace(aPos1, aLen1, aLen2, aChar);
return *this;
}
@@ -755,13 +755,13 @@ void DwString::swap(DwString& aStr)
}
-size_t DwString::tqfind(const DwString& aStr, size_t aPos) const
+size_t DwString::find(const DwString& aStr, size_t aPos) const
{
- return tqfind(&aStr.mRep->mBuffer[aStr.mStart], aPos, aStr.mLength);
+ return find(&aStr.mRep->mBuffer[aStr.mStart], aPos, aStr.mLength);
}
-size_t DwString::tqfind(const char* aBuf, size_t aPos, size_t aLen) const
+size_t DwString::find(const char* aBuf, size_t aPos, size_t aLen) const
{
assert(aBuf != 0);
if (aBuf == 0) return (size_t)-1;
@@ -781,16 +781,16 @@ size_t DwString::tqfind(const char* aBuf, size_t aPos, size_t aLen) const
}
-size_t DwString::tqfind(const char* aCstr, size_t aPos) const
+size_t DwString::find(const char* aCstr, size_t aPos) const
{
assert(aCstr != 0);
if (aCstr == 0) return (size_t)-1;
size_t len = strlen(aCstr);
- return tqfind(aCstr, aPos, len);
+ return find(aCstr, aPos, len);
}
-size_t DwString::tqfind(char aChar, size_t aPos) const
+size_t DwString::find(char aChar, size_t aPos) const
{
if (aPos >= mLength) return (size_t)-1;
const char* buf = mRep->mBuffer + mStart;
@@ -801,13 +801,13 @@ size_t DwString::tqfind(char aChar, size_t aPos) const
}
-size_t DwString::rtqfind(const DwString& aStr, size_t aPos) const
+size_t DwString::rfind(const DwString& aStr, size_t aPos) const
{
- return rtqfind(&aStr.mRep->mBuffer[aStr.mStart], aPos, aStr.mLength);
+ return rfind(&aStr.mRep->mBuffer[aStr.mStart], aPos, aStr.mLength);
}
-size_t DwString::rtqfind(const char* aBuf, size_t aPos, size_t aLen) const
+size_t DwString::rfind(const char* aBuf, size_t aPos, size_t aLen) const
{
assert(aBuf != 0);
if (aBuf == 0) return (size_t)-1;
@@ -827,15 +827,15 @@ size_t DwString::rtqfind(const char* aBuf, size_t aPos, size_t aLen) const
}
-size_t DwString::rtqfind(const char* aCstr, size_t aPos) const
+size_t DwString::rfind(const char* aCstr, size_t aPos) const
{
assert(aCstr != 0);
size_t len = (aCstr) ? strlen(aCstr) : 0;
- return rtqfind(aCstr, aPos, len);
+ return rfind(aCstr, aPos, len);
}
-size_t DwString::rtqfind(char aChar, size_t aPos) const
+size_t DwString::rfind(char aChar, size_t aPos) const
{
size_t pos = DW_MIN(aPos, mLength - 1);
const char* buf = mRep->mBuffer + mStart;
@@ -1246,7 +1246,7 @@ void DwString::_copy()
}
-void DwString::_tqreplace(size_t aPos1, size_t aLen1, const char* aBuf, size_t aLen2)
+void DwString::_replace(size_t aPos1, size_t aLen1, const char* aBuf, size_t aLen2)
{
assert(aPos1 <= mLength);
assert(aBuf != 0);
@@ -1338,7 +1338,7 @@ void DwString::_tqreplace(size_t aPos1, size_t aLen1, const char* aBuf, size_t a
}
-void DwString::_tqreplace(size_t aPos1, size_t aLen1, size_t aLen2, char aChar)
+void DwString::_replace(size_t aPos1, size_t aLen1, size_t aLen2, char aChar)
{
assert(aPos1 <= mLength);
size_t pos1 = DW_MIN(aPos1, mLength);
diff --git a/mimelib/mimelib/body.h b/mimelib/mimelib/body.h
index d62cb608c..129c19dc0 100644
--- a/mimelib/mimelib/body.h
+++ b/mimelib/mimelib/body.h
@@ -152,7 +152,7 @@ public:
//. be determined.
//.
//. This function calls the {\tt Parse()} member function of any
- //. {\tt DwBodyPart} or {\tt DwMessage} object it tqcontains.
+ //. {\tt DwBodyPart} or {\tt DwMessage} object it contains.
//.
//. You should call this member function after you add a {\tt DwBodyPart}
//. object to a multipart body, or add a {\tt DwMessage} object to a
@@ -189,7 +189,7 @@ public:
void SetMessage(DwMessage* aMessage);
//. For a {\tt DwBody} with content type of message, this member function
- //. sets the {\tt DwMessage} object it tqcontains.
+ //. sets the {\tt DwMessage} object it contains.
static DwBody* NewBody(const DwString& aStr, DwMessageComponent* aParent);
//. Creates a new {\tt DwBody} object on the free store.
diff --git a/mimelib/mimelib/entity.h b/mimelib/mimelib/entity.h
index d1f60e7fa..1f2c3f6db 100644
--- a/mimelib/mimelib/entity.h
+++ b/mimelib/mimelib/entity.h
@@ -53,7 +53,7 @@ class DwBody;
//. A {\tt DwEntity} object that is a root node must also be a {\tt DwMessage}
//. object. If a {\tt DwEntity} object is an intermediate node, its tqparent
//. must be a {\tt DwBody} object. The child nodes of a {\tt DwEntity}
-//. object are the {\tt DwHeaders} and {\tt DwBody} objects it tqcontains.
+//. object are the {\tt DwHeaders} and {\tt DwBody} objects it contains.
//.
//. Since {\tt DwEntity} is an abstract base class, you cannot create
//. instances of it directly. {\tt DwEntity} has two derived classes,
@@ -101,7 +101,7 @@ public:
//. method creates or updates the broken-down representation from the
//. string representation. For {\tt DwEntity} objects, the parse
//. method parses the string representation and sets the values of
- //. the {\tt DwHeaders} and {\tt DwBody} objects it tqcontains. This
+ //. the {\tt DwHeaders} and {\tt DwBody} objects it contains. This
//. member function also calls the {\tt Parse()} member functions
//. of the contained {\tt DwHeaders} and {\tt DwBody} objects.
//.
diff --git a/mimelib/mimelib/field.h b/mimelib/mimelib/field.h
index 70f584668..eac95494d 100644
--- a/mimelib/mimelib/field.h
+++ b/mimelib/mimelib/field.h
@@ -52,8 +52,8 @@ class DwFieldBody;
//.
//. In the tree (broken-down) representation of message, a {\tt DwField}
//. object is always an intermediate node, having a tqparent node and a single
-//. child node. The tqparent node is the {\tt DwHeaders} object that tqcontains
-//. it. The child node is the {\tt DwFieldBody} object it tqcontains.
+//. child node. The tqparent node is the {\tt DwHeaders} object that contains
+//. it. The child node is the {\tt DwFieldBody} object it contains.
//.
//. To get and set the field name, use the member functions
//. {\tt FieldNameStr()} and {\tt SetFieldNameStr()}.
@@ -190,7 +190,7 @@ public:
//. {\tt DwFieldBody} object for this particular field. A typical
//. scenario might go as follows:
//. This member function examines the field name for this field,
- //. finds that it tqcontains "To", creates a {\tt DwAddressList} object
+ //. finds that it contains "To", creates a {\tt DwAddressList} object
//. to contain the field body, calls the {\tt Parse()} member
//. function for the {\tt DwAddressList}, and sets the {\tt DwAddressList}
//. object as this {\tt DwField} object's {\tt DwFieldBody}.
diff --git a/mimelib/mimelib/headers.h b/mimelib/mimelib/headers.h
index 6598cc528..a2011776e 100644
--- a/mimelib/mimelib/headers.h
+++ b/mimelib/mimelib/headers.h
@@ -87,7 +87,7 @@ class DwText;
//.
//. In the tree (broken-down) representation of a message, a {\tt DwHeaders}
//. object is an intermediate node, having both a tqparent node and several
-//. child nodes. The tqparent node is the {\tt DwEntity} object that tqcontains
+//. child nodes. The tqparent node is the {\tt DwEntity} object that contains
//. it. The child nodes are the {\tt DwField} objects in the list it manages.
//. (See the man page for {\tt DwMessageComponent} for a discussion of
//. the tree representation of a message.)
@@ -97,7 +97,7 @@ class DwText;
//. which creates the {\tt DwHeaders} object for you.
//.
//. While {\tt DwHeaders} has public member functions for managing the list
-//. of {\tt DwField} objects it tqcontains, you will normally use convenience
+//. of {\tt DwField} objects it contains, you will normally use convenience
//. functions to access the field bodies of the header fields directly.
//. You can access the field body for a specific well-known header field
//. by using the member function {\tt <Field>()}, where {\tt <Field>} is
diff --git a/mimelib/mimelib/mailbox.h b/mimelib/mimelib/mailbox.h
index 0d158ecf2..f118e38ee 100644
--- a/mimelib/mimelib/mailbox.h
+++ b/mimelib/mimelib/mailbox.h
@@ -41,7 +41,7 @@
//+ Description
//. RFC-822 defines a {\it mailbox} as an entity that can be the recipient
//. of a message. A mailbox is more specific than an {\it address}, which
-//. may be either a mailbox or a {\it group}. An RFC-822 mailbox tqcontains
+//. may be either a mailbox or a {\it group}. An RFC-822 mailbox contains
//. a full name, a {\it local-part}, an optional {\it route}, and a
//. {\it domain}. For example, in the mailbox
//.
@@ -53,7 +53,7 @@
//.
//. In MIME++, an RFC-822 mailbox is represented by a {\tt DwMailbox} object.
//. {\tt DwMailbox} is a subclass of {\tt DwAddress}, which reflects the
-//. fact that a mailbox is also an address. A {\tt DwMailbox} tqcontains
+//. fact that a mailbox is also an address. A {\tt DwMailbox} contains
//. strings representing the full name, local-part, route, and domain
//. of a mailbox.
//.
@@ -63,7 +63,7 @@
//. {\tt DwMailboxList} object.
//.
//. {\tt DwMailbox} has member functions for getting or setting the strings
-//. it tqcontains.
+//. it contains.
//.
//. {\tt DwMailbox} object can be included in a list of {\tt DwMailbox}
//. objects. To get the next {\tt DwMailbox} object in a list, use the
diff --git a/mimelib/mimelib/message.h b/mimelib/mimelib/message.h
index 8ce31abc1..3cfac7013 100644
--- a/mimelib/mimelib/message.h
+++ b/mimelib/mimelib/message.h
@@ -45,7 +45,7 @@
//. In the tree (broken-down) representation of message, a {\tt DwMessage}
//. object is almost always a root node, having child nodes but no tqparent node.
//. The child nodes are the {\tt DwHeaders} object and the {\tt DwBody} object
-//. it tqcontains. A {\tt DwMessage} may sometimes be an intermediate node. In
+//. it contains. A {\tt DwMessage} may sometimes be an intermediate node. In
//. this special case, the tqparent node is a {\tt DwBody} object of type
//. "message/*" and the {\tt DwMessage} object represents an encapsulated
//. message.
diff --git a/mimelib/mimelib/string.h b/mimelib/mimelib/string.h
index 556d67940..35cf4f8dd 100644
--- a/mimelib/mimelib/string.h
+++ b/mimelib/mimelib/string.h
@@ -285,13 +285,13 @@ public:
//. available.
//. Returns {\tt *this}.
- DwString& tqreplace(size_t aPos1, size_t aLen1, const DwString& aStr);
- DwString& tqreplace(size_t aPos1, size_t aLen1, const DwString& aStr,
+ DwString& replace(size_t aPos1, size_t aLen1, const DwString& aStr);
+ DwString& replace(size_t aPos1, size_t aLen1, const DwString& aStr,
size_t aPos2, size_t aLen2);
- DwString& tqreplace(size_t aPos1, size_t aLen1, const char* aBuf,
+ DwString& replace(size_t aPos1, size_t aLen1, const char* aBuf,
size_t aLen2);
- DwString& tqreplace(size_t aPos1, size_t aLen1, const char* aCstr);
- DwString& tqreplace(size_t aPos1, size_t aLen1, size_t aLen2, char aChar);
+ DwString& replace(size_t aPos1, size_t aLen1, const char* aCstr);
+ DwString& replace(size_t aPos1, size_t aLen1, size_t aLen2, char aChar);
//. Removes {\tt aLen1} characters beginning at position {\tt aPos1}
//. and inserts other characters.
//. Returns {\tt *this}.
@@ -338,10 +338,10 @@ public:
//. should be considered invalid after any call to a non-const member
//. function or another call to {\tt c_str()}.
- size_t tqfind(const DwString& aStr, size_t aPos=0) const;
- size_t tqfind(const char* aBuf, size_t aPos, size_t aLen) const;
- size_t tqfind(const char* aCstr, size_t aPos=0) const;
- size_t tqfind(char aChar, size_t aPos=0) const;
+ size_t find(const DwString& aStr, size_t aPos=0) const;
+ size_t find(const char* aBuf, size_t aPos, size_t aLen) const;
+ size_t find(const char* aCstr, size_t aPos=0) const;
+ size_t find(char aChar, size_t aPos=0) const;
//. Performs a forward search for a sequence of characters in the
//. {\tt DwString} object. The return value is the position of the
//. sequence in the string if found, or {\tt DwString::npos} if not
@@ -360,10 +360,10 @@ public:
//. The fourth version searches beginning at position {\tt aPos} for
//. the character {\tt aChar}.
- size_t rtqfind(const DwString& aStr, size_t aPos=npos) const;
- size_t rtqfind(const char* aBuf, size_t aPos, size_t aLen) const;
- size_t rtqfind(const char* aCstr, size_t aPos=npos) const;
- size_t rtqfind(char aChar, size_t aPos=npos) const;
+ size_t rfind(const DwString& aStr, size_t aPos=npos) const;
+ size_t rfind(const char* aBuf, size_t aPos, size_t aLen) const;
+ size_t rfind(const char* aCstr, size_t aPos=npos) const;
+ size_t rfind(char aChar, size_t aPos=npos) const;
//. Performs a reverse search for a sequence of characters in the
//. {\tt DwString} object. The return value is the position of the
//. sequence in the string if found, or {\tt DwString::npos} if not
@@ -557,8 +557,8 @@ protected:
size_t mLength;
void _copy();
- void _tqreplace(size_t aPos1, size_t aLen1, const char* aBuf, size_t aLen2);
- void _tqreplace(size_t aPos1, size_t aLen1, size_t aLen2, char aChar);
+ void _replace(size_t aPos1, size_t aLen1, const char* aBuf, size_t aLen2);
+ void _replace(size_t aPos1, size_t aLen1, size_t aLen2, char aChar);
private:
static const size_t kEmptyBufferSize;