Skip to content

Commit

Permalink
add (*SKIP) to UTF-16
Browse files Browse the repository at this point in the history
  • Loading branch information
kkos committed Jun 16, 2024
1 parent 2640194 commit c5e9cae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/utf16_be.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
utf16_be.c - Oniguruma (regular expression library)
**********************************************************************/
/*-
* Copyright (c) 2002-2020 K.Kosako
* Copyright (c) 2002-2024 K.Kosako
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -43,8 +43,9 @@ init(void)

enc = ONIG_ENCODING_UTF16_BE;

name = "\000F\000A\000I\000L\000\000"; BC0_P(name, fail);
name = "\000F\000A\000I\000L\000\000"; BC0_P(name, fail);
name = "\000M\000I\000S\000M\000A\000T\000C\000H\000\000"; BC0_P(name, mismatch);
name = "\000S\000K\000I\000P\000\000"; BC0_P(name, skip);

name = "\000M\000A\000X\000\000";
args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;
Expand Down
5 changes: 3 additions & 2 deletions src/utf16_le.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
utf16_le.c - Oniguruma (regular expression library)
**********************************************************************/
/*-
* Copyright (c) 2002-2023 K.Kosako
* Copyright (c) 2002-2024 K.Kosako
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -41,8 +41,9 @@ init(void)

enc = ONIG_ENCODING_UTF16_LE;

name = "F\000A\000I\000L\000\000\000"; BC0_P(name, fail);
name = "F\000A\000I\000L\000\000\000"; BC0_P(name, fail);
name = "M\000I\000S\000M\000A\000T\000C\000H\000\000\000"; BC0_P(name, mismatch);
name = "S\000K\000I\000P\000\000\000"; BC0_P(name, skip);

name = "M\000A\000X\000\000\000";
args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;
Expand Down

0 comments on commit c5e9cae

Please sign in to comment.