1 karl 1.87 //%2005////////////////////////////////////////////////////////////////////////
|
2 mike 1.38 //
|
3 karl 1.86 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
4 // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
5 // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
6 karl 1.78 // IBM Corp.; EMC Corporation, The Open Group.
|
7 karl 1.86 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
8 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
9 karl 1.87 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10 // EMC Corporation; VERITAS Software Corporation; The Open Group.
|
11 mike 1.38 //
12 // Permission is hereby granted, free of charge, to any person obtaining a copy
|
13 kumpf 1.50 // of this software and associated documentation files (the "Software"), to
14 // deal in the Software without restriction, including without limitation the
15 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
16 mike 1.38 // sell copies of the Software, and to permit persons to whom the Software is
17 // furnished to do so, subject to the following conditions:
|
18 david.dillard 1.89 //
|
19 kumpf 1.50 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
20 mike 1.38 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
21 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
22 kumpf 1.50 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
23 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
24 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
25 mike 1.38 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 //
28 //==============================================================================
29 //
30 //%/////////////////////////////////////////////////////////////////////////////
31
32 #ifndef Pegasus_String_h
33 #define Pegasus_String_h
34
|
35 kumpf 1.71 #ifdef PEGASUS_OS_HPUX
|
36 kumpf 1.72 # ifdef HPUX_IA64_NATIVE_COMPILER
37 # include <iostream>
38 # else
39 # include <iostream.h>
40 # endif
|
41 kumpf 1.71 #else
42 # include <iostream>
43 #endif
|
44 mike 1.38 #include <Pegasus/Common/Config.h>
45 #include <Pegasus/Common/Char16.h>
|
46 kumpf 1.54 #include <Pegasus/Common/Linkage.h>
|
47 mike 1.38
|
48 david 1.81 // Locale constants
49 // These constants need to be defined as follows:
50 // lower case language; underscore; Uppercase Country
51 const char ENGLISH_US[] = "en_US";
|
52 david.dillard 1.89
|
53 david 1.76
|
54 mike 1.38 PEGASUS_NAMESPACE_BEGIN
55
|
56 kumpf 1.59 class String;
|
57 kumpf 1.51 class StringRep;
58
|
59 kumpf 1.59 /** The CString class provides access to an 8-bit String representation.
60 */
|
61 kumpf 1.60 class PEGASUS_COMMON_LINKAGE CString
|
62 kumpf 1.59 {
63 public:
64
|
65 karl 1.79 /** Constructs a CString object with null values (default constructor).
66 */
|
67 kumpf 1.59 CString();
68
|
69 karl 1.79 /** REVIEWERS: Describe method here.
|
70 david.dillard 1.89 @param cstr Specifies the name of the CString instance to copy.
|
71 karl 1.79 */
|
72 kumpf 1.59 CString(const CString& cstr);
73
|
74 karl 1.79 /** CString destructor.
75 */
|
76 kumpf 1.59 ~CString();
77
|
78 karl 1.79 /** Assigns the values of one CString instance to another.
|
79 david.dillard 1.89 @param cstr Specifies the name of the CString instance whose values
|
80 karl 1.79 are assigned to CString.
81 */
|
82 kumpf 1.62 CString& operator=(const CString& cstr);
83
|
84 david.dillard 1.89 /** Gets a pointer to the CString's data.
85 @return Returns a const char pointer to the CString's data.
|
86 karl 1.79 */
|
87 kumpf 1.59 operator const char*() const;
88
89 private:
90
91 CString(char* cstr);
92
93 friend class String;
94
|
95 kumpf 1.64 void* _rep;
|
96 kumpf 1.59 };
97
|
98 mike 1.38 /**
99 The Pegasus String C++ Class implements the CIM string type.
|
100 karl 1.79 REVIEWERS: We need more definition here.
|
101 mike 1.38 */
102 class PEGASUS_COMMON_LINKAGE String
103 {
104 public:
105
|
106 david.dillard 1.89 /** This member is used to represent an empty string. Using this
|
107 karl 1.79 member avoids construction of an empty string (for example, String()).
|
108 kumpf 1.48 */
109 static const String EMPTY;
110
|
111 mike 1.38 /** Default constructor without parameters. This constructor creates a
|
112 david.dillard 1.89 null string. For example,
113 <pre>
114 String test;
115 </pre>
116 @exception bad_alloc Thrown if there is insufficient memory.
|
117 mike 1.38 */
118 String();
119
|
120 karl 1.79 /** Copy constructor.
121 @param str Specifies the name of the String instance.
|
122 david.dillard 1.89 @exception bad_alloc Thrown if there is insufficient memory.
|
123 karl 1.79 */
|
124 kumpf 1.48 String(const String& str);
|
125 mike 1.38
|
126 david.dillard 1.89 /** Initialize with first <TT>n</TT> characters from <TT>str</TT>.
|
127 karl 1.79 @param str Specifies the name of the String instance.
128 @param n Specifies the Uint32 size to use for the length of the string object.
|
129 david.dillard 1.89 @exception bad_alloc Thrown if there is insufficient memory.
|
130 karl 1.79 */
|
131 kumpf 1.48 String(const String& str, Uint32 n);
|
132 mike 1.38
|
133 karl 1.79 /** Initialize with str.
134 @param str Specifies the name of the String instance.
|
135 david.dillard 1.89 @exception NullPointer Thrown if str is NULL.
136 @exception bad_alloc Thrown if there is insufficient memory.
|
137 karl 1.79 */
|
138 kumpf 1.48 String(const Char16* str);
|
139 mike 1.38
|
140 karl 1.79 /** Initialize with first n characters of str.
141 @param str Specifies the name of the String instance.
142 @param n Specifies the Uint32 size.
|
143 david.dillard 1.89 @exception NullPointer Thrown if str is NULL.
144 @exception bad_alloc Thrown if there is insufficient memory.
|
145 karl 1.79 */
|
146 kumpf 1.48 String(const Char16* str, Uint32 n);
|
147 mike 1.38
|
148 karl 1.79 /** Initialize from a plain C-String:
149 @param str Specifies the name of the String instance.
|
150 david 1.81 API supports UTF8
|
151 david.dillard 1.89 @exception NullPointer Thrown if str is NULL.
152 @exception bad_alloc Thrown if there is insufficient memory.
|
153 karl 1.79 */
|
154 kumpf 1.48 String(const char* str);
|
155 chuck 1.77
|
156 david.dillard 1.89 /** Initialize from the first <TT>n</TT> characters of a plain C-String:
|
157 karl 1.79 @param str Specifies the name of the String instance.
158 @param u Specifies the Uint32 size.
|
159 david 1.81 API supports UTF8
|
160 david.dillard 1.89 @exception NullPointer Thrown if str is NULL.
161 @exception bad_alloc Thrown if there is insufficient memory.
|
162 karl 1.79 */
|
163 kumpf 1.48 String(const char* str, Uint32 n);
|
164 mike 1.38
|
165 david.dillard 1.89 /** String destructor.
|
166 karl 1.79 */
|
167 mike 1.38 ~String();
168
|
169 karl 1.79 /** Assign this string with str. For example,
|
170 david.dillard 1.89 <pre>
171 String t1 = "abc";
172 String t2 = t1;
173 </pre>
174 String t2 is assigned the value of t1.
175 @param str Specifies the name of the String to assign to another
176 String instance.
177 @exception bad_alloc Thrown if there is insufficient memory.
|
178 mike 1.38 */
|
179 kumpf 1.48 String& operator=(const String& str);
|
180 mike 1.38
|
181 kumpf 1.74 /** Assign this string with String str.
|
182 david.dillard 1.89 @param str String to assign.
183 @return Returns the String.
184 API supports UTF8
185 @exception bad_alloc Thrown if there is insufficient memory.
|
186 mike 1.38 */
|
187 kumpf 1.48 String& assign(const String& str);
|
188 mike 1.38
|
189 karl 1.79 /** Assign this string with str.
|
190 david.dillard 1.89 @exception NullPointer Thrown if str is NULL.
191 @exception bad_alloc Thrown if there is insufficient memory.
|
192 karl 1.79 */
|
193 kumpf 1.48 String& assign(const Char16* str);
|
194 mike 1.38
|
195 karl 1.79 /** Assign this string with first n characters of str.
196 @param n REVIEWERS: Insert text here.
197 @param str REVIEWERS: Insert text here.
|
198 david.dillard 1.89 @exception NullPointer Thrown if str is NULL.
199 @exception bad_alloc Thrown if there is insufficient memory.
|
200 karl 1.79 */
|
201 kumpf 1.48 String& assign(const Char16* str, Uint32 n);
|
202 mike 1.38
|
203 karl 1.79 /** Assign this string with the plain C-String str.
204 @param str REVIEWERS: Insert text here.
|
205 david 1.81 API supports UTF8
|
206 david.dillard 1.89 @exception NullPointer Thrown if str is NULL.
207 @exception bad_alloc Thrown if there is insufficient memory.
|
208 karl 1.79 */
|
209 kumpf 1.48 String& assign(const char* str);
|
210 mike 1.38
|
211 karl 1.79 /** Assign this string with first n characters of the plain C-String str.
212 @param str REVIEWERS: Insert text here.
213 @param n REVIEWERS: Insert text here.
|
214 david 1.81 API supports UTF8
|
215 david.dillard 1.89 @exception NullPointer Thrown if str is NULL.
216 @exception bad_alloc Thrown if there is insufficient memory.
|
217 karl 1.79 */
|
218 kumpf 1.48 String& assign(const char* str, Uint32 n);
|
219 mike 1.38
|
220 kumpf 1.74 /** Clear this string. After calling clear(), size() will return 0.
|
221 david.dillard 1.89 <pre>
222 String test = "abc";
223 test.clear();
224 </pre>
|
225 mike 1.38 */
226 void clear();
227
|
228 kumpf 1.74 /** Reserves memory for capacity characters. Notice
|
229 david.dillard 1.89 that this does not change the size of the string (size() returns
230 what it did before). If the capacity of the string is already
231 greater or equal to the capacity argument, this method has no
232 effect. The capacity of a String object has no bearing on its
233 external behavior. The capacity of a String is set only for
234 performance reasons.
235 @param capacity Defines the capacity in characters to reserve.
|
236 mike 1.38 */
|
237 kumpf 1.51 void reserveCapacity(Uint32 capacity);
|
238 mike 1.38
239 /** Returns the length of the String object.
|
240 david.dillard 1.89 @return Length of the String in characters. For example,
241 <pre>
242 String s = "abcd";
243 assert(s.size() == 4);
244 </pre>
|
245 karl 1.79 returns a value of 4 for the length.
|
246 mike 1.38 */
|
247 kumpf 1.48 Uint32 size() const;
|
248 mike 1.38
|
249 david.dillard 1.89 /** Returns a pointer to the first character in the
250 null-terminated Char16 buffer of the String object.
251 @return Pointer to the first character of the String object. For example,
252 <pre>
253 String test = "abc";
254 const Char16* q = test.getChar16Data();
255 </pre>
|
256 karl 1.79 points to the first character in the String instance named test.
|
257 mike 1.38 */
|
258 kumpf 1.61 const Char16* getChar16Data() const;
|
259 mike 1.38
|
260 karl 1.79 /** Create an 8-bit representation of this String object. For example,
|
261 kumpf 1.59
|
262 david.dillard 1.89 @return CString object that provides access to the UTF8 String
263 representation.
|
264 kumpf 1.59
|
265 david.dillard 1.89 <pre>
266 String test = "abc";
|
267 kumpf 1.59 printf("test = %s\n", (const char*)test.getCString());
|
268 chuck 1.75
269 NOTE: Do not do the following:
270 const char * p = (const char *)test.getCString();
271 The pointer p will be invalid. This is because
272 the CString object is destructed, which deletes
273 the heap space for p.
|
274 david.dillard 1.89 </pre>
275 @exception bad_alloc Thrown if there is insufficient memory.
|
276 mike 1.38 */
|
277 kumpf 1.59 CString getCString() const;
|
278 mike 1.38
|
279 kumpf 1.58 /** Returns the specified character of the String object.
|
280 david.dillard 1.89 @param index Index of the character to access.
281 @return Specified character of the String object.
282 @exception IndexOutOfBoundsException If <TT>index</TT>
283 is outside the bounds of the String.
284 <pre>
285 String test = "abc;
286 Char16 c = test[1];
287 </pre>
|
288 mike 1.38 */
|
289 kumpf 1.58 Char16& operator[](Uint32 index);
|
290 mike 1.38
|
291 kumpf 1.58 /** Returns the specified character of the String object (const version).
|
292 david.dillard 1.89 @param index Index of the character to access.
293 @return Specified character of the String object.
294 @exception IndexOutOfBoundsException If <TT>index</TT>
295 is outside the bounds of the String.
|
296 mike 1.38 */
|
297 kumpf 1.58 const Char16 operator[](Uint32 index) const;
|
298 mike 1.38
|
299 kumpf 1.57 /** Append the given character to this String.
|
300 david.dillard 1.89 @param c Character to append.
301 @return This String.
302 <pre>
303 String test = "abc";
304 test.append(Char16('d'));
305 assert(test == "abcd");
306 </pre>
307 @exception bad_alloc Thrown if there is insufficient memory.
|
308 mike 1.38 */
309 String& append(const Char16& c);
310
|
311 karl 1.79 /** Append n characters from str to this String.
312 @param str REVIEWERS: Insert text here.
313 @param n REVIEWERS: Insert text here.
|
314 david.dillard 1.89 @exception NullPointer Thrown if str is NULL.
315 @exception bad_alloc Thrown if there is insufficient memory.
|
316 karl 1.79 */
|
317 mike 1.38 String& append(const Char16* str, Uint32 n);
318
|
319 kumpf 1.57 /** Append the given String to this String.
|
320 david.dillard 1.89 @param str String to append.
321 @return This String.
322 <pre>
323 String test = "abc";
324 test.append("def");
325 assert(test == "abcdef");
326 </pre>
327 @exception bad_alloc Thrown if there is insufficient memory.
|
328 mike 1.38 */
|
329 kumpf 1.57 String& append(const String& str);
|
330 mike 1.38
331 /** Remove size characters from the string starting at the given
|
332 david.dillard 1.89 index. If size is PEG_NOT_FOUND, then all characters after
333 <TT>index</TT> are removed.
334 @param index Position in string to start remove.
335 @param size Number of characters to remove. Default is PEG_NOT_FOUND
336 which causes all characters after <TT>index</TT> to be removed.
337 <pre>
338 String s;
339 s = "abc";
340 s.remove(0, 1);
341 assert(String::equal(s, "bc"));
342 assert(s.size() == 2);
343 s.remove(0);
344 assert(String::equal(s, ""));
345 assert(s.size() == 0);
346 </pre>
347 @exception IndexOutOfBoundsException If size is greater than
348 length of String plus starting index for remove.
|
349 mike 1.38 */
|
350 kumpf 1.58 void remove(Uint32 index, Uint32 size = PEG_NOT_FOUND);
|
351 mike 1.38
352 /** Return a new String which is initialzed with <TT>length</TT>
|
353 david.dillard 1.89 characters from this string starting at <TT>index</TT>.
354 @param index Specifies the index in string to start getting the
355 substring.
356 @param length Specifies the number of characters to get. If length
357 is PEG_NOT_FOUND, then all characters after index are added to the new
358 string.
359 @return String Specifies the Sting with the defined substring.
360 @exception bad_alloc Thrown if there is insufficient memory.
|
361 mike 1.38 */
|
362 kumpf 1.58 String subString(Uint32 index, Uint32 length = PEG_NOT_FOUND) const;
|
363 mike 1.38
|
364 karl 1.79 /** Find the index of the first occurrence of the character c.
|
365 david.dillard 1.89 If the character is not found, PEG_NOT_FOUND is returned.
366 @param c Char to be found in the String.
367 @return Position of the character in the string or PEG_NOT_FOUND if not
368 found.
|
369 mike 1.38 */
370 Uint32 find(Char16 c) const;
371
|
372 karl 1.79 /** Find the index of the first occurence of the character c.
|
373 david.dillard 1.89 If the character is not found, PEG_NOT_FOUND is returned.
374 Searching begins from the specified index.
375 @param c Char to be found in the String.
376 @return Position of the character in the string or PEG_NOT_FOUND if the
377 character is not found.
|
378 kumpf 1.74 */
|
379 kumpf 1.58 Uint32 find(Uint32 index, Char16 c) const;
|
380 mike 1.38
|
381 kumpf 1.58 /** Find the index of the first occurence of the string object.
|
382 david.dillard 1.89 This function finds one string inside another.
383 If the matching substring is not found, PEG_NOT_FOUND is returned.
384 @param s String object to be found in the String.
385 @return Position of the substring in the String or PEG_NOT_FOUND if the
386 substring is not found.
|
387 mike 1.38 */
388 Uint32 find(const String& s) const;
389
|
390 kumpf 1.74 /** Same as find() but start looking in reverse (last character first).
|
391 david.dillard 1.89 @param c Char16 character to find in String.
392 @return Position of the character in the string or PEG_NOT_FOUND if the
393 character is not found.
|
394 mike 1.38 */
395 Uint32 reverseFind(Char16 c) const;
396
|
397 david 1.81 /** Converts all characters in this string to lowercase characters,
398 */
399 void toLower();
400
|
401 denise.eckstein 1.85 #ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES
402 /** <I><B>Experimental Interface</B></I><BR>
403 Converts all characters in this string to uppercase characters.
|
404 mike 1.38 */
|
405 chuck 1.88 void toUpper();
|
406 david 1.81 #endif
|
407 kumpf 1.48
|
408 karl 1.79 /** Compare the first n characters of the two strings.
|
409 david.dillard 1.89 @param s1 First null-terminated string for the comparison.
410 @param s2 Second null-terminated string for the comparison.
411 @param n Number of characters to compare.
412 @return Return -1 If s1 is lexographically less than s2; if they are
413 equivalent return 0; otherwise return 1.
|
414 mike 1.38 */
|
415 kumpf 1.51 static int compare(const String& s1, const String& s2, Uint32 n);
|
416 mike 1.38
417 /** Compare two null-terminated strings.
|
418 david.dillard 1.89 @param s1 First null-terminated string for the comparison.
419 @param s2 Second null-terminated string for the comparison.
420 @return Return -1 if s1 is less than s2; if equal return 0;
421 otherwise return 1.
|
422 mike 1.38
|
423 david.dillard 1.89 NOTE: Use the comparison operators <,<= > >= to compare
424 String objects.
|
425 mike 1.38 */
|
426 kumpf 1.51 static int compare(const String& s1, const String& s2);
|
427 mike 1.38
|
428 karl 1.79 /** Compare two null-terminated strings but ignore case.
|
429 david.dillard 1.89 @param s1 First null-terminated string for the comparison.
430 @param s2 Second null-terminated string for the comparison.
431 @return Return -1 if s1 is less than s2; if equal return 0;
432 otherwise return 1.
|
433 karl 1.79
|
434 david.dillard 1.89 NOTE: Use the comparison operators <,<= > >= to compare
435 String objects.
|
436 kumpf 1.48 */
|
437 kumpf 1.49 static int compareNoCase(const String& s1, const String& s2);
|
438 kumpf 1.48
|
439 mike 1.38 /** Compare two String objects for equality.
|
440 david.dillard 1.89 @param s1 First <TT>String</TT> for comparison.
441 @param s2 Second <TT>String</TT> for comparison.
|
442 mike 1.38
|
443 david.dillard 1.89 @return true If the two strings are equal; otherwise, false. For example,
444 <pre>
445 String s1 = "Hello World";
446 String s2 = s1;
447 String s3(s2);
448 assert(String::equal(s1, s3));
449 </pre>
|
450 mike 1.38 */
|
451 kumpf 1.48 static Boolean equal(const String& str1, const String& str2);
|
452 mike 1.38
|
453 kumpf 1.74 /** Compares two strings and returns true if they
|
454 david.dillard 1.89 are equal indepedent of case of the characters.
455 @param str1 First String parameter.
456 @param str2 Second String parameter.
457 @return true If strings are equal independent of case, flase
|
458 kumpf 1.74 otherwise.
|
459 karl 1.47 */
|
460 kumpf 1.48 static Boolean equalNoCase(const String& str1, const String& str2);
|
461 david 1.76
|
462 mike 1.38 private:
463
|
464 kumpf 1.51 StringRep* _rep;
|
465 mike 1.38 };
|
466 mike 1.40
|
467 karl 1.79 /** String operator == tests for equality between two strings of any of the
|
468 mike 1.38 types String or char*.
|
469 karl 1.79 @return true If the strings are equal; otherwise, false.
470 @param str1 REVIEWERS: Insert description here.
471 @param str2 REVIEWERS: Insert description here.
|
472 mike 1.38 */
|
473 kumpf 1.48 PEGASUS_COMMON_LINKAGE Boolean operator==(
474 const String& str1,
475 const String& str2);
|
476 mike 1.38
|
477 kumpf 1.74 /** String operator ==. Test for equality between two strings.
|
478 karl 1.79 @param str1 REVIEWERS: Insert description here.
479 @param str2 REVIEWERS: Insert description here.
|
480 mike 1.38 */
|
481 kumpf 1.48 PEGASUS_COMMON_LINKAGE Boolean operator==(const String& str1, const char* str2);
|
482 mike 1.38
|
483 kumpf 1.74 /** String operator ==. Test for equality between two strings.
|
484 karl 1.79 @param str1 REVIEWERS: Insert description here.
485 @param str2 REVIEWERS: Insert description here.
|
486 mike 1.38 */
|
487 kumpf 1.48 PEGASUS_COMMON_LINKAGE Boolean operator==(const char* str1, const String& str2);
|
488 mike 1.38
|
489 kumpf 1.74 /** String operator ==. Test for equality between two strings.
|
490 karl 1.79 @param str1 REVIEWERS: Insert description here.
491 @param str2 REVIEWERS: Insert description here.
|
492 mike 1.38 */
|
493 kumpf 1.48 PEGASUS_COMMON_LINKAGE Boolean operator!=(
494 const String& str1,
495 const String& str2);
|
496 mike 1.38
|
497 karl 1.79 /** REVIEWERS: Insert description here.
498 @param str REVIEWERS: Insert description here.
499 @param os REVIEWERS: Insert description here.
500 */
|
501 mike 1.38 PEGASUS_COMMON_LINKAGE PEGASUS_STD(ostream)& operator<<(
502 PEGASUS_STD(ostream)& os,
|
503 kumpf 1.48 const String& str);
|
504 mike 1.38
|
505 david.dillard 1.89 /** This overload operator (+) concatenates String objects. For example,
|
506 mike 1.38 <pre>
|
507 david.dillard 1.89 String t1 = "abc";
508 String t2;
509 t2 = t1 + "def"
510 assert(t2 == "abcdef");
|
511 mike 1.38 </pre>
512 */
|
513 kumpf 1.48 PEGASUS_COMMON_LINKAGE String operator+(const String& str1, const String& str2);
|
514 mike 1.38
|
515 karl 1.79 /** The overload operator (<) compares String obects.
|
516 mike 1.38 <pre>
|
517 david.dillard 1.89 String t1 = "def";
518 String t2 = "a";
519 assert (t2 < t1);
|
520 mike 1.38 </pre>
|
521 karl 1.79 @param str1 REVIEWERS: Insert description here.
522 @param str2 REVIEWERS: Insert description here.
|
523 mike 1.38 */
|
524 kumpf 1.48 PEGASUS_COMMON_LINKAGE Boolean operator<(
525 const String& str1,
526 const String& str2);
|
527 mike 1.38
|
528 karl 1.79 /** The overload operator (<=) compares String objects.
529 @param str1 REVIEWERS: Insert description here.
530 @param str2 REVIEWERS: Insert description here.
|
531 mike 1.38 */
|
532 kumpf 1.48 PEGASUS_COMMON_LINKAGE Boolean operator<=(
533 const String& str1,
534 const String& str2);
|
535 mike 1.38
|
536 karl 1.79 /** The overload operator (>) compares String objects.
537 @param str1 REVIEWERS: Insert description here.
538 @param str2 REVIEWERS: Insert description here.
|
539 mike 1.38 */
|
540 kumpf 1.48 PEGASUS_COMMON_LINKAGE Boolean operator>(
541 const String& str1,
542 const String& str2);
|
543 mike 1.38
|
544 karl 1.79 /** The overload operator (>=) compares String objects.
545 @param str1 REVIEWERS: Insert description here.
546 @param str2 REVIEWERS: Insert description here.
|
547 mike 1.38 */
|
548 kumpf 1.48 PEGASUS_COMMON_LINKAGE Boolean operator>=(
549 const String& str1,
550 const String& str2);
|
551 mike 1.38
552 PEGASUS_NAMESPACE_END
553
554 #endif /* Pegasus_String_h */
|