Merge: String: Added four new methods to string.nit
authorJean Privat <jean@pryen.org>
Fri, 11 Jul 2014 11:14:23 +0000 (07:14 -0400)
committerJean Privat <jean@pryen.org>
Fri, 11 Jul 2014 11:14:23 +0000 (07:14 -0400)
commita7632d53c0c373ab75f550fef5fd202d33783f83
treed9713c2d20fe57aa36d1d30a2a1ebdb87a440d73
parent8d4daf8ad1fa680cd317219cc58d918edc30874b
parentb95006e5557fb507ca24921ce6bf82776eff82e7
Merge: String: Added four new methods to string.nit

Four new methods have been added to abstract class Text : is_upper, is_lower, to_snake_case, to_camel_case. The latter two relies on the two others in their implementation. Converting case may be useful for code generation, especially when wrapping extern classes in order to conform to snake case nit standard.

Pull-Request: #549
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>