diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2021-09-11 12:12:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-11 12:12:59 -0700 |
commit | 413e86869ef147431a78946562c125938b41f533 (patch) | |
tree | 4499c79a08aa7d0d3815c577f3ad98fcbdfe5b0b /src/nvim/ascii.h | |
parent | e31652879e4ecfc63b450626209d09df79336de0 (diff) | |
parent | 7175efb518d09aad59f7917c15b7c9752e9e320e (diff) | |
download | rneovim-413e86869ef147431a78946562c125938b41f533.tar.gz rneovim-413e86869ef147431a78946562c125938b41f533.tar.bz2 rneovim-413e86869ef147431a78946562c125938b41f533.zip |
Merge #14611 from seandewar/vim-8.1.1116
vim-patch:8.1.{1116,1188,1190,1355,1722,2035,2036,2038,2043},8.2.{0886,2309}
Diffstat (limited to 'src/nvim/ascii.h')
-rw-r--r-- | src/nvim/ascii.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/ascii.h b/src/nvim/ascii.h index f41068ea70..7b5e82cd3f 100644 --- a/src/nvim/ascii.h +++ b/src/nvim/ascii.h @@ -169,6 +169,14 @@ static inline bool ascii_isbdigit(int c) return (c == '0' || c == '1'); } +/// Checks if `c` is an octal digit, that is, 0-7. +/// +/// @see {ascii_isdigit} +static inline bool ascii_isodigit(int c) +{ + return (c >= '0' && c <= '7'); +} + /// Checks if `c` is a white-space character, that is, /// one of \f, \n, \r, \t, \v. /// |