Documentation ¶
Index ¶
- func AnalysisTwoSplit(inp string, joinEnd, dropEnd CharReadEnd) (string, string)
- func AnalysisTwoSplitTrim(inp string, joinEnd, dropEnd CharReadEnd) (string, string)
- func CharLower(c rune) rune
- func CharUpper(c rune) rune
- func DropLineComment(line string) string
- func GetConstDefine(name string) string
- func GetPathSep() string
- func InitialsUpper(str string) string
- func IsChar(c rune) bool
- func IsLowerChar(c rune) bool
- func IsUpperChar(c rune) bool
- func NotNullSpaceSplit(inp string) []string
- func PathFmt(path string) string
- func PkgUpper(pkg string) string
- func ProtoUseDeal(typ string) (isArray bool, nt string)
- func RepeatJoin(word, seq string, num int) string
- func ToInt(val string) int
- type CharReadEnd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnalysisTwoSplit ¶
func AnalysisTwoSplit(inp string, joinEnd, dropEnd CharReadEnd) (string, string)
func AnalysisTwoSplitTrim ¶
func AnalysisTwoSplitTrim(inp string, joinEnd, dropEnd CharReadEnd) (string, string)
func DropLineComment ¶
func GetConstDefine ¶
func GetPathSep ¶
func GetPathSep() string
func IsLowerChar ¶
func IsUpperChar ¶
func NotNullSpaceSplit ¶
func ProtoUseDeal ¶
ProtoUseDeal drop `[]`, `*` and let int as int64(proto not have int).
func RepeatJoin ¶
Types ¶
type CharReadEnd ¶
var CIdentifierDropEndCheck CharReadEnd = func(c rune) bool { if (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c == '_') || (c >= '0' && c <= '9') { return false } return true }
var CIdentifierJoinEndCheck CharReadEnd = func(c rune) bool { return false }
Click to show internal directories.
Click to hide internal directories.