_on_colon_parse.hlp

来自「是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到」· HLP 代码 · 共 57 行

HLP
57
字号
{smcl}
{* 04apr2005}{...}
{cmd:help _on_colon_parse}{right:also see:  {help undocumented}}
{hline}

{title:Title}

{p 4 25 2}
{hi:_on_colon_parse} {hline 2} Splitting text on the colon character


{title:Syntax}

{phang2}
{cmd:_on_colon_parse} [{it:text_before}] {cmd::} [{it:text_after}]


{title:Description}

{pstd}
{cmd:_on_colon_parse} is a programmers tool, written for the purpose of parsing
prefix commands, see {helpb _prefix}.


{title:Saved results}

{pstd}
{cmd:_on_colon_parse} saves in {cmd:s()}:

{phang}
Macros:

{col 8}{cmd:s(before)}{col 20}{it:text_before}
{col 8}{cmd:s(after)}{col 20}{it:text_after}


{title:Examples}

{pstd}{cmd:. _on_colon_parse :}{p_end}
{pstd}{cmd:. sreturn list}{p_end}

{pstd}{cmd:. _on_colon_parse stuff before : stuff after}{p_end}
{pstd}{cmd:. sreturn list}{p_end}

    {txt}macros:
                 s(after) : "{res} stuff after{txt}"
                s(before) : "{res}stuff before {txt}"


{title:Also see}

{psee}
Online:
{helpb gettoken},
{helpb _prefix}
{p_end}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?