Provided by: manpages-zh_1.5.2-1_all bug

NAME

       string -

 SYNOPSIS
       string option arg ?arg ...?
_________________________________________________________________

 DESCRIPTION
        option () option ():                                                   |

       string bytelength string                                                |
               string  UTF-8  Unicode    string length  UTF-8  Tcl_NumUtfChars |

       string compare ?-nocase? ?-length int? string1 string2                  |
                string1  string2      string1 (lexicographically)  string2 -10
              1  -length      length  -length      -nocase                     |

       string equal ?-nocase? ?-length int? string1 string2                    |
               string1  string2      string1  string2  1 0     -length  length |
              -length      -nocase                                             |

       string first string1 string2 ?startIndex?                               |
               string2  string1      string2      -1  startIndex ( index     ) |
              string2                                                          |
                     string first a 0a23456789abcdef 5                         |
               10, but                                                         |
                     string first a 0123456789abcdef 11                        |
               -1.                                                             |

       string index string charIndex
               string  charIndex charIndex      0                              |
               charIndex     :                                                 |

              integer                                                          |
                                                                               |

              end                                                              |
                                                                               |

              end-integer                                                      |
                        ( end-1 abcdc)                                         |

               charIndex  0                                                    |

       string is class ?-strict? ?-failindex varname? string                   |
               string  1     0 -strict 0     1  -failindex  0      varname   1 |
              varname     ():                                                  |

              alnum                                                            |
                         Unicode                                               |

              alpha                                                            |
                         Unicode                                               |

              ascii                                                            |
                         \u0080 ( 7-bit ascii )                                |

              boolean                                                          |
                        Tcl_GetBoolean                                         |

              control                                                          |
                         Unicode                                               |

              digit                                                            |
                         Unicode  [0-9]                                        |

              double                                                           |
                         Tcl  / 0  varname  -1                                 |

              false                                                            |
                        Tcl_GetBoolean                                         |

              graph                                                            |
                         Unicode                                               |

              integer                                                          |
                         Tcl / 0  varname  -1                                  |

              lower                                                            |
                         Unicode .                                             |

              print                                                            |
                         Unicode                                               |

              punct                                                            |
                         Unicode                                               |

              space                                                            |
                         Unicode                                               |

              true                                                             |
                        Tcl_GetBoolean                                         |

              upper                                                            |
                         Unicode                                               |

              wordchar                                                         |
                         Unicode  Unicode  ()                                  |

              xdigit                                                           |
                         ([0-9A-Fa-f]).                                        |

               booleantrue  false  0 varname  0 boolean ()                     |

       string last string1 string2 ?startIndex?                                |
                string2  string1      string2      -1  startIndex( index     ) |
              string2  startIndex                                              |
                     string last a 0a23456789abcdef 15                         |
               10,                                                             |
                     string last a 0a23456789abcdef 9                          |
               1.                                                              |

       string length string
               string                                                          |

       string map ?-nocase? charMap string                                     |
               charMap - string     charMap  key value key value  ...    array |
              get  -nocasekey  value  string (iterate)                         |
                     string map {abc 1 ab 2 a 3 1 0} 1abcaababcabababc         |
               01321221.                                                       |

       string match ?-nocase? pattern string                                   |
               pattern  string 1 0  -nocase  pattern :                         |

              *          string

              ?          string

              [chars]      chars    chars    x-y    x   y,   -nocase   {[A-z]} |
                        '_'('_''Z''a') -nocase  {[A-Za-z]} ()

              \x         x pattern  *?[]\

       string range string first last
               string  first  last   0  index  first  last  first   last   end |
              first  last                                                      |

       string repeat string count                                              |
               string  count                                                   |

       string replace string first last ?newstring?                            |
                string  first   last  0      index      first  last  newstring |
              first      last      end  first      last   last      0          |

       string tolower string ?first? ?last?                                    |
               string ()     first     last()     index  first  last           |

       string totitle string ?first? ?last?                                    |
               string  string      Unicode ()     first      last()      index |
              first  last                                                      |

       string toupper string ?first? ?last?                                    |
               string ()     first     last()     index  first  last

       string trim string ?chars?
               string      chars      chars     (tab)

       string trimleft string ?chars?
               string      chars      chars     (tab)

       string trimright string ?chars?
               string      chars      chars     (tab)                          |

       string wordend string charIndex                                         |
                string   charIndex      index      charIndex      alphanumeric |
              (Unicode )(Unicode )                                             |

       string wordstart string charIndex                                       |
               string  charIndex   index    charIndex   alphanumeric  (Unicode |
              )(Unicode )

 SEE ALSO
       expr(n), list(n)

 KEYWORDS
       case  conversion,  compare, index, match, pattern, string, word, equal,
       ctype

[]


[]

       2001/11/15

 Linux  man :
       http://cmpp.linuxforum.net