{"id":7336,"date":"2022-12-20T19:37:44","date_gmt":"2022-12-20T22:37:44","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/tcl_utftoupper-man3-3\/"},"modified":"2022-12-20T19:37:44","modified_gmt":"2022-12-20T22:37:44","slug":"tcl_utftoupper-man3-3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/tcl_utftoupper-man3-3\/","title":{"rendered":"Tcl_UtfToUpper (man3)"},"content":{"rendered":"<h1 align=\"center\">Tcl_UtfToUpper<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#ARGUMENTS\">ARGUMENTS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#BUGS\">BUGS<\/a><br \/> <a href=\"#KEYWORDS\">KEYWORDS<\/a> <\/p>\n<hr>\n<p>______________________________________________________________________________<\/p>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Tcl_UniCharToUpper, Tcl_UniCharToLower, Tcl_UniCharToTitle, Tcl_UtfToUpper, Tcl_UtfToLower, Tcl_UtfToTitle \u2212 routines for manipulating the case of Unicode characters and UTF-8 strings<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>#include <tcl.h><\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Tcl_UniChar <b><br \/> Tcl_UniCharToUpper<\/b>(<i>ch<\/i>)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Tcl_UniChar <b><br \/> Tcl_UniCharToLower<\/b>(<i>ch<\/i>)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Tcl_UniChar <b><br \/> Tcl_UniCharToTitle<\/b>(<i>ch<\/i>)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">int <b><br \/> Tcl_UtfToUpper<\/b>(<i>str<\/i>)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">int <b><br \/> Tcl_UtfToLower<\/b>(<i>str<\/i>)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">int <b><br \/> Tcl_UtfToTitle<\/b>(<i>str<\/i>)<\/p>\n<h2>ARGUMENTS <a name=\"ARGUMENTS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"27%\">\n<p style=\"margin-top: 1em\">int <i>ch<\/i> (in)<\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"52%\">\n<p style=\"margin-top: 1em\">The Unicode character to be converted.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"27%\">\n<p>char <i>*str<\/i> (in\/out)<\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"52%\">\n<p>Pointer to UTF-8 string to be converted in place.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:48%;\">______________________________________________________________________________<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The first three routines convert the case of individual Unicode characters:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If <i>ch<\/i> represents a lower-case character, <b>Tcl_UniCharToUpper<\/b> returns the corresponding upper-case character. If no upper-case character is defined, it returns the character unchanged.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If <i>ch<\/i> represents an upper-case character, <b>Tcl_UniCharToLower<\/b> returns the corresponding lower-case character. If no lower-case character is defined, it returns the character unchanged.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If <i>ch<\/i> represents a lower-case character, <b>Tcl_UniCharToTitle<\/b> returns the corresponding title-case character. If no title-case character is defined, it returns the corresponding upper-case character. If no upper-case character is defined, it returns the character unchanged. Title-case is defined for a small number of characters that have a different appearance when they are at the beginning of a capitalized word.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The next three routines convert the case of UTF-8 strings in place in memory:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Tcl_UtfToUpper<\/b> changes every UTF-8 character in <i>str<\/i> to upper-case. Because changing the case of a character may change its size, the byte offset of each character in the resulting string may differ from its original location. <b>Tcl_UtfToUpper<\/b> writes a null byte at the end of the converted string. <b>Tcl_UtfToUpper<\/b> returns the new length of the string in bytes. This new length is guaranteed to be no longer than the original string length.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Tcl_UtfToLower<\/b> is the same as <b>Tcl_UtfToUpper<\/b> except it turns each character in the string into its lower-case equivalent.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Tcl_UtfToTitle<\/b> is the same as <b>Tcl_UtfToUpper<\/b> except it turns the first character in the string into its title-case equivalent and all following characters into their lower-case equivalents.<\/p>\n<h2>BUGS <a name=\"BUGS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">At this time, the case conversions are only defined for the Unicode plane 0 characters. The result for Unicode characters above 0xffff is undefined, but &#8211; actually &#8211; only the lower 16 bits of the character value is handled.<\/p>\n<h2>KEYWORDS <a name=\"KEYWORDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">utf, unicode, toupper, tolower, totitle, case<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  Tcl_UniCharToUpper, Tcl_UniCharToLower, Tcl_UniCharToTitle, Tcl_UtfToUpper, Tcl_UtfToLower, Tcl_UtfToTitle \u2212 routines for manipulating the case of Unicode characters and UTF-8 strings <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2536],"tags":[2538,3007,3654],"class_list":["post-7336","post","type-post","status-publish","format-standard","hentry","category-3-llamadas-de-bibliotecas","tag-2538","tag-man3","tag-tcl_utftoupper"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=7336"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7336\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=7336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=7336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=7336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}