diff options
author | Hans-Joachim Lankenau <hjs@openoffice.org> | 2003-08-19 10:33:27 +0000 |
---|---|---|
committer | Hans-Joachim Lankenau <hjs@openoffice.org> | 2003-08-19 10:33:27 +0000 |
commit | 18c46acf186f51f67bce409e2385f8342661bc60 (patch) | |
tree | af31dca1fd231e26f3458266ba13591819def5b4 /sc/inc/global.hxx | |
parent | 4e841214e9adf7dbce9f112306b13be460aa4c46 (diff) |
INTEGRATION: CWS dr6 (1.23.44); FILE MERGED
2003/07/04 11:04:53 dr 1.23.44.1: #i3653# added string token handling helpers
Diffstat (limited to 'sc/inc/global.hxx')
-rw-r--r-- | sc/inc/global.hxx | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/sc/inc/global.hxx b/sc/inc/global.hxx index 415cf2a6cf6e..8b26690540e5 100644 --- a/sc/inc/global.hxx +++ b/sc/inc/global.hxx @@ -2,9 +2,9 @@ * * $RCSfile: global.hxx,v $ * - * $Revision: 1.23 $ + * $Revision: 1.24 $ * - * last change: $Author: hr $ $Date: 2003-04-28 15:30:46 $ + * last change: $Author: hjs $ $Date: 2003-08-19 11:33:27 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -661,6 +661,25 @@ public: static inline sal_Unicode ToUpperAlpha( sal_Unicode c ) { return ( c >= 'a' && c <= 'z' ) ? ( c-'a'+'A' ) : c; } + /** Adds the string rToken to rTokenList, using a list separator character. + @param rTokenList The string list where the token will be appended to. + @param rToken The token string to append to the token list. + @param cSep The character to separate the tokens. + @param nSepCount Specifies how often cSep is inserted between two tokens. + @param bForceSep true = Always insert separator; false = Only, if not at begin or end. */ + static void AddToken( + String& rTokenList, const String& rToken, + sal_Unicode cSep, xub_StrLen nSepCount = 1, + bool bForceSep = false ); + + /** Returns true, if the first and last character of the string is cQuote. */ + static bool IsQuoted( const String& rString, sal_Unicode cQuote = '"' ); + /** Inserts the character cQuote at beginning and end of rString. */ + static void AddQuotes( String& rString, sal_Unicode cQuote = '"' ); + /** Erases the character cQuote from rString, if it exists at beginning AND end. */ + static void EraseQuotes( String& rString, sal_Unicode cQuote = '"' ); + + static CharSet GetCharsetValue( const String& rCharSet ); static String GetCharsetString( CharSet eVal ); |