122 lines
8.9 KiB
HTML
122 lines
8.9 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<!-- Created by GNU Texinfo 7.1, https://www.gnu.org/software/texinfo/ -->
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<!-- This manual documents Guile version 3.0.10.
|
|
|
|
Copyright (C) 1996-1997, 2000-2005, 2009-2023 Free Software Foundation,
|
|
Inc.
|
|
|
|
Copyright (C) 2021 Maxime Devos
|
|
|
|
Copyright (C) 2024 Tomas Volf
|
|
|
|
|
|
Permission is granted to copy, distribute and/or modify this document
|
|
under the terms of the GNU Free Documentation License, Version 1.3 or
|
|
any later version published by the Free Software Foundation; with no
|
|
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
|
|
copy of the license is included in the section entitled "GNU Free
|
|
Documentation License." -->
|
|
<title>Character Case Mapping (Guile Reference Manual)</title>
|
|
|
|
<meta name="description" content="Character Case Mapping (Guile Reference Manual)">
|
|
<meta name="keywords" content="Character Case Mapping (Guile Reference Manual)">
|
|
<meta name="resource-type" content="document">
|
|
<meta name="distribution" content="global">
|
|
<meta name="Generator" content=".texi2any-real">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
|
|
<link href="index.html" rel="start" title="Top">
|
|
<link href="Concept-Index.html" rel="index" title="Concept Index">
|
|
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
|
|
<link href="Internationalization.html" rel="up" title="Internationalization">
|
|
<link href="Number-Input-and-Output.html" rel="next" title="Number Input and Output">
|
|
<link href="Text-Collation.html" rel="prev" title="Text Collation">
|
|
<style type="text/css">
|
|
<!--
|
|
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
|
|
span:hover a.copiable-link {visibility: visible}
|
|
strong.def-name {font-family: monospace; font-weight: bold; font-size: larger}
|
|
-->
|
|
</style>
|
|
<link rel="stylesheet" type="text/css" href="https://www.gnu.org/software/gnulib/manual.css">
|
|
|
|
|
|
</head>
|
|
|
|
<body lang="en">
|
|
<div class="subsection-level-extent" id="Character-Case-Mapping">
|
|
<div class="nav-panel">
|
|
<p>
|
|
Next: <a href="Number-Input-and-Output.html" accesskey="n" rel="next">Number Input and Output</a>, Previous: <a href="Text-Collation.html" accesskey="p" rel="prev">Text Collation</a>, Up: <a href="Internationalization.html" accesskey="u" rel="up">Support for Internationalization</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html" title="Index" rel="index">Index</a>]</p>
|
|
</div>
|
|
<hr>
|
|
<h4 class="subsection" id="Character-Case-Mapping-1"><span>6.25.3 Character Case Mapping<a class="copiable-link" href="#Character-Case-Mapping-1"> ¶</a></span></h4>
|
|
|
|
<p>The procedures below provide support for “character case mapping”,
|
|
i.e., to convert characters or strings to their upper-case or
|
|
lower-case equivalent. Note that SRFI-13 provides procedures that
|
|
look similar (see <a class="pxref" href="Alphabetic-Case-Mapping.html">Alphabetic Case Mapping</a>). However, the SRFI-13
|
|
procedures are locale-independent. Therefore, they do not take into
|
|
account specificities of the customs in use in a particular language
|
|
or region of the world. For instance, while most languages using the
|
|
Latin alphabet map lower-case letter “i” to upper-case letter “I”,
|
|
Turkish maps lower-case “i” to “Latin capital letter I with dot
|
|
above”. The following procedures allow programmers to provide
|
|
idiomatic character mapping.
|
|
</p>
|
|
<dl class="first-deffn">
|
|
<dt class="deffn" id="index-char_002dlocale_002ddowncase"><span class="category-def">Scheme Procedure: </span><span><strong class="def-name">char-locale-downcase</strong> <var class="def-var-arguments">chr [locale]</var><a class="copiable-link" href="#index-char_002dlocale_002ddowncase"> ¶</a></span></dt>
|
|
<dt class="deffnx def-cmd-deffn" id="index-scm_005fchar_005flocale_005fupcase"><span class="category-def">C Function: </span><span><strong class="def-name">scm_char_locale_upcase</strong> <var class="def-var-arguments">(chr, locale)</var><a class="copiable-link" href="#index-scm_005fchar_005flocale_005fupcase"> ¶</a></span></dt>
|
|
<dd><p>Return the lowercase character that corresponds to <var class="var">chr</var> according
|
|
to either <var class="var">locale</var> or the current locale.
|
|
</p></dd></dl>
|
|
|
|
<dl class="first-deffn">
|
|
<dt class="deffn" id="index-char_002dlocale_002dupcase"><span class="category-def">Scheme Procedure: </span><span><strong class="def-name">char-locale-upcase</strong> <var class="def-var-arguments">chr [locale]</var><a class="copiable-link" href="#index-char_002dlocale_002dupcase"> ¶</a></span></dt>
|
|
<dt class="deffnx def-cmd-deffn" id="index-scm_005fchar_005flocale_005fdowncase"><span class="category-def">C Function: </span><span><strong class="def-name">scm_char_locale_downcase</strong> <var class="def-var-arguments">(chr, locale)</var><a class="copiable-link" href="#index-scm_005fchar_005flocale_005fdowncase"> ¶</a></span></dt>
|
|
<dd><p>Return the uppercase character that corresponds to <var class="var">chr</var> according
|
|
to either <var class="var">locale</var> or the current locale.
|
|
</p></dd></dl>
|
|
|
|
<dl class="first-deffn">
|
|
<dt class="deffn" id="index-char_002dlocale_002dtitlecase"><span class="category-def">Scheme Procedure: </span><span><strong class="def-name">char-locale-titlecase</strong> <var class="def-var-arguments">chr [locale]</var><a class="copiable-link" href="#index-char_002dlocale_002dtitlecase"> ¶</a></span></dt>
|
|
<dt class="deffnx def-cmd-deffn" id="index-scm_005fchar_005flocale_005ftitlecase"><span class="category-def">C Function: </span><span><strong class="def-name">scm_char_locale_titlecase</strong> <var class="def-var-arguments">(chr, locale)</var><a class="copiable-link" href="#index-scm_005fchar_005flocale_005ftitlecase"> ¶</a></span></dt>
|
|
<dd><p>Return the titlecase character that corresponds to <var class="var">chr</var> according
|
|
to either <var class="var">locale</var> or the current locale.
|
|
</p></dd></dl>
|
|
|
|
<dl class="first-deffn">
|
|
<dt class="deffn" id="index-string_002dlocale_002dupcase"><span class="category-def">Scheme Procedure: </span><span><strong class="def-name">string-locale-upcase</strong> <var class="def-var-arguments">str [locale]</var><a class="copiable-link" href="#index-string_002dlocale_002dupcase"> ¶</a></span></dt>
|
|
<dt class="deffnx def-cmd-deffn" id="index-scm_005fstring_005flocale_005fupcase"><span class="category-def">C Function: </span><span><strong class="def-name">scm_string_locale_upcase</strong> <var class="def-var-arguments">(str, locale)</var><a class="copiable-link" href="#index-scm_005fstring_005flocale_005fupcase"> ¶</a></span></dt>
|
|
<dd><p>Return a new string that is the uppercase version of <var class="var">str</var>
|
|
according to either <var class="var">locale</var> or the current locale.
|
|
</p></dd></dl>
|
|
|
|
<dl class="first-deffn">
|
|
<dt class="deffn" id="index-string_002dlocale_002ddowncase"><span class="category-def">Scheme Procedure: </span><span><strong class="def-name">string-locale-downcase</strong> <var class="def-var-arguments">str [locale]</var><a class="copiable-link" href="#index-string_002dlocale_002ddowncase"> ¶</a></span></dt>
|
|
<dt class="deffnx def-cmd-deffn" id="index-scm_005fstring_005flocale_005fdowncase"><span class="category-def">C Function: </span><span><strong class="def-name">scm_string_locale_downcase</strong> <var class="def-var-arguments">(str, locale)</var><a class="copiable-link" href="#index-scm_005fstring_005flocale_005fdowncase"> ¶</a></span></dt>
|
|
<dd><p>Return a new string that is the down-case version of <var class="var">str</var>
|
|
according to either <var class="var">locale</var> or the current locale.
|
|
</p></dd></dl>
|
|
|
|
<dl class="first-deffn">
|
|
<dt class="deffn" id="index-string_002dlocale_002dtitlecase"><span class="category-def">Scheme Procedure: </span><span><strong class="def-name">string-locale-titlecase</strong> <var class="def-var-arguments">str [locale]</var><a class="copiable-link" href="#index-string_002dlocale_002dtitlecase"> ¶</a></span></dt>
|
|
<dt class="deffnx def-cmd-deffn" id="index-scm_005fstring_005flocale_005ftitlecase"><span class="category-def">C Function: </span><span><strong class="def-name">scm_string_locale_titlecase</strong> <var class="def-var-arguments">(str, locale)</var><a class="copiable-link" href="#index-scm_005fstring_005flocale_005ftitlecase"> ¶</a></span></dt>
|
|
<dd><p>Return a new string that is the titlecase version of <var class="var">str</var>
|
|
according to either <var class="var">locale</var> or the current locale.
|
|
</p></dd></dl>
|
|
|
|
</div>
|
|
<hr>
|
|
<div class="nav-panel">
|
|
<p>
|
|
Next: <a href="Number-Input-and-Output.html">Number Input and Output</a>, Previous: <a href="Text-Collation.html">Text Collation</a>, Up: <a href="Internationalization.html">Support for Internationalization</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html" title="Index" rel="index">Index</a>]</p>
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|