diff options
author | Nikolai Pretzell <np@openoffice.org> | 2002-11-01 11:18:53 +0000 |
---|---|---|
committer | Nikolai Pretzell <np@openoffice.org> | 2002-11-01 11:18:53 +0000 |
commit | 0fc2847738442a837b39a784e0bf5467b4885a60 (patch) | |
tree | 5d63eaf977af8e29b57c1219728d0c74dc7a6f05 /cosv/inc/cosv/string.hxx | |
parent | 9615f4841885f75acb3a7f6c5a9030955cec19bb (diff) |
#103134# Allow cross references in IDL docu and some minor but essential fixes in cosv
Diffstat (limited to 'cosv/inc/cosv/string.hxx')
-rw-r--r-- | cosv/inc/cosv/string.hxx | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/cosv/inc/cosv/string.hxx b/cosv/inc/cosv/string.hxx index 39767fa99861..00568a85ef76 100644 --- a/cosv/inc/cosv/string.hxx +++ b/cosv/inc/cosv/string.hxx @@ -2,9 +2,9 @@ * * $RCSfile: string.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: np $ $Date: 2002-06-25 15:15:46 $ + * last change: $Author: np $ $Date: 2002-11-01 12:18:50 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -111,9 +111,6 @@ class String String( const char * i_str, size_type i_nLength ); - String( - const self & i_rStr, - position_type i_nStartPosition); /** @precond i_nLength == str::maxsize || i_nStartPosition+i_nLength <= i_rStr.Size(). */ @@ -163,9 +160,6 @@ class String void swap( self & i_rStr ); - void assign( - const self & i_rStr, - position_type i_nStartPosition); /** @precond i_nLength == str::maxsize || i_nStartPosition+i_nLength <= i_rStr.Size(). */ @@ -287,6 +281,9 @@ class String inline int compare( const String & i_s1, + const String & i_s2 ); +inline int compare( + const String & i_s1, const char * i_s2 ); inline int compare( const char * i_s1, @@ -481,6 +478,11 @@ String::end() const //****************** global compare-functions ********************// inline int +compare( const String & i_s1, + const String & i_s2 ) +{ return i_s1.compare(i_s2); } + +inline int compare( const String & i_s1, const char * i_s2 ) { return strcmp(i_s1.c_str(), i_s2); } |