Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

string_byte_length

CryoEagle edited this page Dec 26, 2018 · 5 revisions

string_byte_length

Returns the number of bytes in a string.

Syntax:

string_byte_length(str)
Argument Description
string str The string to measure the number of bytes of

Returns: int

Description:

This function returns the number of bytes in a string, but you should note that due to their being held as UTF8, this will not be equal to their string length.

Example:

int bytelength = string_byte_length("Hello World"); 

This would set bytelength to the number of bytes in "Hello World".

Back to strings

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /