本文整理汇总了Golang中github.com/pquerna/ffjson/fflib/v1.SimpleLetterEqualFold函数的典型用法代码示例。如果您正苦于以下问题:Golang SimpleLetterEqualFold函数的具体用法?Golang SimpleLetterEqualFold怎么用?Golang SimpleLetterEqualFold使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了SimpleLetterEqualFold函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: UnmarshalJSONFFLexer
func (uj *Outfits) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error {
var err error = nil
currentKey := ffj_t_Outfitsbase
_ = currentKey
tok := fflib.FFTok_init
wantedTok := fflib.FFTok_init
mainparse:
for {
tok = fs.Scan()
// println(fmt.Sprintf("debug: tok: %v state: %v", tok, state))
if tok == fflib.FFTok_error {
goto tokerror
}
switch state {
case fflib.FFParse_map_start:
if tok != fflib.FFTok_left_bracket {
wantedTok = fflib.FFTok_left_bracket
goto wrongtokenerror
}
state = fflib.FFParse_want_key
continue
case fflib.FFParse_after_value:
if tok == fflib.FFTok_comma {
state = fflib.FFParse_want_key
} else if tok == fflib.FFTok_right_bracket {
goto done
} else {
wantedTok = fflib.FFTok_comma
goto wrongtokenerror
}
case fflib.FFParse_want_key:
// json {} ended. goto exit. woo.
if tok == fflib.FFTok_right_bracket {
goto done
}
if tok != fflib.FFTok_string {
wantedTok = fflib.FFTok_string
goto wrongtokenerror
}
kn := fs.Output.Bytes()
if len(kn) <= 0 {
// "" case. hrm.
currentKey = ffj_t_Outfitsno_such_key
state = fflib.FFParse_want_colon
goto mainparse
} else {
switch kn[0] {
case 'e':
if bytes.Equal(ffj_key_Outfits_Error, kn) {
currentKey = ffj_t_Outfits_Error
state = fflib.FFParse_want_colon
goto mainparse
}
case 'o':
if bytes.Equal(ffj_key_Outfits_Outfits, kn) {
currentKey = ffj_t_Outfits_Outfits
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.SimpleLetterEqualFold(ffj_key_Outfits_Error, kn) {
currentKey = ffj_t_Outfits_Error
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Outfits_Outfits, kn) {
currentKey = ffj_t_Outfits_Outfits
state = fflib.FFParse_want_colon
goto mainparse
}
currentKey = ffj_t_Outfitsno_such_key
state = fflib.FFParse_want_colon
goto mainparse
}
case fflib.FFParse_want_colon:
if tok != fflib.FFTok_colon {
wantedTok = fflib.FFTok_colon
goto wrongtokenerror
}
state = fflib.FFParse_want_value
continue
case fflib.FFParse_want_value:
if tok == fflib.FFTok_left_brace || tok == fflib.FFTok_left_bracket || tok == fflib.FFTok_integer || tok == fflib.FFTok_double || tok == fflib.FFTok_string || tok == fflib.FFTok_bool || tok == fflib.FFTok_null {
switch currentKey {
//.........这里部分代码省略.........
示例2: UnmarshalJSONFFLexer
func (uj *AgentRender) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error {
var err error = nil
currentKey := ffj_t_AgentRenderbase
_ = currentKey
tok := fflib.FFTok_init
wantedTok := fflib.FFTok_init
mainparse:
for {
tok = fs.Scan()
// println(fmt.Sprintf("debug: tok: %v state: %v", tok, state))
if tok == fflib.FFTok_error {
goto tokerror
}
switch state {
case fflib.FFParse_map_start:
if tok != fflib.FFTok_left_bracket {
wantedTok = fflib.FFTok_left_bracket
goto wrongtokenerror
}
state = fflib.FFParse_want_key
continue
case fflib.FFParse_after_value:
if tok == fflib.FFTok_comma {
state = fflib.FFParse_want_key
} else if tok == fflib.FFTok_right_bracket {
goto done
} else {
wantedTok = fflib.FFTok_comma
goto wrongtokenerror
}
case fflib.FFParse_want_key:
// json {} ended. goto exit. woo.
if tok == fflib.FFTok_right_bracket {
goto done
}
if tok != fflib.FFTok_string {
wantedTok = fflib.FFTok_string
goto wrongtokenerror
}
kn := fs.Output.Bytes()
if len(kn) <= 0 {
// "" case. hrm.
currentKey = ffj_t_AgentRenderno_such_key
state = fflib.FFParse_want_colon
goto mainparse
} else {
switch kn[0] {
case 'a':
if bytes.Equal(ffj_key_AgentRender_Type, kn) {
currentKey = ffj_t_AgentRender_Type
state = fflib.FFParse_want_colon
goto mainparse
}
case 'c':
if bytes.Equal(ffj_key_AgentRender_Colour, kn) {
currentKey = ffj_t_AgentRender_Colour
state = fflib.FFParse_want_colon
goto mainparse
}
case 'h':
if bytes.Equal(ffj_key_AgentRender_Heading, kn) {
currentKey = ffj_t_AgentRender_Heading
state = fflib.FFParse_want_colon
goto mainparse
}
case 'p':
if bytes.Equal(ffj_key_AgentRender_Pos2D, kn) {
currentKey = ffj_t_AgentRender_Pos2D
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.SimpleLetterEqualFold(ffj_key_AgentRender_Colour, kn) {
currentKey = ffj_t_AgentRender_Colour
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_AgentRender_Heading, kn) {
currentKey = ffj_t_AgentRender_Heading
state = fflib.FFParse_want_colon
goto mainparse
}
//.........这里部分代码省略.........
示例3: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
currentKey = ffj_t_TCARD_SORTLINK
state = fflib.FFParse_want_colon
goto mainparse
}
case 'U':
if bytes.Equal(ffj_key_TCARD_UNITLINK, kn) {
currentKey = ffj_t_TCARD_UNITLINK
state = fflib.FFParse_want_colon
goto mainparse
}
case 'Z':
if bytes.Equal(ffj_key_TCARD_ZCLBTYPE, kn) {
currentKey = ffj_t_TCARD_ZCLBTYPE
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_TCARD_ZCLBNAME, kn) {
currentKey = ffj_t_TCARD_ZCLBNAME
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_TCARD_ZCLBLINK, kn) {
currentKey = ffj_t_TCARD_ZCLBLINK
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.SimpleLetterEqualFold(ffj_key_TCARD_CARDGGXH, kn) {
currentKey = ffj_t_TCARD_CARDGGXH
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_TCARD_CARDJLDW, kn) {
currentKey = ffj_t_TCARD_CARDJLDW
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_TCARD_CARDCODE, kn) {
currentKey = ffj_t_TCARD_CARDCODE
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_TCARD_CARDZJZT, kn) {
currentKey = ffj_t_TCARD_CARDZJZT
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_TCARD_CARDZJFF, kn) {
currentKey = ffj_t_TCARD_CARDZJFF
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_TCARD_CARDZJNX, kn) {
currentKey = ffj_t_TCARD_CARDZJNX
state = fflib.FFParse_want_colon
示例4: UnmarshalJSONFFLexer
func (uj *Location) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error {
var err error = nil
currentKey := ffj_t_Locationbase
_ = currentKey
tok := fflib.FFTok_init
wantedTok := fflib.FFTok_init
mainparse:
for {
tok = fs.Scan()
// println(fmt.Sprintf("debug: tok: %v state: %v", tok, state))
if tok == fflib.FFTok_error {
goto tokerror
}
switch state {
case fflib.FFParse_map_start:
if tok != fflib.FFTok_left_bracket {
wantedTok = fflib.FFTok_left_bracket
goto wrongtokenerror
}
state = fflib.FFParse_want_key
continue
case fflib.FFParse_after_value:
if tok == fflib.FFTok_comma {
state = fflib.FFParse_want_key
} else if tok == fflib.FFTok_right_bracket {
goto done
} else {
wantedTok = fflib.FFTok_comma
goto wrongtokenerror
}
case fflib.FFParse_want_key:
// json {} ended. goto exit. woo.
if tok == fflib.FFTok_right_bracket {
goto done
}
if tok != fflib.FFTok_string {
wantedTok = fflib.FFTok_string
goto wrongtokenerror
}
kn := fs.Output.Bytes()
if len(kn) <= 0 {
// "" case. hrm.
currentKey = ffj_t_Locationno_such_key
state = fflib.FFParse_want_colon
goto mainparse
} else {
switch kn[0] {
case 'C':
if bytes.Equal(ffj_key_Location_Cached, kn) {
currentKey = ffj_t_Location_Cached
state = fflib.FFParse_want_colon
goto mainparse
}
case 'r':
if bytes.Equal(ffj_key_Location_Rate, kn) {
currentKey = ffj_t_Location_Rate
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_Location_Results, kn) {
currentKey = ffj_t_Location_Results
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.EqualFoldRight(ffj_key_Location_Results, kn) {
currentKey = ffj_t_Location_Results
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Location_Rate, kn) {
currentKey = ffj_t_Location_Rate
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Location_Cached, kn) {
currentKey = ffj_t_Location_Cached
state = fflib.FFParse_want_colon
goto mainparse
}
currentKey = ffj_t_Locationno_such_key
state = fflib.FFParse_want_colon
goto mainparse
}
//.........这里部分代码省略.........
示例5: UnmarshalJSONFFLexer
func (uj *ServiceDefinition) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error {
var err error = nil
currentKey := ffj_t_ServiceDefinitionbase
_ = currentKey
tok := fflib.FFTok_init
wantedTok := fflib.FFTok_init
mainparse:
for {
tok = fs.Scan()
// println(fmt.Sprintf("debug: tok: %v state: %v", tok, state))
if tok == fflib.FFTok_error {
goto tokerror
}
switch state {
case fflib.FFParse_map_start:
if tok != fflib.FFTok_left_bracket {
wantedTok = fflib.FFTok_left_bracket
goto wrongtokenerror
}
state = fflib.FFParse_want_key
continue
case fflib.FFParse_after_value:
if tok == fflib.FFTok_comma {
state = fflib.FFParse_want_key
} else if tok == fflib.FFTok_right_bracket {
goto done
} else {
wantedTok = fflib.FFTok_comma
goto wrongtokenerror
}
case fflib.FFParse_want_key:
// json {} ended. goto exit. woo.
if tok == fflib.FFTok_right_bracket {
goto done
}
if tok != fflib.FFTok_string {
wantedTok = fflib.FFTok_string
goto wrongtokenerror
}
kn := fs.Output.Bytes()
if len(kn) <= 0 {
// "" case. hrm.
currentKey = ffj_t_ServiceDefinitionno_such_key
state = fflib.FFParse_want_colon
goto mainparse
} else {
switch kn[0] {
case 'c':
if bytes.Equal(ffj_key_ServiceDefinition_ContainerPort, kn) {
currentKey = ffj_t_ServiceDefinition_ContainerPort
state = fflib.FFParse_want_colon
goto mainparse
}
case 'n':
if bytes.Equal(ffj_key_ServiceDefinition_NamePattern, kn) {
currentKey = ffj_t_ServiceDefinition_NamePattern
state = fflib.FFParse_want_colon
goto mainparse
}
case 't':
if bytes.Equal(ffj_key_ServiceDefinition_Type, kn) {
currentKey = ffj_t_ServiceDefinition_Type
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.AsciiEqualFold(ffj_key_ServiceDefinition_NamePattern, kn) {
currentKey = ffj_t_ServiceDefinition_NamePattern
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.AsciiEqualFold(ffj_key_ServiceDefinition_ContainerPort, kn) {
currentKey = ffj_t_ServiceDefinition_ContainerPort
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_ServiceDefinition_Type, kn) {
currentKey = ffj_t_ServiceDefinition_Type
state = fflib.FFParse_want_colon
goto mainparse
}
currentKey = ffj_t_ServiceDefinitionno_such_key
state = fflib.FFParse_want_colon
//.........这里部分代码省略.........
示例6: UnmarshalJSONFFLexer
func (uj *Event) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error {
var err error = nil
currentKey := ffj_t_Eventbase
_ = currentKey
tok := fflib.FFTok_init
wantedTok := fflib.FFTok_init
mainparse:
for {
tok = fs.Scan()
// println(fmt.Sprintf("debug: tok: %v state: %v", tok, state))
if tok == fflib.FFTok_error {
goto tokerror
}
switch state {
case fflib.FFParse_map_start:
if tok != fflib.FFTok_left_bracket {
wantedTok = fflib.FFTok_left_bracket
goto wrongtokenerror
}
state = fflib.FFParse_want_key
continue
case fflib.FFParse_after_value:
if tok == fflib.FFTok_comma {
state = fflib.FFParse_want_key
} else if tok == fflib.FFTok_right_bracket {
goto done
} else {
wantedTok = fflib.FFTok_comma
goto wrongtokenerror
}
case fflib.FFParse_want_key:
// json {} ended. goto exit. woo.
if tok == fflib.FFTok_right_bracket {
goto done
}
if tok != fflib.FFTok_string {
wantedTok = fflib.FFTok_string
goto wrongtokenerror
}
kn := fs.Output.Bytes()
if len(kn) <= 0 {
// "" case. hrm.
currentKey = ffj_t_Eventno_such_key
state = fflib.FFParse_want_colon
goto mainparse
} else {
switch kn[0] {
case 'h':
if bytes.Equal(ffj_key_Event_Host, kn) {
currentKey = ffj_t_Event_Host
state = fflib.FFParse_want_colon
goto mainparse
}
case 'm':
if bytes.Equal(ffj_key_Event_Metric, kn) {
currentKey = ffj_t_Event_Metric
state = fflib.FFParse_want_colon
goto mainparse
}
case 's':
if bytes.Equal(ffj_key_Event_Service, kn) {
currentKey = ffj_t_Event_Service
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_Event_SubService, kn) {
currentKey = ffj_t_Event_SubService
state = fflib.FFParse_want_colon
goto mainparse
}
case 't':
if bytes.Equal(ffj_key_Event_Tags, kn) {
currentKey = ffj_t_Event_Tags
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.EqualFoldRight(ffj_key_Event_Tags, kn) {
currentKey = ffj_t_Event_Tags
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Event_Metric, kn) {
//.........这里部分代码省略.........
示例7: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
currentKey = ffj_t_Event_Type
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_Event_Text, kn) {
currentKey = ffj_t_Event_Text
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_Event_TopicID, kn) {
currentKey = ffj_t_Event_TopicID
state = fflib.FFParse_want_colon
goto mainparse
}
case 'u':
if bytes.Equal(ffj_key_Event_Username, kn) {
currentKey = ffj_t_Event_Username
state = fflib.FFParse_want_colon
goto mainparse
}
case 'v':
if bytes.Equal(ffj_key_Event_VoteMask, kn) {
currentKey = ffj_t_Event_VoteMask
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.SimpleLetterEqualFold(ffj_key_Event_Error, kn) {
currentKey = ffj_t_Event_Error
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Event_VoteMask, kn) {
currentKey = ffj_t_Event_VoteMask
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.AsciiEqualFold(ffj_key_Event_OptionB, kn) {
currentKey = ffj_t_Event_OptionB
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.AsciiEqualFold(ffj_key_Event_OptionA, kn) {
currentKey = ffj_t_Event_OptionA
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.AsciiEqualFold(ffj_key_Event_TopicID, kn) {
currentKey = ffj_t_Event_TopicID
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Event_Text, kn) {
currentKey = ffj_t_Event_Text
state = fflib.FFParse_want_colon
示例8: UnmarshalJSONFFLexer
func (uj *EventStream) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error {
var err error = nil
currentKey := ffj_t_EventStreambase
_ = currentKey
tok := fflib.FFTok_init
wantedTok := fflib.FFTok_init
mainparse:
for {
tok = fs.Scan()
// println(fmt.Sprintf("debug: tok: %v state: %v", tok, state))
if tok == fflib.FFTok_error {
goto tokerror
}
switch state {
case fflib.FFParse_map_start:
if tok != fflib.FFTok_left_bracket {
wantedTok = fflib.FFTok_left_bracket
goto wrongtokenerror
}
state = fflib.FFParse_want_key
continue
case fflib.FFParse_after_value:
if tok == fflib.FFTok_comma {
state = fflib.FFParse_want_key
} else if tok == fflib.FFTok_right_bracket {
goto done
} else {
wantedTok = fflib.FFTok_comma
goto wrongtokenerror
}
case fflib.FFParse_want_key:
// json {} ended. goto exit. woo.
if tok == fflib.FFTok_right_bracket {
goto done
}
if tok != fflib.FFTok_string {
wantedTok = fflib.FFTok_string
goto wrongtokenerror
}
kn := fs.Output.Bytes()
if len(kn) <= 0 {
// "" case. hrm.
currentKey = ffj_t_EventStreamno_such_key
state = fflib.FFParse_want_colon
goto mainparse
} else {
switch kn[0] {
case 'C':
if bytes.Equal(ffj_key_EventStream_Closed, kn) {
currentKey = ffj_t_EventStream_Closed
state = fflib.FFParse_want_colon
goto mainparse
}
case 'E':
if bytes.Equal(ffj_key_EventStream_Err, kn) {
currentKey = ffj_t_EventStream_Err
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_EventStream_Events, kn) {
currentKey = ffj_t_EventStream_Events
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.EqualFoldRight(ffj_key_EventStream_Closed, kn) {
currentKey = ffj_t_EventStream_Closed
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_EventStream_Events, kn) {
currentKey = ffj_t_EventStream_Events
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_EventStream_Err, kn) {
currentKey = ffj_t_EventStream_Err
state = fflib.FFParse_want_colon
goto mainparse
}
currentKey = ffj_t_EventStreamno_such_key
state = fflib.FFParse_want_colon
goto mainparse
}
//.........这里部分代码省略.........
示例9: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
} else if bytes.Equal(ffj_key_Incident_Service, kn) {
currentKey = ffj_t_Incident_Service
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_Incident_SubService, kn) {
currentKey = ffj_t_Incident_SubService
state = fflib.FFParse_want_colon
goto mainparse
}
case 't':
if bytes.Equal(ffj_key_Incident_Time, kn) {
currentKey = ffj_t_Incident_Time
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_Incident_Tags, kn) {
currentKey = ffj_t_Incident_Tags
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.EqualFoldRight(ffj_key_Incident_Tags, kn) {
currentKey = ffj_t_Incident_Tags
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Incident_Metric, kn) {
currentKey = ffj_t_Incident_Metric
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Incident_SubService, kn) {
currentKey = ffj_t_Incident_SubService
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Incident_Service, kn) {
currentKey = ffj_t_Incident_Service
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Incident_Host, kn) {
currentKey = ffj_t_Incident_Host
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Incident_Status, kn) {
currentKey = ffj_t_Incident_Status
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Incident_Policy, kn) {
currentKey = ffj_t_Incident_Policy
state = fflib.FFParse_want_colon
示例10: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
case 't':
if bytes.Equal(ffj_key_Handtekening_Tussenvoegsel, kn) {
currentKey = ffj_t_Handtekening_Tussenvoegsel
state = fflib.FFParse_want_colon
goto mainparse
}
case 'v':
if bytes.Equal(ffj_key_Handtekening_Voornaam, kn) {
currentKey = ffj_t_Handtekening_Voornaam
state = fflib.FFParse_want_colon
goto mainparse
}
case 'w':
if bytes.Equal(ffj_key_Handtekening_Woonplaats, kn) {
currentKey = ffj_t_Handtekening_Woonplaats
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.EqualFoldRight(ffj_key_Handtekening_CaptchaResponse, kn) {
currentKey = ffj_t_Handtekening_CaptchaResponse
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Handtekening_Email, kn) {
currentKey = ffj_t_Handtekening_Email
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Handtekening_Handtekening, kn) {
currentKey = ffj_t_Handtekening_Handtekening
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Handtekening_Woonplaats, kn) {
currentKey = ffj_t_Handtekening_Woonplaats
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Handtekening_Postcode, kn) {
currentKey = ffj_t_Handtekening_Postcode
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Handtekening_Huisnummer, kn) {
currentKey = ffj_t_Handtekening_Huisnummer
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Handtekening_Straat, kn) {
currentKey = ffj_t_Handtekening_Straat
state = fflib.FFParse_want_colon
示例11: UnmarshalJSONFFLexer
func (uj *InMsg) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error {
var err error = nil
currentKey := ffj_t_InMsgbase
_ = currentKey
tok := fflib.FFTok_init
wantedTok := fflib.FFTok_init
mainparse:
for {
tok = fs.Scan()
// println(fmt.Sprintf("debug: tok: %v state: %v", tok, state))
if tok == fflib.FFTok_error {
goto tokerror
}
switch state {
case fflib.FFParse_map_start:
if tok != fflib.FFTok_left_bracket {
wantedTok = fflib.FFTok_left_bracket
goto wrongtokenerror
}
state = fflib.FFParse_want_key
continue
case fflib.FFParse_after_value:
if tok == fflib.FFTok_comma {
state = fflib.FFParse_want_key
} else if tok == fflib.FFTok_right_bracket {
goto done
} else {
wantedTok = fflib.FFTok_comma
goto wrongtokenerror
}
case fflib.FFParse_want_key:
// json {} ended. goto exit. woo.
if tok == fflib.FFTok_right_bracket {
goto done
}
if tok != fflib.FFTok_string {
wantedTok = fflib.FFTok_string
goto wrongtokenerror
}
kn := fs.Output.Bytes()
if len(kn) <= 0 {
// "" case. hrm.
currentKey = ffj_t_InMsgno_such_key
state = fflib.FFParse_want_colon
goto mainparse
} else {
switch kn[0] {
case 'd':
if bytes.Equal(ffj_key_InMsg_Data, kn) {
currentKey = ffj_t_InMsg_Data
state = fflib.FFParse_want_colon
goto mainparse
}
case 't':
if bytes.Equal(ffj_key_InMsg_Type, kn) {
currentKey = ffj_t_InMsg_Type
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.SimpleLetterEqualFold(ffj_key_InMsg_Data, kn) {
currentKey = ffj_t_InMsg_Data
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_InMsg_Type, kn) {
currentKey = ffj_t_InMsg_Type
state = fflib.FFParse_want_colon
goto mainparse
}
currentKey = ffj_t_InMsgno_such_key
state = fflib.FFParse_want_colon
goto mainparse
}
case fflib.FFParse_want_colon:
if tok != fflib.FFTok_colon {
wantedTok = fflib.FFTok_colon
goto wrongtokenerror
}
state = fflib.FFParse_want_value
continue
case fflib.FFParse_want_value:
if tok == fflib.FFTok_left_brace || tok == fflib.FFTok_left_bracket || tok == fflib.FFTok_integer || tok == fflib.FFTok_double || tok == fflib.FFTok_string || tok == fflib.FFTok_bool || tok == fflib.FFTok_null {
switch currentKey {
//.........这里部分代码省略.........
示例12: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
goto mainparse
}
case 'u':
if bytes.Equal(ffj_key_Fingerprint_Username, kn) {
currentKey = ffj_t_Fingerprint_Username
state = fflib.FFParse_want_colon
goto mainparse
}
case 'w':
if bytes.Equal(ffj_key_Fingerprint_WifiFingerprint, kn) {
currentKey = ffj_t_Fingerprint_WifiFingerprint
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.AsciiEqualFold(ffj_key_Fingerprint_WifiFingerprint, kn) {
currentKey = ffj_t_Fingerprint_WifiFingerprint
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Fingerprint_Timestamp, kn) {
currentKey = ffj_t_Fingerprint_Timestamp
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Fingerprint_Location, kn) {
currentKey = ffj_t_Fingerprint_Location
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Fingerprint_Username, kn) {
currentKey = ffj_t_Fingerprint_Username
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Fingerprint_Group, kn) {
currentKey = ffj_t_Fingerprint_Group
state = fflib.FFParse_want_colon
goto mainparse
}
currentKey = ffj_t_Fingerprintno_such_key
state = fflib.FFParse_want_colon
goto mainparse
}
case fflib.FFParse_want_colon:
if tok != fflib.FFTok_colon {
wantedTok = fflib.FFTok_colon
goto wrongtokenerror
}
state = fflib.FFParse_want_value
continue
case fflib.FFParse_want_value:
if tok == fflib.FFTok_left_brace || tok == fflib.FFTok_left_bracket || tok == fflib.FFTok_integer || tok == fflib.FFTok_double || tok == fflib.FFTok_string || tok == fflib.FFTok_bool || tok == fflib.FFTok_null {
示例13: UnmarshalJSONFFLexer
func (uj *Http) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error {
var err error = nil
currentKey := ffj_t_Httpbase
_ = currentKey
tok := fflib.FFTok_init
wantedTok := fflib.FFTok_init
mainparse:
for {
tok = fs.Scan()
// println(fmt.Sprintf("debug: tok: %v state: %v", tok, state))
if tok == fflib.FFTok_error {
goto tokerror
}
switch state {
case fflib.FFParse_map_start:
if tok != fflib.FFTok_left_bracket {
wantedTok = fflib.FFTok_left_bracket
goto wrongtokenerror
}
state = fflib.FFParse_want_key
continue
case fflib.FFParse_after_value:
if tok == fflib.FFTok_comma {
state = fflib.FFParse_want_key
} else if tok == fflib.FFTok_right_bracket {
goto done
} else {
wantedTok = fflib.FFTok_comma
goto wrongtokenerror
}
case fflib.FFParse_want_key:
// json {} ended. goto exit. woo.
if tok == fflib.FFTok_right_bracket {
goto done
}
if tok != fflib.FFTok_string {
wantedTok = fflib.FFTok_string
goto wrongtokenerror
}
kn := fs.Output.Bytes()
if len(kn) <= 0 {
// "" case. hrm.
currentKey = ffj_t_Httpno_such_key
state = fflib.FFParse_want_colon
goto mainparse
} else {
switch kn[0] {
case 'H':
if bytes.Equal(ffj_key_Http_Host, kn) {
currentKey = ffj_t_Http_Host
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_Http_Headers, kn) {
currentKey = ffj_t_Http_Headers
state = fflib.FFParse_want_colon
goto mainparse
}
case 'M':
if bytes.Equal(ffj_key_Http_Method, kn) {
currentKey = ffj_t_Http_Method
state = fflib.FFParse_want_colon
goto mainparse
}
case 'T':
if bytes.Equal(ffj_key_Http_Tag, kn) {
currentKey = ffj_t_Http_Tag
state = fflib.FFParse_want_colon
goto mainparse
}
case 'U':
if bytes.Equal(ffj_key_Http_Uri, kn) {
currentKey = ffj_t_Http_Uri
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.SimpleLetterEqualFold(ffj_key_Http_Tag, kn) {
currentKey = ffj_t_Http_Tag
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Http_Headers, kn) {
//.........这里部分代码省略.........
示例14: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
if bytes.Equal(ffj_key_Character_TitleID, kn) {
currentKey = ffj_t_Character_TitleID
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_Character_Times, kn) {
currentKey = ffj_t_Character_Times
state = fflib.FFParse_want_colon
goto mainparse
}
case 'w':
if bytes.Equal(ffj_key_Character_World, kn) {
currentKey = ffj_t_Character_World
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.EqualFoldRight(ffj_key_Character_LastUpdated, kn) {
currentKey = ffj_t_Character_LastUpdated
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Character_Expires, kn) {
currentKey = ffj_t_Character_Expires
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Character_Error, kn) {
currentKey = ffj_t_Character_Error
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.AsciiEqualFold(ffj_key_Character_World, kn) {
currentKey = ffj_t_Character_World
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Character_FriendsList, kn) {
currentKey = ffj_t_Character_FriendsList
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Character_Items, kn) {
currentKey = ffj_t_Character_Items
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Character_Faction, kn) {
currentKey = ffj_t_Character_Faction
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Character_Stats, kn) {
currentKey = ffj_t_Character_Stats
state = fflib.FFParse_want_colon
示例15: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
currentKey = ffj_t_WorkerEvent_SWVersion
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_WorkerEvent_SWIdentity, kn) {
currentKey = ffj_t_WorkerEvent_SWIdentity
state = fflib.FFParse_want_colon
goto mainparse
}
case 't':
if bytes.Equal(ffj_key_WorkerEvent_Type, kn) {
currentKey = ffj_t_WorkerEvent_Type
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_WorkerEvent_Timestamp, kn) {
currentKey = ffj_t_WorkerEvent_Timestamp
state = fflib.FFParse_want_colon
goto mainparse
}
case 'u':
if bytes.Equal(ffj_key_WorkerEvent_UTCOffset, kn) {
currentKey = ffj_t_WorkerEvent_UTCOffset
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.SimpleLetterEqualFold(ffj_key_WorkerEvent_Active, kn) {
currentKey = ffj_t_WorkerEvent_Active
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_WorkerEvent_Processed, kn) {
currentKey = ffj_t_WorkerEvent_Processed
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_WorkerEvent_SWIdentity, kn) {
currentKey = ffj_t_WorkerEvent_SWIdentity
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_WorkerEvent_Freq, kn) {
currentKey = ffj_t_WorkerEvent_Freq
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_WorkerEvent_LoadAverage, kn) {
currentKey = ffj_t_WorkerEvent_LoadAverage
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_WorkerEvent_SWVersion, kn) {
currentKey = ffj_t_WorkerEvent_SWVersion
state = fflib.FFParse_want_colon