LEFTB

Returns the first characters of a DBCS text.

tip

This function is available since LibreOffice 4.2.


āĻ¸āĻŋāĻ¨āĻŸā§āĻ¯āĻžāĻ•ā§āĻ¸

LEFTB("Text" [; Number_bytes])

Text āĻšāĻ˛ā§‹ āĻāĻ•āĻŸāĻŋ āĻŸā§‡āĻ•ā§āĻ¸āĻŸ, āĻ¯ā§‡āĻ–āĻžāĻ¨ āĻĨā§‡āĻ•ā§‡ āĻĒā§āĻ°āĻžāĻ°āĻŽā§āĻ­āĻŋāĻ• āĻ†āĻ‚āĻļāĻŋāĻ• āĻļāĻŦā§āĻĻ āĻ¨āĻŋāĻ°ā§āĻ§āĻžāĻ°āĻŖ āĻ•āĻ°ā§‡āĨ¤

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).

Please support us!