~ubuntu-branches/ubuntu/trusty/lifelines/trusty

« back to all changes in this revision

Viewing changes to src/stdlib/stdstrng.c

  • Committer: Bazaar Package Importer
  • Author(s): Felipe Augusto van de Wiel (faw)
  • Date: 2007-05-23 23:49:53 UTC
  • mfrom: (3.1.3 edgy)
  • Revision ID: james.westby@ubuntu.com-20070523234953-ogno9rnbmth61i7p
Tags: 3.0.50-2etch1
* Changing docs/ll-reportmanual.xml and docs/ll-userguide.xml to fix
  documentation build problems (Closes: #418347).

* lifelines-reports
  - Adding a dependency to lifelines >= 3.0.50 to prevent file conflict.
    (Closes: #405500).

* Updating French translation. Thanks to Bernard Adrian. (Closes: #356671).

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
/* llstdlib.h pulls in standard.h, config.h, sys_inc.h */
34
34
#include "arch.h" /* vsnprintf */
35
35
#include "mystring.h"
 
36
#include "mychar.h"
36
37
 
37
38
 
38
39
/*********************************************
39
40
 * external/imported variables
40
41
 *********************************************/
41
 
extern BOOLEAN opt_finnish;
 
42
extern BOOLEAN opt_mychar;
42
43
 
43
44
/*********************************************
44
45
 * local variables
126
127
BOOLEAN
127
128
isletter (INT c)
128
129
{
129
 
        if (opt_finnish) return lat1_isalpha(c);
 
130
        if (opt_mychar) return mych_isalpha(c);
130
131
#ifndef OS_NOCTYPE
131
132
        return isalpha(c);
132
133
#else
147
148
INT
148
149
ll_toupper (INT c)
149
150
{
150
 
        if (opt_finnish) return lat1_toupper(c);
 
151
        if (opt_mychar) return mych_toupper(c);
151
152
#ifndef OS_NOCTYPE
152
153
        /* use run-time library */
153
154
        if (islower(c)) return toupper(c);
163
164
INT
164
165
ll_tolower (INT c)
165
166
{
166
 
        if (opt_finnish) return lat1_tolower(c);
 
167
        if (opt_mychar) return mych_tolower(c);
167
168
#ifndef OS_NOCTYPE
168
169
        /* use run-time library */
169
170
        if (isupper(c)) return tolower(c);
266
267
 * Created: 2002/10/19, Perry Rapp
267
268
 *================================*/
268
269
INT
269
 
ll_atoi (STRING str, INT defval)
 
270
ll_atoi (CNSTRING str, INT defval)
270
271
{
271
272
        return str ? atoi(str) : defval;
272
273
}