📄 tokenize.hlp
字号:
{smcl}
{* 10feb2005}{...}
{cmd:help tokenize}
{hline}
{title:Title}
{p2colset 5 21 23 2}{...}
{p2col :{hi:[P] tokenize} {hline 2}}Divide strings into tokens{p_end}
{p2colreset}{...}
{title:Syntax}
{p 8 17 2}{cmdab:token:ize} [[{cmd:`}]{cmd:"}][{it:string}][{cmd:"}[{cmd:'}]]
[{cmd:,} {cmdab:p:arse:("}{it:pchars}{cmd:")} ]
{title:Description}
{pstd}
{cmd:tokenize} divides {it:string} into tokens, storing the result
in {hi:`1'}, {hi:`2'}, ... (the positional local macros). Tokens are
determined based on the parsing characters {it:pchars}, which default to a
space if not specified.
{title:Option}
{phang}{cmd:parse(}{it:pchars}{cmd:)} specifies the parsing characters. If
{cmd:parse()} is not specified, {cmd:parse(" ")} is assumed, and
{it:string} is split into words.
{title:Example}
{cmd:program define myprog}
{cmd:syntax [varlist] [if] [in]}
{cmd:marksample touse }
{cmd:tokenize `varlist'}
{cmd:local first `1'}
{cmd:mac shift}
{cmd:local rest `*'}
{it:...}
{cmd:end}
{title:Also see}
{psee}
Manual: {bf:[P] tokenize}
{psee}
Online: {helpb foreach}, {helpb gettoken}, {helpb macro},
{helpb syntax}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -