This language bar is your friend. Select your favorite languages!

Idiom #169 String length

Assign to integer n the number of characters of string s.

This can be different from the number of bytes of s.

Illustration
#Edit dateEdit SummaryEditor
👁 Δ 54 2019-02-01, 06:33 New Scala implementation by user [Debaran] Debaran
👁 Δ 53 2019-01-06, 10:12 [Csharp] +DemoURL programming-idioms.org
👁 Δ 52 2019-01-06, 03:32 New Csharp implementation by user [mattdaly] mattdaly
👁 Δ 51 2018-10-01, 20:54 Admin deletes impl 2219 programming-idioms.org
👁 Δ 50 2018-10-01, 20:50 Admin deletes impl 2444 programming-idioms.org
👁 Δ 49 2018-10-01, 12:18 [C] changed variable name anonymous
👁 Δ 48 2018-10-01, 12:17 New C implementation by user [anonymous] anonymous
👁 Δ 47 2018-09-23, 19:17 [Perl] Fixed empty imports programming-idioms.org
👁 Δ 46 2018-09-16, 11:49 +keywords programming-idioms.org
👁 Δ 45 2018-08-22, 17:29 [PHP] It was returning the number of bytes and the length of the string ricardo_sdl
👁 Δ 44 2018-08-22, 17:20 New PHP implementation by user [ricardo_sdl] ricardo_sdl
👁 Δ 43 2018-08-18, 20:04 New Perl implementation by user [dmaestro] dmaestro
👁 Δ 42 2018-05-21, 23:13 New Rust implementation by user [glmdgrielson] glmdgrielson
👁 Δ 41 2018-04-23, 23:14 Admin deletes impl 2298 programming-idioms.org
👁 Δ 40 2018-04-23, 23:13 Updated picture URL by user [programming-idioms.org] programming-idioms.org
👁 Δ 39 2018-04-23, 23:04 Admin deletes impl 2261 programming-idioms.org
👁 Δ 38 2018-04-23, 18:25 [Rust] Wrong programming-idioms.org
👁 Δ 37 2018-04-18, 13:09 New Rust implementation by user [Rustem B.] Rustem B.
👁 Δ 36 2018-04-06, 20:07 Admin deletes impl 2267 programming-idioms.org
👁 Δ 35 2018-04-06, 20:06 [PHP] strlen is not appropriate programming-idioms.org
👁 Δ 34 2018-04-06, 07:09 New PHP implementation by user [Fyerfox] Fyerfox
👁 Δ 33 2018-04-03, 08:08 New Lua implementation by user [Kng] Kng
👁 Δ 32 2018-04-03, 08:07 [Lua] Realized I can split the 2 implementations Kng
👁 Δ 31 2018-04-03, 08:05 New Lua implementation by user [Kng] Kng
👁 Δ 30 2018-03-27, 12:07 [Cpp] there is no import in C++. Xris
👁 Δ 29 2018-03-21, 21:05 New Elixir implementation by user [Okx] Okx
👁 Δ 28 2018-03-10, 23:16 [Pascal] Fixed code. Matek
👁 Δ 27 2018-03-10, 23:14 [Pascal] Fixed imports section. Matek
👁 Δ 26 2018-03-10, 23:13 New Pascal implementation by user [Matek] Matek
👁 Δ 25 2018-02-16, 23:51 New Haskell implementation by user [kodin] kodin
👁 Δ 24 2018-02-14, 22:18 [Cpp] Mess programming-idioms.org
👁 Δ 23 2018-02-14, 15:11 New Python implementation by user [LucianoRamalho] LucianoRamalho
👁 Δ 22 2018-02-05, 11:19 [D] No need to declare s in code programming-idioms.org
👁 Δ 21 2018-02-05, 11:19 [D] No need to declare s in code programming-idioms.org
👁 Δ 20 2018-02-05, 11:19 [D] No need to declare s in code programming-idioms.org
👁 Δ 19 2018-02-04, 16:58 New D implementation by user [abertk] abertk
👁 Δ 18 2018-02-04, 16:56 New D implementation by user [abertk] abertk
👁 Δ 17 2018-02-04, 16:55 New D implementation by user [abertk] abertk
👁 Δ 16 2018-02-01, 04:34 New Cpp implementation by user [xgladius] xgladius
👁 Δ 15 2018-01-27, 12:47 [Pascal] 2 ways => 2 impls, see new impl 2217 programming-idioms.org
👁 Δ 14 2018-01-27, 12:46 New Pascal implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 13 2018-01-27, 12:44 [Ruby] +DocURL programming-idioms.org
👁 Δ 12 2018-01-27, 12:43 New Ruby implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 11 2018-01-27, 12:34 Admin deletes impl 2216 programming-idioms.org
👁 Δ 10 2018-01-26, 13:28 New Python implementation by user [coopara] coopara
👁 Δ 9 2018-01-14, 07:32 [Dart] To conform with other code examples Edward E.
👁 Δ 8 2018-01-14, 07:30 New Dart implementation by user [Edward E.] Edward E.
👁 Δ 7 2018-01-11, 18:00 New Pascal implementation by user [Bart] Bart
👁 Δ 6 2018-01-10, 19:58 Admin deletes impl 2208 programming-idioms.org
👁 Δ 5 2018-01-09, 21:50 New Ruby implementation by user [steenslag] steenslag
👁 Δ 4 2018-01-09, 21:49 New Ruby implementation by user [steenslag] steenslag
👁 Δ 3 2018-01-09, 17:09 New Go implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 2 2018-01-09, 17:04 New JS implementation by user [programming-idioms.org] programming-idioms.org
1 2018-01-09, 17:03 Idiom creation by user [programming-idioms.org] programming-idioms.org