summaryrefslogtreecommitdiff
path: root/tests/testscript.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-01-16 20:07:35 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-01-16 20:07:35 +0000
commit80e647a8dbc97662b9d966c0f7a8e1aedea89eed (patch)
treed3a322c28112b7623765847aa32e8e319c576b45 /tests/testscript.c
parente6b83e4264b4ad2ab73a3239d902b4064c75634d (diff)
downloadpango-80e647a8dbc97662b9d966c0f7a8e1aedea89eed.tar.gz
*.c, *.h: Drop trailing whitespace.
2007-01-16 Behdad Esfahbod <behdad@gnome.org> *.c, *.h: Drop trailing whitespace. svn path=/trunk/; revision=2163
Diffstat (limited to 'tests/testscript.c')
-rw-r--r--tests/testscript.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/testscript.c b/tests/testscript.c
index ebe6891d..d2ecaa8b 100644
--- a/tests/testscript.c
+++ b/tests/testscript.c
@@ -38,7 +38,7 @@
* copyright notice(s) and this permission notice appear in all copies of
* the Software and that both the above copyright notice(s) and this
* permission notice appear in supporting documentation.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
@@ -48,7 +48,7 @@
* FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
+ *
* Except as contained in this notice, the name of a copyright holder
* shall not be used in advertising or otherwise to promote the sale, use
* or other dealings in this Software without prior written authorization
@@ -90,14 +90,14 @@ unescape (const char *text)
for (p = text; *p; p = g_utf8_next_char (p))
{
gunichar ch = g_utf8_get_char (p);
-
+
if (escaped)
{
if (ch == 'u' || ch == 'U')
{
int n_chars = ch == 'u' ? 4 : 8;
int i;
-
+
ch = 0;
for (i = 0; i < n_chars; i++)
{
@@ -190,7 +190,7 @@ test_script_iter (void)
const char *end;
PangoScript script;
unsigned int i;
-
+
for (i = 0; i < G_N_ELEMENTS(test_data); i++)
{
test_data[i].run_text = unescape (test_data[i].run_text_escaped);
@@ -201,18 +201,18 @@ test_script_iter (void)
#ifdef VERBOSE
g_print ("Total length: %d\n", all->len);
-#endif
+#endif
pos = all->str;
for (i = 0; i < G_N_ELEMENTS(test_data); i++)
{
char *next_pos = pos + strlen (test_data[i].run_text);
gboolean result;
-
+
pango_script_iter_get_range (iter, &start, &end, &script);
#ifdef VERBOSE
g_print ("Range: %d-%d: %d\n", start - all->str, end - all->str, script);
-#endif
+#endif
ASSERT (start == pos);
ASSERT (end == next_pos);
@@ -230,18 +230,18 @@ test_script_iter (void)
* Test an empty string.
*/
iter = pango_script_iter_new (all->str, 0);
-
+
pango_script_iter_get_range (iter, &start, &end, &script);
-
+
ASSERT (start == all->str);
ASSERT (end == all->str);
ASSERT (script == PANGO_SCRIPT_COMMON);
ASSERT (!pango_script_iter_next (iter));
-
+
pango_script_iter_free (iter);
/* Cleanup */
-
+
for (i = 0; i < G_N_ELEMENTS (test_data); i++)
g_free (test_data[i].run_text);