diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-03-01 19:16:40 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-03-01 19:28:14 +0100 |
commit | 72111620811bb496004ccbf92ec9ea5c9e9e4ea9 (patch) | |
tree | 1828783d80d46ba3f67ca4063abb331e6c134c69 /connectivity | |
parent | 2f527738ea4f8e93acafdd7f0ae06de1678cfdd8 (diff) |
Clean up uses of rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength
Change-Id: Ie37614dac882bfe05f8ce595ae6b20326dce872e
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_tools.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_tools.cxx b/connectivity/source/drivers/postgresql/pq_tools.cxx index 265c3aed42c8..b7a54115df93 100644 --- a/connectivity/source/drivers/postgresql/pq_tools.cxx +++ b/connectivity/source/drivers/postgresql/pq_tools.cxx @@ -321,13 +321,11 @@ OUString extractTableFromInsert( const OUString & sql ) int i = 0; while (i < sql.getLength() && isWhitespace(sql[i])) { i++; } - if( 0 == rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength( - &sql.getStr()[i], sql.getLength() - i, "insert" , 6 ) ) + if( sql.matchIgnoreAsciiCase("insert", i) ) { i += 6; while (i < sql.getLength() && isWhitespace(sql[i])) { i++; } - if( 0 == rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength( - &sql.getStr()[i], sql.getLength() - i, "into" , 4 ) ) + if( sql.matchIgnoreAsciiCase("into", i) ) { i +=4; while (i < sql.getLength() && isWhitespace(sql[i])) { i++; } |