textsearch.cxx (4ba79ff3) textsearch.cxx (7c5e76a7)
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

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

703
704void TextSearch::RESrchPrepare( const ::com::sun::star::util::SearchOptions& rOptions)
705{
706 // select the transliterated pattern string
707 const OUString& rPatternStr =
708 (rOptions.transliterateFlags & SIMPLE_TRANS_MASK) ? sSrchStr
709 : ((rOptions.transliterateFlags & COMPLEX_TRANS_MASK) ? sSrchStr2 : rOptions.searchString);
710
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

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

703
704void TextSearch::RESrchPrepare( const ::com::sun::star::util::SearchOptions& rOptions)
705{
706 // select the transliterated pattern string
707 const OUString& rPatternStr =
708 (rOptions.transliterateFlags & SIMPLE_TRANS_MASK) ? sSrchStr
709 : ((rOptions.transliterateFlags & COMPLEX_TRANS_MASK) ? sSrchStr2 : rOptions.searchString);
710
711 sal_uInt32 nIcuSearchFlags = UREGEX_UWORD; // request UAX#29 unicode capbility
711 sal_uInt32 nIcuSearchFlags = UREGEX_UWORD; // request UAX#29 unicode capability
712 // map com::sun::star::util::SearchFlags to ICU uregex.h flags
713 // TODO: REG_EXTENDED, REG_NOT_BEGINOFLINE, REG_NOT_ENDOFLINE
714 // REG_NEWLINE is neither properly defined nor used anywhere => not implemented
715 // REG_NOSUB is not used anywhere => not implemented
716 // NORM_WORD_ONLY is only used for SearchAlgorithm==Absolute
717 // LEV_RELAXED is only used for SearchAlgorithm==Approximate
718 // why is even ALL_IGNORE_CASE deprecated in UNO? because of transliteration taking care of it???
719 if( (rOptions.searchFlag & com::sun::star::util::SearchFlags::ALL_IGNORE_CASE) != 0)

--- 280 unchanged lines hidden ---
712 // map com::sun::star::util::SearchFlags to ICU uregex.h flags
713 // TODO: REG_EXTENDED, REG_NOT_BEGINOFLINE, REG_NOT_ENDOFLINE
714 // REG_NEWLINE is neither properly defined nor used anywhere => not implemented
715 // REG_NOSUB is not used anywhere => not implemented
716 // NORM_WORD_ONLY is only used for SearchAlgorithm==Absolute
717 // LEV_RELAXED is only used for SearchAlgorithm==Approximate
718 // why is even ALL_IGNORE_CASE deprecated in UNO? because of transliteration taking care of it???
719 if( (rOptions.searchFlag & com::sun::star::util::SearchFlags::ALL_IGNORE_CASE) != 0)

--- 280 unchanged lines hidden ---