sql:octet-length

sql:octet-length(
   $x as xs:string
) as xs:integer

Summary

Returns the length of the string "str" in bits.

Parameters
x The string to be evaluated.

Example

  sql:octet-length("text")
  => 4
Powered by MarkLogic Server | Terms of Use | Privacy Policy