<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE TIP SYSTEM "http://www.tcl.tk/cgi-bin/tct/tip/tipxml.dtd">
<!-- Converted at Thu May 17 04:10:57 GMT 2012 -->
<!-- TIP AutoGenerator - written by Donal K. Fellows -->

<TIP number='318'>
<header><title>Extend Default Whitespace in &apos;string trim&apos; Beyond ASCII</title><author address="mailto:billposer@alum.mit.edu">Bill Poser</author><status type='project' state='final' tclversion="8.6" vote='after'>$Revision: 1.5 $</status><history></history><created day='13' month='may' year='2008' /></header>
<abstract>This TIP extends the <emph style="bold">string trim</emph>, <emph style="bold">string trimleft</emph>, and <emph style="bold">string trimright</emph> subcommands to function properly with non-roman writing systems by adding non-ASCII space characters to the default list of characters to be trimmed.</abstract>
<body><section title="Rationale">
<para>By default <emph style="bold">string trim</emph> and its single-sided variants remove ASCII whitespace characters. Some writing systems use other whitespace characters. Adding these characters to the default list will extend the Unicode-friendliness of Tcl.</para>
<para>The characters proposed to be added are:</para>
<verbatim><vline encoding='base64'>VSsxMzYxICBFVEhJT1BJQyBXT1JEU1BBQ0UgICAgICAg</vline><vline encoding='base64'>VSsxNjgwICBPR0hBTSBTUEFDRSBNQVJL</vline><vline encoding='base64'>VSszMDAwICBJREVPR1JBUEhJQyBTUEFDRQ==</vline></verbatim>
</section>
<section title="Copyright">
<para>This document has been placed in the public domain.</para>
</section>
</body></TIP>

