This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd meteorApp | |
$ meteor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func splitByBlock(text string) (words []string) { | |
if text == "" { | |
return []string{} | |
} | |
rs := []rune(text) | |
var tmp string | |
for _, r := range rs { | |
// 空白文字の前後は無条件に分割 | |
if isEmptyString(string(r)) { | |
if tmp != "" { |