From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org> To: tarantool-patches@freelists.org Cc: kostja@tarantool.org Subject: [tarantool-patches] Re: [PATCH 2/7] lua: implement string.u_count Date: Thu, 26 Apr 2018 19:07:02 +0300 [thread overview] Message-ID: <19384f27-a45d-022d-7afc-1b1afb7cf719@tarantool.org> (raw) In-Reply-To: <a89c3b4d0946d32673fa3a6a4570a3002de4f81b.1524698920.git.v.shpilevoy@tarantool.org> Removed unused enum value. diff --git a/src/util.c b/src/util.c index 24dfe11ce..582fd69b0 100644 --- a/src/util.c +++ b/src/util.c @@ -329,10 +329,6 @@ enum u_count_class { U_COUNT_CLASS_LOWER_LETTER = 2, U_COUNT_CLASS_TITLE_LETTER = 4, U_COUNT_CLASS_DIGIT = 8, - - U_COUNT_LETTER = U_COUNT_CLASS_UPPER_LETTER | - U_COUNT_CLASS_LOWER_LETTER | - U_COUNT_CLASS_TITLE_LETTER, }; On 26/04/2018 02:29, Vladislav Shpilevoy wrote: > Lua can not calculate length of a unicode string correctly. But > Tarantool has ICU on board - lets use it to calculate length. > > u_count has options, that allows to count only symbols of a > specific class, for example, only capital letters, or digits. > Options can be combined. > > Closes #3081 > --- > extra/exports | 1 + > src/CMakeLists.txt | 1 + > src/lua/string.lua | 52 ++++++++++++++++++++++++++++++++++++++++++++ > src/util.c | 48 +++++++++++++++++++++++++++++++++++++++- > test/app-tap/string.test.lua | 22 ++++++++++++++++++- > 5 files changed, 122 insertions(+), 2 deletions(-) >
next prev parent reply other threads:[~2018-04-26 16:07 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-04-25 23:29 [tarantool-patches] [PATCH 0/7] Expose ICU into Lua Vladislav Shpilevoy 2018-04-25 23:29 ` [tarantool-patches] [PATCH 1/7] lua: expose ICU upper/lower functions to Lua Vladislav Shpilevoy 2018-04-28 0:56 ` [tarantool-patches] " Alexander Turenko 2018-04-25 23:29 ` [tarantool-patches] [PATCH 2/7] lua: implement string.u_count Vladislav Shpilevoy 2018-04-26 10:36 ` [tarantool-patches] " Vladislav Shpilevoy 2018-04-26 16:07 ` Vladislav Shpilevoy [this message] 2018-04-26 23:57 ` Vladislav Shpilevoy 2018-04-28 1:10 ` Alexander Turenko 2018-04-25 23:29 ` [tarantool-patches] [PATCH 3/7] alter: fix assertion in collations alter Vladislav Shpilevoy 2018-04-25 23:29 ` [tarantool-patches] [PATCH 4/7] Move struct on_access_denied_ctx into error.h Vladislav Shpilevoy 2018-04-25 23:29 ` [tarantool-patches] [PATCH 5/7] Merge box_error, stat and collations into core library Vladislav Shpilevoy 2018-04-25 23:29 ` [tarantool-patches] [PATCH 6/7] Always store built-in collations in the cache Vladislav Shpilevoy 2018-04-25 23:29 ` [tarantool-patches] [PATCH 7/7] lua: expose u_compare/u_icompare into Lua Vladislav Shpilevoy 2018-04-28 1:55 ` [tarantool-patches] Re: [PATCH 0/7] Expose ICU " Alexander Turenko
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=19384f27-a45d-022d-7afc-1b1afb7cf719@tarantool.org \ --to=v.shpilevoy@tarantool.org \ --cc=kostja@tarantool.org \ --cc=tarantool-patches@freelists.org \ --subject='[tarantool-patches] Re: [PATCH 2/7] lua: implement string.u_count' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox