

<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.amigaos.net/w/index.php?action=history&amp;feed=atom&amp;title=String_Functions</id>
	<title>String Functions - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.amigaos.net/w/index.php?action=history&amp;feed=atom&amp;title=String_Functions"/>
	<link rel="alternate" type="text/html" href="https://wiki.amigaos.net/w/index.php?title=String_Functions&amp;action=history"/>
	<updated>2026-05-27T21:10:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.amigaos.net/w/index.php?title=String_Functions&amp;diff=12519&amp;oldid=prev</id>
		<title>Costel Mincea: Text replacement - &quot;&lt;syntaxhighlight&gt;&quot; to &quot;&lt;syntaxhighlight lang=&quot;C&quot; line&gt;&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.amigaos.net/w/index.php?title=String_Functions&amp;diff=12519&amp;oldid=prev"/>
		<updated>2025-01-26T19:23:33Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;&amp;lt;syntaxhighlight&amp;gt;&amp;quot; to &amp;quot;&amp;lt;syntaxhighlight lang=&amp;quot;C&amp;quot; line&amp;gt;&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:23, 26 January 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 35:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 35:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;These functions operate in the same manner as their ANSI C equivalents, for the most part. For more information, see the &quot;Utility Library&quot; Autodocs in the SDK. Here is a simple example of the usage of the international string functions.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;These functions operate in the same manner as their ANSI C equivalents, for the most part. For more information, see the &quot;Utility Library&quot; Autodocs in the SDK. Here is a simple example of the usage of the international string functions.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; lang=&quot;C&quot; line&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/*&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/*&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** istr.c&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** istr.c&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Costel Mincea</name></author>
	</entry>
	<entry>
		<id>https://wiki.amigaos.net/w/index.php?title=String_Functions&amp;diff=7405&amp;oldid=prev</id>
		<title>Steven Solie: Created page with &quot;== String Functions ==  === Regular String Functions ===  These functions perform operations on strings with no regard for localization.  Currently implemented are:  {| class=...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.amigaos.net/w/index.php?title=String_Functions&amp;diff=7405&amp;oldid=prev"/>
		<updated>2014-03-26T21:10:25Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== String Functions ==  === Regular String Functions ===  These functions perform operations on strings with no regard for localization.  Currently implemented are:  {| class=...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== String Functions ==&lt;br /&gt;
&lt;br /&gt;
=== Regular String Functions ===&lt;br /&gt;
&lt;br /&gt;
These functions perform operations on strings with no regard for localization.&lt;br /&gt;
&lt;br /&gt;
Currently implemented are:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| Strlcat() || Length limited string concatenation.&lt;br /&gt;
|-&lt;br /&gt;
| Strlcpy() || Length limited string copy.&lt;br /&gt;
|-&lt;br /&gt;
| VASPrintf || Formatted output conversion with result are stored in dynamically allocated buffer.&lt;br /&gt;
|-&lt;br /&gt;
| VSNPrintf || Length limited formatted output conversion.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== International String Functions ===&lt;br /&gt;
&lt;br /&gt;
When the localization library is opened, these functions will be replaced by ones which will take the locale as defined by the user into account. This means that the compare order may change according to the locale, so care should be taken not to rely on obtaining specific compare sequences.&lt;br /&gt;
&lt;br /&gt;
Currently implemented are:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| Stricmp() || Compare string case-insensitive.&lt;br /&gt;
|-&lt;br /&gt;
| Strnicmp() || Compare string case-insensitive, with a specified length.&lt;br /&gt;
|-&lt;br /&gt;
| ToLower() || Convert a character to lower case.&lt;br /&gt;
|-&lt;br /&gt;
| ToUpper() || Convert a character to upper case.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
These functions operate in the same manner as their ANSI C equivalents, for the most part. For more information, see the &amp;quot;Utility Library&amp;quot; Autodocs in the SDK. Here is a simple example of the usage of the international string functions.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
** istr.c&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;exec/types.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;proto/exec.h&amp;gt;&lt;br /&gt;
#include &amp;lt;proto/utility.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
    CONST_STRPTR butter = &amp;quot;Bøtervløøt&amp;quot;;&lt;br /&gt;
    CONST_STRPTR bread = &amp;quot;Knåckerbrøt&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
    int32 result = IUtility-&amp;gt;Stricmp(butter, bread);&lt;br /&gt;
&lt;br /&gt;
    IDOS-&amp;gt;Printf(&amp;quot;comparing %s with %s yields %ld\n&amp;quot;, butter, bread, result );&lt;br /&gt;
&lt;br /&gt;
    result = IUtility-&amp;gt;Strnicmp(bread, butter, strlen(bread));&lt;br /&gt;
&lt;br /&gt;
    IDOS-&amp;gt;Printf(&amp;quot;comparing (with length) %s with %s yields %ld\n&amp;quot;, bread, butter, result );&lt;br /&gt;
&lt;br /&gt;
    uint8 ch1 = IUtility-&amp;gt;ToUpper(0xE6); /* ASCII character 230 ae ligature */&lt;br /&gt;
    uint8 ch2 = IUtility-&amp;gt;ToLower(0xD0); /* ASCII character 208 Icelandic Eth */&lt;br /&gt;
&lt;br /&gt;
    IDOS-&amp;gt;Printf(&amp;quot;Chars %lc %lc\n&amp;quot;, ch1, ch2);&lt;br /&gt;
    &lt;br /&gt;
    return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Steven Solie</name></author>
	</entry>
</feed>