28.01.2013 Views

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Function Syntax Purpose<br />

hextoraw string hextoraw(string) convert a hexadecimal representation of<br />

bytes to a string of<br />

bytes. The hexadecimal string may<br />

contain 0-9, upper or lowercase a-f and<br />

no spaces between the two digits of a<br />

byte; spaces between bytes are allowed.<br />

rawtohex string rawtohex(string) convert a string of bytes to its<br />

hexadecimal representation.<br />

ltrim string ltrim(string)<br />

string ltrim(string, string)<br />

rtrim string rtrim(string)<br />

string rtrim(string, string)<br />

trim string trim(string)<br />

string trim(string, string)<br />

lpad string lpad(string, int)<br />

string lpad(string, int, string)<br />

rpad string rpad(string, int)<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Developer</strong> <strong>Guide</strong><br />

Setting Up the Analytic Model<br />

string rpad(string, int, string)<br />

The output will contain only 0-9 and<br />

(upper case) A-F, no spaces and is twice<br />

as many bytes as the original string.<br />

removes a whitespace prefix from a<br />

string. The Whitespace characters may<br />

be specified in an optional argument.<br />

This functions operates on raw bytes of<br />

the UTF8-string and has no knowledge<br />

of multi byte codes (you may not<br />

specify multi byte whitespace<br />

characters).<br />

removes trailing whitespace from a<br />

string. The Whitespace characters may<br />

be specified in an optional argument.<br />

This functions operates on raw bytes of<br />

the UTF8-string and has no knowledge<br />

of multi byte codes (you may not<br />

specify multi byte whitespace<br />

characters).<br />

removes whitespace from the beginning<br />

and end of a string.<br />

add whitespace to the left of a string. A<br />

second string argument specifies the<br />

whitespace which will be added<br />

repeatedly until the string has reached<br />

the intended length. If no second string<br />

argument is specified, chr(32) (' ') will<br />

be added. This function operated on<br />

UTF-8 bytes and has no knowledge of<br />

unicode characters (neither for the<br />

whitespace string nor for length<br />

computation).<br />

add whitespace to the end of a string. A<br />

second string argument specifies the<br />

whitespace which will be added<br />

repeatedly until the string has reached<br />

the intended length. If no second string<br />

argument is specified, chr(32) (' ') will<br />

be added. This function operated on<br />

P U B L I C<br />

© 2012 <strong>SAP</strong> AG. All rights reserved. 149

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!