equal
deleted
inserted
replaced
50 def print: String = print(false) |
50 def print: String = print(false) |
51 def print_default: String = print(true) |
51 def print_default: String = print(true) |
52 |
52 |
53 def title(strip: String = ""): String = |
53 def title(strip: String = ""): String = |
54 { |
54 { |
55 val words = space_explode('_', name) |
55 val words = Word.explode('_', name) |
56 val words1 = |
56 val words1 = |
57 words match { |
57 words match { |
58 case word :: rest if word == strip => rest |
58 case word :: rest if word == strip => rest |
59 case _ => words |
59 case _ => words |
60 } |
60 } |
61 words1.map(Word.capitalize(_)).mkString(" ") |
61 Word.implode(words1.map(Word.capitalize(_))) |
62 } |
62 } |
63 |
63 |
64 def unknown: Boolean = typ == Unknown |
64 def unknown: Boolean = typ == Unknown |
65 } |
65 } |
66 |
66 |