\documentclass[]{article}
\usepackage{amsmath,graphicx,supertabular,hyperref,tabularx,ifthen}
\title{TIP \#252: Add New 'string' Command Options}
\date{June 28, 2005}
\author{Brian Schmidt}
\urlstyle{sf}
\setlength{\parskip}{1ex}
\setlength{\parindent}{0pt}
\def\tipversion$#1${\texttt{\$#1\$}}
\def\tiplangle#1{\ensuremath{<}}
\def\tiprangle#1{\ensuremath{>}}
\def\tipbar#1{\ensuremath{|}}
\def\tipmail#1#2{\(\langle\){\small\expandafter\url{#1@#2}}\(\rangle\)}
\ifx\pdfoutput\undefined
\newcommand{\tipimage}[2]{\typeout{Make sure you download #1.eps}\ifthenelse{\lengthtest{0.8\textwidth>#2}\and\lengthtest{0pt<#2}}{\includegraphics{#1.eps}}{\includegraphics[width=0.8\textwidth]{#1.eps}}}
\newcommand{\tipxref}[1]{}
\newcommand{\tipxrefend}{}
\else
\newcommand{\tipimage}[2]{\typeout{Make sure you create #1.pdf}\ifthenelse{\lengthtest{0.8\textwidth>#2}\and\lengthtest{0pt<#2}}{\includegraphics{#1.pdf}}{\includegraphics[width=0.8\textwidth]{#1.pdf}}}
\pdfcatalog{/PageMode /UseOutlines}
\newcommand{\tipxref}[1]{\pdfannotlink attr {/C [0.5 0.5 1.0] /Border [0 0 1]} goto name {#1}}
\newcommand{\tipxrefend}{\pdfendlink}
\fi
\newenvironment{tipabstract}{\begin{abstract}}{\end{abstract}}
\begin{document}\maketitle
\begin{center}\begin{tabularx}{\linewidth}{|r@{: }X|}\hline
\textbf{TIP \#252}&\textbf{Add New 'string' Command Options}\\\hline
Author&

Brian Schmidt \tipmail{contact}{schmidtsrus.net}
\\
Created&Tuesday, \(\text{28}^{\text{th}}\) June 2005\\
Type&Project\\
Tcl Version&\(8.6\)\\
State&Rejected\\
Vote&Done\\
Version&\tipversion$Revision: 1.4 $\\
Post History&\\
\hline\end{tabularx}\end{center}
\thispagestyle{empty}\pagestyle{empty}
\begin{tipabstract}

This TIP proposes moving several existing string-related commands to be options in the existing top-level \textbf{string} command.
\end{tipabstract}
\tableofcontents\setcounter{page}{0}\clearpage\pagestyle{plain}

\section{Rationale}

There is an existing top-level \textbf{string} command already. However, there are other existing top-level string-related commands that for consistency should be options in the existing \textbf{string} command.

These additional string command options would further centralize all string-related commands, making it easier for new users to see all the related string commands.

\section{Specification}

Additional \textbf{string} command options would be added utilizing existing top-level commands, using the following syntax:
\begingroup\small\begin{verbatim}
string split         ;equivalent to split
string format        ;equivalent to format
string scan          ;equivalent to scan
string subst         ;equivalent to subst
\end{verbatim}
\endgroup

Each represents the existing command that is commented. The arguments to each would remain what the current command takes.

The old commands could then potentially be eventually deprecated:
\begingroup\small\begin{verbatim}
split
format
scan
subst
\end{verbatim}
\endgroup

\section{Copyright}

This document has been placed in the public domain.

\section{Colophon}

\textit{TIP AutoGenerator --- written by Donal K. Fellows}
\end{document}
