diff options
author | Balazs Varga <balazs.varga.extern@allotropia.de> | 2024-05-10 17:06:39 +0200 |
---|---|---|
committer | Balazs Varga <balazs.varga.extern@allotropia.de> | 2024-05-15 18:10:54 +0200 |
commit | c1565b8b94548ef85508b0302ef9299f18ff09be (patch) | |
tree | 067b4e8c8786d06c9460ce6b0a8ca2503aaa3e85 /include | |
parent | 2a9eb581f0edfae8123018006df5cc9de1e1fd45 (diff) |
tdf#126573 Add Excel2021 array function UNIQUE to Calc
Add new function called UNIQUE to the function list.
(TODO: dynamic array in separate patch, oasis proposal)
Change-Id: Ie138aee545995d4af1e66be5a4cf4e99e6e2f581
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167484
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/formula/compiler.hxx | 3 | ||||
-rw-r--r-- | include/formula/opcode.hxx | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/formula/compiler.hxx b/include/formula/compiler.hxx index 4fe03f59cf95..181576000c4d 100644 --- a/include/formula/compiler.hxx +++ b/include/formula/compiler.hxx @@ -515,7 +515,8 @@ #define SC_OPCODE_SORTBY 502 #define SC_OPCODE_MAT_SEQUENCE 503 #define SC_OPCODE_RANDARRAY 504 -#define SC_OPCODE_STOP_2_PAR 505 /* last function with two or more parameters' OpCode + 1 */ +#define SC_OPCODE_UNIQUE 505 +#define SC_OPCODE_STOP_2_PAR 506 /* last function with two or more parameters' OpCode + 1 */ #define SC_OPCODE_STOP_FUNCTION SC_OPCODE_STOP_2_PAR /* last function's OpCode + 1 */ #define SC_OPCODE_LAST_OPCODE_ID (SC_OPCODE_STOP_FUNCTION - 1) /* last OpCode */ diff --git a/include/formula/opcode.hxx b/include/formula/opcode.hxx index e4373f6759b1..89f6f95f57dd 100644 --- a/include/formula/opcode.hxx +++ b/include/formula/opcode.hxx @@ -511,6 +511,7 @@ enum OpCode : sal_uInt16 ocSortBy = SC_OPCODE_SORTBY, ocMatSequence = SC_OPCODE_MAT_SEQUENCE, ocRandArray = SC_OPCODE_RANDARRAY, + ocUnique = SC_OPCODE_UNIQUE, // internal stuff ocInternalBegin = SC_OPCODE_INTERNAL_BEGIN, ocTTT = SC_OPCODE_TTT, @@ -994,6 +995,7 @@ inline std::string OpCodeEnumToString(OpCode eCode) case ocFilter: return "Filter"; case ocSort: return "Sort"; case ocSortBy: return "SortBy"; + case ocUnique: return "Unique"; case ocTTT: return "TTT"; case ocDebugVar: return "DebugVar"; case ocDataToken1: return "DataToken1"; |