/** * Copyright 2023-present DreamNum Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { getBuiltinFunctionGroup } from '../function-group'; import { FUNCTION_NAMES_LOOKUP } from '../lookup/function-names'; import { FUNCTION_NAMES_TEXT } from './function-names'; export const excelTextSearchFunctions = getBuiltinFunctionGroup( FUNCTION_NAMES_TEXT.FIND, FUNCTION_NAMES_TEXT.SEARCH ); export const excelByteTextFunctions = getBuiltinFunctionGroup( FUNCTION_NAMES_TEXT.CHAR, FUNCTION_NAMES_TEXT.LEN, FUNCTION_NAMES_TEXT.LENB, FUNCTION_NAMES_TEXT.LEFT, FUNCTION_NAMES_TEXT.LEFTB, FUNCTION_NAMES_TEXT.RIGHT, FUNCTION_NAMES_TEXT.RIGHTB, FUNCTION_NAMES_TEXT.MID, FUNCTION_NAMES_TEXT.MIDB, FUNCTION_NAMES_TEXT.REPLACE, FUNCTION_NAMES_TEXT.REPLACEB, FUNCTION_NAMES_TEXT.FINDB, FUNCTION_NAMES_TEXT.SEARCHB, FUNCTION_NAMES_TEXT.UNICODE, FUNCTION_NAMES_TEXT.EXACT, FUNCTION_NAMES_TEXT.SUBSTITUTE ); export const excelTextSerializationFunctions = getBuiltinFunctionGroup( FUNCTION_NAMES_TEXT.BAHTTEXT, FUNCTION_NAMES_TEXT.DOLLAR, FUNCTION_NAMES_TEXT.FIXED, FUNCTION_NAMES_TEXT.TEXT, FUNCTION_NAMES_LOOKUP.TOCOL, FUNCTION_NAMES_LOOKUP.TOROW, FUNCTION_NAMES_TEXT.ARRAYTOTEXT, FUNCTION_NAMES_TEXT.ASC, FUNCTION_NAMES_TEXT.DBCS, FUNCTION_NAMES_TEXT.CLEAN, FUNCTION_NAMES_TEXT.CONCAT, FUNCTION_NAMES_TEXT.CONCATENATE, FUNCTION_NAMES_TEXT.LOWER, FUNCTION_NAMES_TEXT.PROPER, FUNCTION_NAMES_TEXT.REPT, FUNCTION_NAMES_TEXT.T, FUNCTION_NAMES_TEXT.TEXTJOIN, FUNCTION_NAMES_TEXT.TEXTSPLIT, FUNCTION_NAMES_TEXT.TRIM, FUNCTION_NAMES_TEXT.UPPER, FUNCTION_NAMES_TEXT.NUMBERVALUE, FUNCTION_NAMES_TEXT.VALUE, FUNCTION_NAMES_TEXT.VALUETOTEXT );