~ubuntu-branches/ubuntu/trusty/ruby1.9/trusty

« back to all changes in this revision

Viewing changes to enc/iso_8859_4.c

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2008-05-16 12:37:06 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20080516123706-r4llcdfd35aobrjv
Tags: 1.9.0.1-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Robustify check for target_os, fixing build failure on lpia.
* debian/control:
  - ruby1.9 pkg: moved rdoc1.9 suggestion to depends. (LP: #228345)

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
 
106
106
static int
107
107
mbc_case_fold(OnigCaseFoldType flag,
108
 
              const UChar** pp, const UChar* end, UChar* lower,
109
 
              OnigEncoding enc)
 
108
              const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower,
 
109
              OnigEncoding enc ARG_UNUSED)
110
110
{
111
111
  const UChar* p = *pp;
112
112
 
148
148
#endif
149
149
 
150
150
static int
151
 
is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
 
151
is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc ARG_UNUSED)
152
152
{
153
153
  if (code < 256)
154
154
    return ENC_IS_ISO_8859_4_CTYPE(code, ctype);
203
203
static int
204
204
apply_all_case_fold(OnigCaseFoldType flag,
205
205
                    OnigApplyAllCaseFoldFunc f, void* arg,
206
 
                    OnigEncoding enc)
 
206
                    OnigEncoding enc ARG_UNUSED)
207
207
{
208
208
  return onigenc_apply_all_case_fold_with_map(
209
209
             sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
214
214
get_case_fold_codes_by_str(OnigCaseFoldType flag,
215
215
                           const OnigUChar* p, const OnigUChar* end,
216
216
                           OnigCaseFoldCodeItem items[],
217
 
                           OnigEncoding enc)
 
217
                           OnigEncoding enc ARG_UNUSED)
218
218
{
219
219
  return onigenc_get_case_fold_codes_by_str_with_map(
220
220
             sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
239
239
  onigenc_single_byte_left_adjust_char_head,
240
240
  onigenc_always_true_is_allowed_reverse_match
241
241
};
 
242
ENC_ALIAS("ISO8859-4", "ISO-8859-4");