Files
workbook/tests/fixtures/string2_functions.gnumeric
waozi 6f2870aa04 Add string functions with 1:1 gnumeric parity
CLEAN, UNICHAR (UTF-8 encoding with surrogate rejection), UNICODE
(first UTF-8 code point), TEXTJOIN with ignore-empty semantics,
ARABIC (right-to-left additive/subtractive scan), ROMAN with all
five conciseness forms and gnumeric's exact replacement cascade,
ENCODEURL (URI path escaping), LENB, LEFTB, RIGHTB, MIDB (byte
counts snapped back to UTF-8 boundaries; out-of-range start is
#VALUE! as in gnumeric), and NUMBERVALUE (gnumeric 1.12.57 returns
#N/A, which we mirror).

tests/fixtures/string2_functions.gnumeric: 32 formulas, all matching
ssconvert; parity-test.sh green for 13 fixtures and round-trips.
2026-09-05 05:10:13 -03:00

5 lines
2.3 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="UTF-8"?>
<gnm:Workbook xmlns:gnm="http://www.gnumeric.org/v10.dtd">
<gnm:SheetNameIndex><gnm:SheetName gnm:Cols="6" gnm:Rows="40">Sheet1</gnm:SheetName></gnm:SheetNameIndex>
<gnm:Sheets><gnm:Sheet DisplayFormulas="0" HideZero="0" HideGrid="0" HideColHeader="0" HideRowHeader="0" DisplayOutlines="1" OutlineSymbolsBelow="1" OutlineSymbolsRight="1" Visibility="GNM_SHEET_VISIBILITY_VISIBLE" GridColor="0:0:0"><gnm:Name>Sheet1</gnm:Name><gnm:MaxCol>5</gnm:MaxCol><gnm:MaxRow>39</gnm:MaxRow><gnm:Cells><gnm:Cell Row="0" Col="3">=CLEAN("a b c")</gnm:Cell><gnm:Cell Row="1" Col="3">=UNICHAR(65)</gnm:Cell><gnm:Cell Row="2" Col="3">=UNICHAR(960)</gnm:Cell><gnm:Cell Row="3" Col="3">=UNICODE("A")</gnm:Cell><gnm:Cell Row="4" Col="3">=UNICODE("α")</gnm:Cell><gnm:Cell Row="5" Col="3">=TEXTJOIN(",",TRUE,"a","b","c")</gnm:Cell><gnm:Cell Row="6" Col="3">=TEXTJOIN("-",FALSE,"a","","b")</gnm:Cell><gnm:Cell Row="7" Col="3">=TEXTJOIN(",",TRUE,1,2,3)</gnm:Cell><gnm:Cell Row="8" Col="3">=ARABIC("XIV")</gnm:Cell><gnm:Cell Row="9" Col="3">=ARABIC("mcmxcix")</gnm:Cell><gnm:Cell Row="10" Col="3">=ARABIC("CDLII")</gnm:Cell><gnm:Cell Row="11" Col="3">=ARABIC("iv")</gnm:Cell><gnm:Cell Row="12" Col="3">=ROMAN(999)</gnm:Cell><gnm:Cell Row="13" Col="3">=ROMAN(999,1)</gnm:Cell><gnm:Cell Row="14" Col="3">=ROMAN(999,2)</gnm:Cell><gnm:Cell Row="15" Col="3">=ROMAN(999,3)</gnm:Cell><gnm:Cell Row="16" Col="3">=ROMAN(999,4)</gnm:Cell><gnm:Cell Row="17" Col="3">=ROMAN(14)</gnm:Cell><gnm:Cell Row="18" Col="3">=ROMAN(0)</gnm:Cell><gnm:Cell Row="19" Col="3">=ROMAN(2024)</gnm:Cell><gnm:Cell Row="20" Col="3">=ROMAN(3888)</gnm:Cell><gnm:Cell Row="21" Col="3">=ENCODEURL("a b&amp;c")</gnm:Cell><gnm:Cell Row="22" Col="3">=ENCODEURL("héllo")</gnm:Cell><gnm:Cell Row="23" Col="3">=LENB("abc")</gnm:Cell><gnm:Cell Row="24" Col="3">=LEFTB("abcdef",3)</gnm:Cell><gnm:Cell Row="25" Col="3">=LEFTB("abcdef",99)</gnm:Cell><gnm:Cell Row="26" Col="3">=RIGHTB("abcdef",2)</gnm:Cell><gnm:Cell Row="27" Col="3">=RIGHTB("abcdef",0)</gnm:Cell><gnm:Cell Row="28" Col="3">=MIDB("abcdef",2,3)</gnm:Cell><gnm:Cell Row="29" Col="3">=MIDB("abcdef",10,2)</gnm:Cell><gnm:Cell Row="30" Col="3">=NUMBERVALUE("1,234.56")</gnm:Cell><gnm:Cell Row="31" Col="3">=NUMBERVALUE("abc")</gnm:Cell></gnm:Cells></gnm:Sheet></gnm:Sheets>
</gnm:Workbook>