diff options
| author | Jörg Frings-Fürst <debian@jff.email> | 2019-11-29 11:26:57 +0100 | 
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff.email> | 2019-11-29 11:26:57 +0100 | 
| commit | 7f4e90f2759d6a15812172ee19f3ad5b58940beb (patch) | |
| tree | 5f90c63b8ba73f4ecd23d6e642c1ab34dccea033 /src/utf8.c | |
| parent | 68d1ec60c90d27c511d51ce0bef44b132a7ddf11 (diff) | |
| parent | 7e149a97d276ce3b4c5e34f965766c8e40e03fef (diff) | |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/utf8.c')
| -rw-r--r-- | src/utf8.c | 29 | 
1 files changed, 1 insertions, 28 deletions
| @@ -2,7 +2,7 @@    utf8.c -  Oniguruma (regular expression library)  **********************************************************************/  /*- - * Copyright (c) 2002-2019  K.Kosako  <sndgk393 AT ybb DOT ne DOT jp> + * Copyright (c) 2002-2019  K.Kosako   * All rights reserved.   *   * Redistribution and use in source and binary forms, with or without @@ -97,33 +97,6 @@ is_valid_mbc_string(const UChar* p, const UChar* end)    return TRUE;  } -#if 0 -static int -is_mbc_newline(const UChar* p, const UChar* end) -{ -  if (p < end) { -    if (*p == 0x0a) return 1; - -#ifdef USE_UNICODE_ALL_LINE_TERMINATORS -#ifndef USE_CRNL_AS_LINE_TERMINATOR -    if (*p == 0x0d) return 1; -#endif -    if (p + 1 < end) { -      if (*(p+1) == 0x85 && *p == 0xc2) /* U+0085 */ -        return 1; -      if (p + 2 < end) { -        if ((*(p+2) == 0xa8 || *(p+2) == 0xa9) -            && *(p+1) == 0x80 && *p == 0xe2)  /* U+2028, U+2029 */ -          return 1; -      } -    } -#endif -  } - -  return 0; -} -#endif -  static OnigCodePoint  mbc_to_code(const UChar* p, const UChar* end)  { | 
