LibreOffice 25.2 Help
Returns the first characters of a DBCS text.
LEFTB("Text" [; Number_bytes])
text is the text where the initial partial words are to be determined.
Number_bytes (optional) specifies the number of characters you want LEFTB to extract, based on bytes. If this parameter is not defined, one character is returned.
=LEFTB("ä¸ĺ›˝";1) returns " " (1 byte is only half a DBCS character and a space character is returned instead).
=LEFTB("ä¸ĺ›˝";2) returns "ä¸" (2 bytes constitute one complete DBCS character).
=LEFTB("ä¸ĺ›˝";3) returns "ä¸ " (3 bytes constitute one DBCS character and a half; the last character returned is therefore a space character).
=LEFTB("ä¸ĺ›˝";4) returns "ä¸ĺ›˝" (4 bytes constitute two complete DBCS characters).
=LEFTB("office";3) returns "off" (3 non-DBCS characters each consisting of 1 byte).