summaryrefslogtreecommitdiff
path: root/include/formula
diff options
context:
space:
mode:
authorBalazs Varga <balazs.varga.extern@allotropia.de>2024-02-12 21:36:30 +0100
committerBalazs Varga <balazs.varga.extern@allotropia.de>2024-02-18 23:13:01 +0100
commitb36ecef07a4933c0943b27ea937f31e1df2e77cd (patch)
tree40996730c0fbd1d74a8f38eedb92ee2bbd73c788 /include/formula
parent3e0f6665e3c9b7432404eb49efd74bff91f62935 (diff)
tdf#128425 Add Excel2021 function XMATCH to Calc
https://issues.oasis-open.org/browse/OFFICE-4155 Change-Id: I7791ab873cf62ce882feba75dc0d722bc5990f9a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163260 Tested-by: Jenkins Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
Diffstat (limited to 'include/formula')
-rw-r--r--include/formula/compiler.hxx2
-rw-r--r--include/formula/opcode.hxx2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/formula/compiler.hxx b/include/formula/compiler.hxx
index 479008dfb1a2..f3187ae95baa 100644
--- a/include/formula/compiler.hxx
+++ b/include/formula/compiler.hxx
@@ -399,7 +399,7 @@
#define SC_OPCODE_ISPMT 386
#define SC_OPCODE_HYPERLINK 387
#define SC_OPCODE_X_LOOKUP 388
-// free: 389
+#define SC_OPCODE_X_MATCH 389
#define SC_OPCODE_GET_PIVOT_DATA 390
#define SC_OPCODE_EUROCONVERT 391
#define SC_OPCODE_NUMBERVALUE 392
diff --git a/include/formula/opcode.hxx b/include/formula/opcode.hxx
index ad056a9b0b50..3c8053ffb1e3 100644
--- a/include/formula/opcode.hxx
+++ b/include/formula/opcode.hxx
@@ -307,6 +307,7 @@ enum OpCode : sal_uInt16
ocIndirect = SC_OPCODE_INDIRECT,
ocAddress = SC_OPCODE_ADDRESS,
ocMatch = SC_OPCODE_MATCH,
+ ocXMatch = SC_OPCODE_X_MATCH,
ocCountEmptyCells = SC_OPCODE_COUNT_EMPTY_CELLS,
ocCountIf = SC_OPCODE_COUNT_IF,
ocSumIf = SC_OPCODE_SUM_IF,
@@ -790,6 +791,7 @@ inline std::string OpCodeEnumToString(OpCode eCode)
case ocIndirect: return "Indirect";
case ocAddress: return "Address";
case ocMatch: return "Match";
+ case ocXMatch: return "XMatch";
case ocCountEmptyCells: return "CountEmptyCells";
case ocCountIf: return "CountIf";
case ocSumIf: return "SumIf";