office-gobmx/basic
Mike Kaganski 9727755231 tdf#160478: fix Basic LIKE operator
1. The regex must match the whole input. Thus, the ^ and $ metacharacters
   must be replaced with \A and \z, which only match beginning and end of
   input, not any line start / end.
2. The * and ? metacharacters of LIKE must match newline character; thus,
   search flags must include UREGEX_DOTALL. To avoid changing TextSearch
   implementation, I use icu::RegexMatcher directly.

The direct use of icu::RegexMatcher also allowed to simplify the code by
calling icu::RegexMatcher::matches method.  This may perform better than
general-purpose utl::TextSearch::SearchForward.

Change-Id: I75776498b36f236da294462362ed5b36ed8cdf68
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165700
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165704
2024-04-07 13:58:05 +02:00
..
inc
qa
source tdf#160478: fix Basic LIKE operator 2024-04-07 13:58:05 +02:00
util
AllLangMoTarget_sb.mk
CppunitTest_basic_macros.mk
CppunitTest_basic_scanner.mk tdf#160478: fix Basic LIKE operator 2024-04-07 13:58:05 +02:00
IwyuFilter_basic.yaml
Library_sb.mk tdf#160478: fix Basic LIKE operator 2024-04-07 13:58:05 +02:00
Makefile
Module_basic.mk
README.md

StarBASIC Interpreter

Contains the StarBASIC Interpreter

This implements a macro language that, when in VBA compatibility mode, is intended to be interoperable with Visual Basic for Applications, allowing people to run macros embedded in their documents.

See also

http://wiki.openoffice.org/wiki/Basic