User: obo Date: 05/12/21 05:14:22 Modified: /dba/connectivity/source/commontools/ CommonTools.cxx
Log: INTEGRATION: CWS dba202a (1.20.28); FILE MERGED 2005/11/25 08:30:18 oj 1.20.28.1: #126933# check if char if > 127 File Changes: Directory: /dba/connectivity/source/commontools/ ================================================ File [changed]: CommonTools.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/commontools/CommonTools.cxx?r1=1.20&r2=1.21 Delta lines: +2 -2 ------------------- --- CommonTools.cxx 23 Sep 2005 11:35:55 -0000 1.20 +++ CommonTools.cxx 21 Dec 2005 13:14:19 -0000 1.21 @@ -336,7 +336,7 @@ // Dieses ist wichtig fuer Tabellennamen beispielsweise ::rtl::OString aName(rName,rName.getLength(),RTL_TEXTENCODING_ASCII_US); const char* pStr = aName.getStr(); - if (isdigit(*pStr)) + if (*pStr > 127 || isdigit(*pStr)) return sal_False; for (; *pStr; ++pStr ) @@ -374,7 +374,7 @@ ::rtl::OUString aNewName(rName); const sal_Unicode* pStr = rName.getStr(); sal_Int32 nLength = rName.getLength(); - sal_Bool bValid(!isdigit(*pStr)); + sal_Bool bValid(*pStr < 128 && !isdigit(*pStr)); for (sal_Int32 i=0; bValid && i < nLength; ++pStr,++i ) if(!isCharOk(*pStr,_rSpecials)) { --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
