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

Idiom #97 Check string suffix

Set boolean b to true if string s ends with string suffix, false otherwise.

Illustration
#Edit dateEdit SummaryEditor
👁 Δ 40 2019-10-14, 12:27 [Elixir] Dead link: play.elixirbyexample.com has been down for a while programming-idioms.org
👁 Δ 39 2019-09-28, 11:48 New Fortran implementation by user [tkoenig] tkoenig
👁 Δ 38 2019-09-28, 00:21 New Cpp implementation by user [chardan] chardan
👁 Δ 37 2019-09-27, 12:53 [Csharp] Removed using statement. OrigamiRobot
👁 Δ 36 2019-09-27, 12:53 New Csharp implementation by user [OrigamiRobot] OrigamiRobot
👁 Δ 35 2019-09-27, 11:38 New Csharp implementation by user [pkfishbone] pkfishbone
👁 Δ 34 2019-06-07, 10:27 [Haskell] changed infix to prefix notation schuelermine
👁 Δ 33 2019-02-02, 02:51 New Scala implementation by user [Debaran] Debaran
👁 Δ 32 2019-02-02, 02:50 [Java] Semicolon Debaran
👁 Δ 31 2018-05-01, 12:31 New JS implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 30 2017-11-30, 21:18 Linked to idiom #168 [Trim suffix] programming-idioms.org
👁 Δ 29 2017-04-29, 07:10 [Rust] Fixed demo link TheVTM
👁 Δ 28 2017-04-27, 09:23 New Rust implementation by user [TheVTM] TheVTM
👁 Δ 27 2017-03-06, 21:20 wording programming-idioms.org
👁 Δ 26 2017-03-06, 21:19 [Elixir] +DocURL, +DemoURL programming-idioms.org
👁 Δ 25 2017-03-04, 07:31 New Elixir implementation by user [namjae] namjae
👁 Δ 24 2017-03-02, 20:24 Admin deletes impl 1939 programming-idioms.org
👁 Δ 23 2017-03-02, 05:46 [Lua] My explanation was incorrect Marolex
👁 Δ 22 2017-03-02, 05:46 New Lua implementation by user [Marolex] Marolex
👁 Δ 21 2017-03-02, 05:44 New Lua implementation by user [Marolex] Marolex
👁 Δ 20 2016-09-27, 11:27 Updated picture URL by user [programming-idioms.org] programming-idioms.org
👁 Δ 19 2016-09-27, 11:26 Updated picture URL by user [programming-idioms.org] programming-idioms.org
👁 Δ 18 2016-04-06, 20:06 New Ruby implementation by user [steenslag]
👁 Δ 17 2016-02-23, 13:28 [PHP] fixing smart quotes
👁 Δ 16 2016-02-23, 13:28 New PHP implementation by user [agilla1]
👁 Δ 15 2016-02-18, 16:58 New Haskell implementation by user [JH]
👁 Δ 14 2016-02-16, 18:55 New Haskell implementation by user [JH]
👁 Δ 13 2016-01-21, 09:16 [Pascal] imports: not in code. No begin/end
👁 Δ 12 2016-01-15, 15:39 New Pascal implementation by user [Bart]
👁 Δ 11 2016-01-02, 01:22 New Java implementation by user [lck]
👁 Δ 10 2015-11-30, 12:37 New D implementation by user [piou]
👁 Δ 9 2015-11-03, 23:48 New D implementation by user [piou]
👁 Δ 8 2015-10-31, 15:37
👁 Δ 7 2015-10-29, 14:05
👁 Δ 6 2015-10-28, 01:50
👁 Δ 5 2015-10-18, 16:00
👁 Δ 4 2015-10-18, 13:22
👁 Δ 3 2015-10-08, 12:54
👁 Δ 2 2015-10-08, 12:53
1 2015-10-08, 12:52