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)
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>


Trivial merge