zforfind.cxx (40df464e) zforfind.cxx (c1e8cc3a)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 235 unchanged lines hidden (view full) ---

244
245sal_Bool ImpSvNumberInputScan::NextNumberStringSymbol(
246 const sal_Unicode*& pStr,
247 String& rSymbol )
248{
249 sal_Bool isNumber = sal_False;
250 sal_Unicode cToken;
251 ScanState eState = SsStart;
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 235 unchanged lines hidden (view full) ---

244
245sal_Bool ImpSvNumberInputScan::NextNumberStringSymbol(
246 const sal_Unicode*& pStr,
247 String& rSymbol )
248{
249 sal_Bool isNumber = sal_False;
250 sal_Unicode cToken;
251 ScanState eState = SsStart;
252 register const sal_Unicode* pHere = pStr;
253 register xub_StrLen nChars = 0;
252 const sal_Unicode* pHere = pStr;
253 xub_StrLen nChars = 0;
254
255 while ( ((cToken = *pHere) != 0) && eState != SsStop)
256 {
257 pHere++;
258 switch (eState)
259 {
260 case SsStart:
261 if ( MyIsdigit( cToken ) )

--- 47 unchanged lines hidden (view full) ---

309
310sal_Bool ImpSvNumberInputScan::SkipThousands(
311 const sal_Unicode*& pStr,
312 String& rSymbol )
313{
314 sal_Bool res = sal_False;
315 sal_Unicode cToken;
316 const String& rThSep = pFormatter->GetNumThousandSep();
254
255 while ( ((cToken = *pHere) != 0) && eState != SsStop)
256 {
257 pHere++;
258 switch (eState)
259 {
260 case SsStart:
261 if ( MyIsdigit( cToken ) )

--- 47 unchanged lines hidden (view full) ---

309
310sal_Bool ImpSvNumberInputScan::SkipThousands(
311 const sal_Unicode*& pStr,
312 String& rSymbol )
313{
314 sal_Bool res = sal_False;
315 sal_Unicode cToken;
316 const String& rThSep = pFormatter->GetNumThousandSep();
317 register const sal_Unicode* pHere = pStr;
317 const sal_Unicode* pHere = pStr;
318 ScanState eState = SsStart;
319 xub_StrLen nCounter = 0; // counts 3 digits
320
321 while ( ((cToken = *pHere) != 0) && eState != SsStop)
322 {
323 pHere++;
324 switch (eState)
325 {

--- 87 unchanged lines hidden (view full) ---

413//---------------------------------------------------------------------------
414// Whether pString contains rWhat at nPos
415
416sal_Bool ImpSvNumberInputScan::StringPtrContainsImpl( const String& rWhat,
417 const sal_Unicode* pString, xub_StrLen nPos )
418{
419 if ( rWhat.Len() == 0 )
420 return sal_False;
318 ScanState eState = SsStart;
319 xub_StrLen nCounter = 0; // counts 3 digits
320
321 while ( ((cToken = *pHere) != 0) && eState != SsStop)
322 {
323 pHere++;
324 switch (eState)
325 {

--- 87 unchanged lines hidden (view full) ---

413//---------------------------------------------------------------------------
414// Whether pString contains rWhat at nPos
415
416sal_Bool ImpSvNumberInputScan::StringPtrContainsImpl( const String& rWhat,
417 const sal_Unicode* pString, xub_StrLen nPos )
418{
419 if ( rWhat.Len() == 0 )
420 return sal_False;
421 register const sal_Unicode* pWhat = rWhat.GetBuffer();
422 register const sal_Unicode* const pEnd = pWhat + rWhat.Len();
423 register const sal_Unicode* pStr = pString + nPos;
421 const sal_Unicode* pWhat = rWhat.GetBuffer();
422 const sal_Unicode* const pEnd = pWhat + rWhat.Len();
423 const sal_Unicode* pStr = pString + nPos;
424 while ( pWhat < pEnd )
425 {
426 if ( *pWhat != *pStr )
427 return sal_False;
428 pWhat++;
429 pStr++;
430 }
431 return sal_True;

--- 22 unchanged lines hidden (view full) ---

454//
455// Ueberspringt Leerzeichen
456
457inline void ImpSvNumberInputScan::SkipBlanks( const String& rString,
458 xub_StrLen& nPos )
459{
460 if ( nPos < rString.Len() )
461 {
424 while ( pWhat < pEnd )
425 {
426 if ( *pWhat != *pStr )
427 return sal_False;
428 pWhat++;
429 pStr++;
430 }
431 return sal_True;

--- 22 unchanged lines hidden (view full) ---

454//
455// Ueberspringt Leerzeichen
456
457inline void ImpSvNumberInputScan::SkipBlanks( const String& rString,
458 xub_StrLen& nPos )
459{
460 if ( nPos < rString.Len() )
461 {
462 register const sal_Unicode* p = rString.GetBuffer() + nPos;
462 const sal_Unicode* p = rString.GetBuffer() + nPos;
463 while ( *p == ' ' )
464 {
465 nPos++;
466 p++;
467 }
468 }
469}
470

--- 2342 unchanged lines hidden ---
463 while ( *p == ' ' )
464 {
465 nPos++;
466 p++;
467 }
468 }
469}
470

--- 2342 unchanged lines hidden ---