/* Long options. */
static const struct option long_options[] =
-{
+{
{ "help", no_argument, NULL, 'h' },
{ "split-merged-entry", no_argument, NULL, CHAR_MAX + 1 },
{ "version", no_argument, NULL, 'V' },
1.4 48.0
1.5 49.0
1.6 50.0
- target_version can also be given as NULL. In this case, the required
+ target_version can also be given as NULL. In this case, the required
target_version is determined from the found JVM (see javaversion.h).
Specifying target_version is useful when building a library (.jar) that is
useful outside the given package. Passing target_version = NULL is useful
DOUBLE
FLOOR_BASED_ROUND (DOUBLE x)
{
- if (x >= L_(0.0))
+ if (x >= L_(0.0))
{
DOUBLE y = FLOOR (x);
if (x - y >= L_(0.5))
#include <ctype.h>
#include <string.h>
-#if HAVE_MBRTOWC
+#if HAVE_MBRTOWC
# include <stddef.h>
# include <stdlib.h>
# include "mbchar.h"
trim2(const char *s, int how)
{
char *d;
-
+
d = strdup(s);
if (!d)
xalloc_die();
-
+
#if HAVE_MBRTOWC
if (MB_CUR_MAX > 1)
{
mbi_iterator_t i;
-
+
/* Trim leading whitespaces. */
- if (how != TRIM_TRAILING)
+ if (how != TRIM_TRAILING)
{
mbi_init (i, d, strlen (d));
-
+
for (; mbi_avail (i) && mb_isspace (mbi_cur (i)); mbi_advance (i))
;
-
+
memmove (d, mbi_cur_ptr (i), strlen (mbi_cur_ptr (i)) + 1);
}
-
+
/* Trim trailing whitespaces. */
- if (how != TRIM_LEADING)
+ if (how != TRIM_LEADING)
{
int state = 0;
char *r IF_LINT (= NULL); /* used only while state = 2 */
-
+
mbi_init (i, d, strlen (d));
- for (; mbi_avail (i); mbi_advance (i))
+ for (; mbi_avail (i); mbi_advance (i))
{
- if (state == 0 && mb_isspace (mbi_cur (i)))
+ if (state == 0 && mb_isspace (mbi_cur (i)))
{
state = 0;
continue;
}
-
+
if (state == 0 && !mb_isspace (mbi_cur (i)))
{
state = 1;
continue;
}
-
+
if (state == 1 && !mb_isspace (mbi_cur (i)))
{
state = 1;
continue;
}
-
- if (state == 1 && mb_isspace (mbi_cur (i)))
+
+ if (state == 1 && mb_isspace (mbi_cur (i)))
{
state = 2;
r = (char *) mbi_cur_ptr (i);
}
- else if (state == 2 && mb_isspace (mbi_cur (i)))
+ else if (state == 2 && mb_isspace (mbi_cur (i)))
{
state = 2;
- }
- else
+ }
+ else
{
state = 1;
}
}
-
- if (state == 2)
+
+ if (state == 2)
*r = '\0';
}
}
#endif /* HAVE_MBRTOWC */
{
char *p;
-
+
/* Trim leading whitespaces. */
if (how != TRIM_TRAILING) {
for (p = d; *p && isspace ((unsigned char) *p); p++)
- ;
+ ;
memmove (d, p, strlen (p) + 1);
}
*p = '\0';
}
}
-
+
return d;
}
-
+
unilbrk/base
unilbrk/tables
utf16-ucs4-unsafe
-streq
+streq
configure.ac:
Depends-on:
unilbrk/base
unilbrk/tables
-streq
+streq
configure.ac:
unilbrk/base
unilbrk/tables
utf8-ucs4-unsafe
-streq
+streq
configure.ac:
/* Get the two reference implementations of round under the names
round_reference1 and round_reference2.
-
+
round.c will #include <config.h> for us. */
#define FLOOR_BASED_ROUND round_reference1
#define FLOOR_FREE_ROUND round_reference2
{
if (ISNAN (y0) ? ISNAN (y1) : y0 == y1)
return true;
- else
+ else
{
fprintf (stderr, "%s: "FUNCTION"(%g(%a)) = %g(%a) or %g(%a)?\n",
message, x, x, y0, y0, y1, y1);
DOUBLE ref1 = round_reference1 (x);
DOUBLE ref2 = round_reference2 (x);
DOUBLE result = ROUND (x);
-
+
/* If the reference implementations disagree, bail out immediately. */
- if (!equal ("reference implementations disagree", x, ref1, ref2))
+ if (!equal ("reference implementations disagree", x, ref1, ref2))
exit (EXIT_FAILURE);
/* If the actual implementation is wrong, return an error code. */
uc_general_category_and (
uc_general_category_or (UC_LETTER, UC_DECIMAL_DIGIT_NUMBER),
uc_general_category_or (UC_UPPERCASE_LETTER, UC_NUMBER));
-
+
ASSERT (uc_is_general_category ('A', ct));
ASSERT (!uc_is_general_category ('a', ct));
ASSERT (uc_is_general_category ('7', ct));
uc_general_category_and_not (
uc_general_category_or (UC_LETTER, UC_NUMBER),
uc_general_category_or (UC_UPPERCASE_LETTER, UC_DECIMAL_DIGIT_NUMBER));
-
+
ASSERT (!uc_is_general_category ('A', ct));
ASSERT (uc_is_general_category ('a', ct));
ASSERT (!uc_is_general_category ('7', ct));