str.bytesize â integer
Instance Public methods
Returns the length of str
in bytes.
1 2 | "\x80\u3042" .bytesize #=> 4 "hello" .bytesize #=> 5 |
Returns the length of str
in bytes.
1 2 | "\x80\u3042" .bytesize #=> 4 "hello" .bytesize #=> 5 |
Designed by : w10schools
service@w10schools.com
Please login to continue.