[svn:parrot] r45544 - branches/immutable_strings_part1/src/string/charset
bacek at svn.parrot.org
bacek at svn.parrot.org
Sat Apr 10 23:46:12 UTC 2010
Author: bacek
Date: Sat Apr 10 23:46:12 2010
New Revision: 45544
URL: https://trac.parrot.org/parrot/changeset/45544
Log:
Update binary charset case-changing functions.
Modified:
branches/immutable_strings_part1/src/string/charset/binary.c
Modified: branches/immutable_strings_part1/src/string/charset/binary.c
==============================================================================
--- branches/immutable_strings_part1/src/string/charset/binary.c Sat Apr 10 23:46:00 2010 (r45543)
+++ branches/immutable_strings_part1/src/string/charset/binary.c Sat Apr 10 23:46:12 2010 (r45544)
@@ -51,10 +51,12 @@
static STRING* decompose(PARROT_INTERP, SHIM(STRING *source_string))
__attribute__nonnull__(1);
-static void downcase(PARROT_INTERP, SHIM(STRING *source_string))
+PARROT_CANNOT_RETURN_NULL
+static STRING* downcase(PARROT_INTERP, SHIM(STRING *source_string))
__attribute__nonnull__(1);
-static void downcase_first(PARROT_INTERP, SHIM(STRING *source_string))
+PARROT_CANNOT_RETURN_NULL
+static STRING* downcase_first(PARROT_INTERP, SHIM(STRING *source_string))
__attribute__nonnull__(1);
static INTVAL find_cclass(SHIM_INTERP,
@@ -88,10 +90,12 @@
static STRING * string_from_codepoint(PARROT_INTERP, UINTVAL codepoint)
__attribute__nonnull__(1);
-static void titlecase(PARROT_INTERP, SHIM(STRING *source_string))
+PARROT_CANNOT_RETURN_NULL
+static STRING* titlecase(PARROT_INTERP, SHIM(STRING *source_string))
__attribute__nonnull__(1);
-static void titlecase_first(PARROT_INTERP, SHIM(STRING *source_string))
+PARROT_CANNOT_RETURN_NULL
+static STRING* titlecase_first(PARROT_INTERP, SHIM(STRING *source_string))
__attribute__nonnull__(1);
PARROT_CANNOT_RETURN_NULL
@@ -99,10 +103,12 @@
__attribute__nonnull__(1)
__attribute__nonnull__(2);
-static void upcase(PARROT_INTERP, SHIM(STRING *source_string))
+PARROT_CANNOT_RETURN_NULL
+static STRING* upcase(PARROT_INTERP, SHIM(STRING *source_string))
__attribute__nonnull__(1);
-static void upcase_first(PARROT_INTERP, SHIM(STRING *source_string))
+PARROT_CANNOT_RETURN_NULL
+static STRING* upcase_first(PARROT_INTERP, SHIM(STRING *source_string))
__attribute__nonnull__(1);
static UINTVAL validate(SHIM_INTERP, SHIM(STRING *source_string));
@@ -238,7 +244,7 @@
/*
-=item C<static void upcase(PARROT_INTERP, STRING *source_string)>
+=item C<static STRING* upcase(PARROT_INTERP, STRING *source_string)>
Throws an exception because we cannot convert a binary string to
upper case.
@@ -247,7 +253,8 @@
*/
-static void
+PARROT_CANNOT_RETURN_NULL
+static STRING*
upcase(PARROT_INTERP, SHIM(STRING *source_string))
{
ASSERT_ARGS(upcase)
@@ -256,7 +263,7 @@
/*
-=item C<static void downcase(PARROT_INTERP, STRING *source_string)>
+=item C<static STRING* downcase(PARROT_INTERP, STRING *source_string)>
Throws an exception because we cannot convert a binary string to
lower-case.
@@ -265,7 +272,8 @@
*/
-static void
+PARROT_CANNOT_RETURN_NULL
+static STRING*
downcase(PARROT_INTERP, SHIM(STRING *source_string))
{
ASSERT_ARGS(downcase)
@@ -274,7 +282,7 @@
/*
-=item C<static void titlecase(PARROT_INTERP, STRING *source_string)>
+=item C<static STRING* titlecase(PARROT_INTERP, STRING *source_string)>
Throws an exception because we cannot convert a binary string to
title case.
@@ -283,7 +291,8 @@
*/
-static void
+PARROT_CANNOT_RETURN_NULL
+static STRING*
titlecase(PARROT_INTERP, SHIM(STRING *source_string))
{
ASSERT_ARGS(titlecase)
@@ -292,7 +301,7 @@
/*
-=item C<static void upcase_first(PARROT_INTERP, STRING *source_string)>
+=item C<static STRING* upcase_first(PARROT_INTERP, STRING *source_string)>
Throws an exception because we cannot set the first "character" of the
binary string to uppercase.
@@ -301,7 +310,8 @@
*/
-static void
+PARROT_CANNOT_RETURN_NULL
+static STRING*
upcase_first(PARROT_INTERP, SHIM(STRING *source_string))
{
ASSERT_ARGS(upcase_first)
@@ -310,7 +320,7 @@
/*
-=item C<static void downcase_first(PARROT_INTERP, STRING *source_string)>
+=item C<static STRING* downcase_first(PARROT_INTERP, STRING *source_string)>
Throws an exception because we cannot set the first "character"
of the binary string to lowercase.
@@ -319,7 +329,8 @@
*/
-static void
+PARROT_CANNOT_RETURN_NULL
+static STRING*
downcase_first(PARROT_INTERP, SHIM(STRING *source_string))
{
ASSERT_ARGS(downcase_first)
@@ -328,7 +339,7 @@
/*
-=item C<static void titlecase_first(PARROT_INTERP, STRING *source_string)>
+=item C<static STRING* titlecase_first(PARROT_INTERP, STRING *source_string)>
Throws an exception because we can't convert the first "character"
of binary data to title case.
@@ -337,7 +348,8 @@
*/
-static void
+PARROT_CANNOT_RETURN_NULL
+static STRING*
titlecase_first(PARROT_INTERP, SHIM(STRING *source_string))
{
ASSERT_ARGS(titlecase_first)
More information about the parrot-commits
mailing list