如何在字符串中加入回车换行,tab字符(关于字符串处理)
1个回答
展开全部
CL_ABAP_CHAR_UTILITIES 中有字符常量:如:CR_LF,HORIZONTAL_TAB,NEWLINE等等.
下面给出字符串中加入回车换行的示例:
DATA: crlf(2) TYPE c.
DATA: l_html(4096) TYPE C.
crlf = cl_ABAP_char_utilities=cr_lf.
CONCATENATE l_html crlf '_FUNCTION''30''WWW_GET_REPORT' '' INTO l_html.
string的标准函数查找:FIND [{FIRST OCCURRENCE}|{ALL OCCURRENCES} OF] pattern IN dobj替换:REPLACE [{FIRST OCCURRENCE}|{ALL OCCURRENCES} OF] pattern IN dobj WITH new
REPLACE SECTION [OFFSET off] [LENGTH len] OF dobj WITH new移动:SHIFT c [BY n PLACES] [mode]拼接:CONCATENATE c1 ... cn INTO c [SEPARATED BY s]分割:SPLIT c AT del INTO c1 ... cn.
大小写转换:
TRANSLATE text TO UPPER CASE.
TRANSLATE text TO LOWER CASE.
字符串覆盖:
OVERLAY c1 WITH c2 [ONLY str].
压缩字符串:
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询