⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 toupper.3

📁 tcl是工具命令语言
💻 3
字号:
'\"'\" Copyright (c) 1997 by Sun Microsystems, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" RCS: @(#) $Id: ToUpper.3,v 1.2 1999/04/16 00:46:33 stanton Exp $'\" .so man.macros.TH Tcl_UtfToUpper 3 "8.1" Tcl "Tcl Library Procedures".BS.SH NAMETcl_UniCharToUpper, Tcl_UniCharToLower, Tcl_UniCharToTitle, Tcl_UtfToUpper, Tcl_UtfToLower, Tcl_UtfToTitle \- routines for manipulating the case of Unicode characters and UTF-8 strings..SH SYNOPSIS.nf\fB#include <tcl.h>\fR.spTcl_UniChar\fBTcl_UniCharToUpper\fR(\fIch\fR).spTcl_UniChar\fBTcl_UniCharToLower\fR(\fIch\fR).spTcl_UniChar\fBTcl_UniCharToTitle\fR(\fIch\fR).spint\fBTcl_UtfToUpper\fR(\fIstr\fR).spint\fBTcl_UtfToLower\fR(\fIstr\fR).spint\fBTcl_UtfToTitle\fR(\fIstr\fR).SH ARGUMENTS.AS char *str in/out.AP int ch inThe Tcl_UniChar to be converted..AP char *str in/outPointer to UTF-8 string to be converted in place..BE.SH DESCRIPTION.PPThe first three routines convert the case of individual Unicode characters:.PPIf \fIch\fR represents a lower-case character,\fBTcl_UniCharToUpper\fR returns the corresponding upper-casecharacter.  If no upper-case character is defined, it returns thecharacter unchanged..PPIf \fIch\fR represents an upper-case character,\fBTcl_UniCharToLower\fR returns the corresponding lower-casecharacter.  If no lower-case character is defined, it returns thecharacter unchanged..PPIf \fIch\fR represents a lower-case character,\fBTcl_UniCharToTitle\fR returns the corresponding title-casecharacter.  If no title-case character is defined, it returns thecorresponding upper-case character.  If no upper-case character isdefined, it returns the character unchanged.  Title-case is definedfor a small number of characters that have a different appearance whenthey are at the beginning of a capitalized word..PPThe next three routines convert the case of UTF-8 strings in place inmemory:.PP\fBTcl_UtfToUpper\fR changes every UTF-8 character in \fIstr\fR toupper-case.  Because changing the case of a character may change itssize, the byte offset of each character in the resulting string maydiffer from its original location.  \fBTcl_UtfToUpper\fR writes a nullbyte at the end of the converted string.  \fBTcl_UtfToUpper\fR returnsthe new length of the string in bytes.  This new length is guaranteedto be no longer than the original string length..PP\fBTcl_UtfToLower\fR is the same as \fBTcl_UtfToUpper\fR except itturns each character in the string into its lower-case equivalent..PP\fBTcl_UtfToTitle\fR is the same as \fBTcl_UtfToUpper\fR except itturns the first character in the string into its title-case equivalentand all following characters into their lower-case equivalents..SH BUGS.PPAt this time, the case conversions are only defined for the ISO8859-1characters.  Unicode characters above 0x00ff are not modified by theseroutines..SH KEYWORDSutf, unicode, toupper, tolower, totitle, case

⌨️ 快捷键说明

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