本文整理汇总了Golang中github.com/pquerna/ffjson/fflib/v1.EqualFoldRight函数的典型用法代码示例。如果您正苦于以下问题:Golang EqualFoldRight函数的具体用法?Golang EqualFoldRight怎么用?Golang EqualFoldRight使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了EqualFoldRight函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: UnmarshalJSONFFLexer
func (uj *DrawList) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error {
var err error = nil
currentKey := ffj_t_DrawListbase
_ = 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_DrawListno_such_key
state = fflib.FFParse_want_colon
goto mainparse
} else {
switch kn[0] {
case 'b':
if bytes.Equal(ffj_key_DrawList_BG, kn) {
currentKey = ffj_t_DrawList_BG
state = fflib.FFParse_want_colon
goto mainparse
}
case 'c':
if bytes.Equal(ffj_key_DrawList_CPP, kn) {
currentKey = ffj_t_DrawList_CPP
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_DrawList_CpPreyPop, kn) {
currentKey = ffj_t_DrawList_CpPreyPop
state = fflib.FFParse_want_colon
goto mainparse
}
case 't':
if bytes.Equal(ffj_key_DrawList_TurnCount, kn) {
currentKey = ffj_t_DrawList_TurnCount
state = fflib.FFParse_want_colon
goto mainparse
}
case 'v':
if bytes.Equal(ffj_key_DrawList_VP, kn) {
currentKey = ffj_t_DrawList_VP
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_DrawList_VpPop, kn) {
currentKey = ffj_t_DrawList_VpPop
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.EqualFoldRight(ffj_key_DrawList_TurnCount, kn) {
currentKey = ffj_t_DrawList_TurnCount
//.........这里部分代码省略.........
开发者ID:benjamin-rood,项目名称:abm-cp,代码行数:101,代码来源:render_ffjson.go
示例2: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
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
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_TCARD_CARDNAME, kn) {
currentKey = ffj_t_TCARD_CARDNAME
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_TCARD_ZCLBLINK, kn) {
currentKey = ffj_t_TCARD_ZCLBLINK
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_TCARD_ZCLBNAME, kn) {
currentKey = ffj_t_TCARD_ZCLBNAME
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_TCARD_ZCLBTYPE, kn) {
currentKey = ffj_t_TCARD_ZCLBTYPE
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_TCARD_SORTLINK, kn) {
currentKey = ffj_t_TCARD_SORTLINK
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_TCARD_SORTNAME, kn) {
currentKey = ffj_t_TCARD_SORTNAME
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_TCARD_SORTTYPE, kn) {
currentKey = ffj_t_TCARD_SORTTYPE
state = fflib.FFParse_want_colon
开发者ID:kazarus,项目名称:GoDemo,代码行数:67,代码来源:class_card_ffjson.go
示例3: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
currentKey = ffj_t_JsonOffer_Id
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_JsonOffer_Account, kn) {
currentKey = ffj_t_JsonOffer_Account
state = fflib.FFParse_want_colon
goto mainparse
}
case 's':
if bytes.Equal(ffj_key_JsonOffer_Salary, kn) {
currentKey = ffj_t_JsonOffer_Salary
state = fflib.FFParse_want_colon
goto mainparse
}
case 't':
if bytes.Equal(ffj_key_JsonOffer_PartialTime, kn) {
currentKey = ffj_t_JsonOffer_PartialTime
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_JsonOffer_HTML, kn) {
currentKey = ffj_t_JsonOffer_HTML
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.EqualFoldRight(ffj_key_JsonOffer_Account, kn) {
currentKey = ffj_t_JsonOffer_Account
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_JsonOffer_HTML, kn) {
currentKey = ffj_t_JsonOffer_HTML
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_JsonOffer_Locations, kn) {
currentKey = ffj_t_JsonOffer_Locations
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_JsonOffer_Location, kn) {
currentKey = ffj_t_JsonOffer_Location
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_JsonOffer_PartialTime, kn) {
currentKey = ffj_t_JsonOffer_PartialTime
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_JsonOffer_Salary, kn) {
currentKey = ffj_t_JsonOffer_Salary
state = fflib.FFParse_want_colon
开发者ID:pmezard,项目名称:apec,代码行数:67,代码来源:json_ffjson.go
示例4: UnmarshalJSONFFLexer
func (uj *response) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error {
var err error = nil
currentKey := ffj_t_responsebase
_ = 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_responseno_such_key
state = fflib.FFParse_want_colon
goto mainparse
} else {
switch kn[0] {
case 'e':
if bytes.Equal(ffj_key_response_ErrorCodes, kn) {
currentKey = ffj_t_response_ErrorCodes
state = fflib.FFParse_want_colon
goto mainparse
}
case 's':
if bytes.Equal(ffj_key_response_Success, kn) {
currentKey = ffj_t_response_Success
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.EqualFoldRight(ffj_key_response_ErrorCodes, kn) {
currentKey = ffj_t_response_ErrorCodes
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_response_Success, kn) {
currentKey = ffj_t_response_Success
state = fflib.FFParse_want_colon
goto mainparse
}
currentKey = ffj_t_responseno_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 {
//.........这里部分代码省略.........
开发者ID:go-recaptcha,项目名称:recaptcha,代码行数:101,代码来源:recaptcha_ffjson.go
示例5: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
}
case 's':
if bytes.Equal(ffj_key_Character_Stats, kn) {
currentKey = ffj_t_Character_Stats
state = fflib.FFParse_want_colon
goto mainparse
}
case 't':
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
开发者ID:THUNDERGROOVE,项目名称:census,代码行数:67,代码来源:character_ffjson.go
示例6: UnmarshalJSONFFLexer
func (uj *ProcessList) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error {
var err error = nil
currentKey := ffj_t_ProcessListbase
_ = 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_ProcessListno_such_key
state = fflib.FFParse_want_colon
goto mainparse
} else {
switch kn[0] {
case 'A':
if bytes.Equal(ffj_key_ProcessList_AnyTypes, kn) {
currentKey = ffj_t_ProcessList_AnyTypes
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.EqualFoldRight(ffj_key_ProcessList_AnyTypes, kn) {
currentKey = ffj_t_ProcessList_AnyTypes
state = fflib.FFParse_want_colon
goto mainparse
}
currentKey = ffj_t_ProcessListno_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 {
case ffj_t_ProcessList_AnyTypes:
goto handle_AnyTypes
case ffj_t_ProcessListno_such_key:
err = fs.SkipField(tok)
if err != nil {
return fs.WrapErr(err)
}
state = fflib.FFParse_after_value
goto mainparse
}
} else {
goto wantedvalue
//.........这里部分代码省略.........
开发者ID:chenbk85,项目名称:nephele,代码行数:101,代码来源:processplan_ffjson.go
示例7: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
case 's':
if bytes.Equal(ffj_key_Incident_Status, kn) {
currentKey = ffj_t_Incident_Status
state = fflib.FFParse_want_colon
goto mainparse
} 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
开发者ID:postfix,项目名称:bangarang,代码行数:67,代码来源:incident_ffjson.go
示例8: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
currentKey = ffj_t_State_Pid
state = fflib.FFParse_want_colon
goto mainparse
}
case 'v':
if bytes.Equal(ffj_key_State_Version, kn) {
currentKey = ffj_t_State_Version
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.SimpleLetterEqualFold(ffj_key_State_BundlePath, kn) {
currentKey = ffj_t_State_BundlePath
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_State_Pid, kn) {
currentKey = ffj_t_State_Pid
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_State_ID, kn) {
currentKey = ffj_t_State_ID
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_State_Version, kn) {
currentKey = ffj_t_State_Version
state = fflib.FFParse_want_colon
goto mainparse
}
currentKey = ffj_t_Stateno_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 {
case ffj_t_State_Version:
goto handle_Version
case ffj_t_State_ID:
goto handle_ID
case ffj_t_State_Pid:
goto handle_Pid
case ffj_t_State_BundlePath:
开发者ID:jimmidyson,项目名称:runc,代码行数:67,代码来源:state_ffjson.go
示例9: 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 'P':
if bytes.Equal(ffj_key_Event_Payload, kn) {
currentKey = ffj_t_Event_Payload
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
}
case 't':
if bytes.Equal(ffj_key_Event_Type, kn) {
currentKey = ffj_t_Event_Type
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.SimpleLetterEqualFold(ffj_key_Event_Type, kn) {
currentKey = ffj_t_Event_Type
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Event_Service, kn) {
currentKey = ffj_t_Event_Service
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Event_Payload, kn) {
currentKey = ffj_t_Event_Payload
state = fflib.FFParse_want_colon
goto mainparse
}
currentKey = ffj_t_Eventno_such_key
state = fflib.FFParse_want_colon
//.........这里部分代码省略.........
开发者ID:THUNDERGROOVE,项目名称:census,代码行数:101,代码来源:event_stream_ffjson.go
示例10: UnmarshalJSONFFLexer
func (uj *JSONError) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error {
var err error = nil
currentKey := ffj_t_JSONErrorbase
_ = 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_JSONErrorno_such_key
state = fflib.FFParse_want_colon
goto mainparse
} else {
switch kn[0] {
case 'c':
if bytes.Equal(ffj_key_JSONError_Code, kn) {
currentKey = ffj_t_JSONError_Code
state = fflib.FFParse_want_colon
goto mainparse
}
case 'm':
if bytes.Equal(ffj_key_JSONError_Message, kn) {
currentKey = ffj_t_JSONError_Message
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_JSONError_MoreInfo, kn) {
currentKey = ffj_t_JSONError_MoreInfo
state = fflib.FFParse_want_colon
goto mainparse
}
case 's':
if bytes.Equal(ffj_key_JSONError_Status, kn) {
currentKey = ffj_t_JSONError_Status
state = fflib.FFParse_want_colon
goto mainparse
}
case 't':
if bytes.Equal(ffj_key_JSONError_Type, kn) {
currentKey = ffj_t_JSONError_Type
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.SimpleLetterEqualFold(ffj_key_JSONError_MoreInfo, kn) {
currentKey = ffj_t_JSONError_MoreInfo
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_JSONError_Message, kn) {
//.........这里部分代码省略.........
开发者ID:raiqub,项目名称:web,代码行数:101,代码来源:jsonerror_ffjson.go
示例11: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
if bytes.Equal(ffj_key_Handtekening_Straat, kn) {
currentKey = ffj_t_Handtekening_Straat
state = fflib.FFParse_want_colon
goto mainparse
}
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
开发者ID:GeenPeil,项目名称:teken,代码行数:67,代码来源:handtekening.pb_ffjson.go
示例12: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
case 't':
if bytes.Equal(ffj_key_Fingerprint_Timestamp, kn) {
currentKey = ffj_t_Fingerprint_Timestamp
state = fflib.FFParse_want_colon
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
开发者ID:schollz,项目名称:find,代码行数:67,代码来源:fingerprint_ffjson.go
示例13: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
currentKey = ffj_t_ClientEntry_ClientID
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_ClientEntry_ClientSecret, kn) {
currentKey = ffj_t_ClientEntry_ClientSecret
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_ClientEntry_ClientType, kn) {
currentKey = ffj_t_ClientEntry_ClientType
state = fflib.FFParse_want_colon
goto mainparse
}
case 'j':
if bytes.Equal(ffj_key_ClientEntry_JavascriptOrigins, kn) {
currentKey = ffj_t_ClientEntry_JavascriptOrigins
state = fflib.FFParse_want_colon
goto mainparse
}
case 'r':
if bytes.Equal(ffj_key_ClientEntry_RedirectUris, kn) {
currentKey = ffj_t_ClientEntry_RedirectUris
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.EqualFoldRight(ffj_key_ClientEntry_AllowedScopes, kn) {
currentKey = ffj_t_ClientEntry_AllowedScopes
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_ClientEntry_AllowedGrants, kn) {
currentKey = ffj_t_ClientEntry_AllowedGrants
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_ClientEntry_JavascriptOrigins, kn) {
currentKey = ffj_t_ClientEntry_JavascriptOrigins
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_ClientEntry_RedirectUris, kn) {
currentKey = ffj_t_ClientEntry_RedirectUris
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.AsciiEqualFold(ffj_key_ClientEntry_ClientType, kn) {
currentKey = ffj_t_ClientEntry_ClientType
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_ClientEntry_ClientSecret, kn) {
currentKey = ffj_t_ClientEntry_ClientSecret
state = fflib.FFParse_want_colon
开发者ID:raiqub,项目名称:oauth,代码行数:67,代码来源:models_ffjson.go
示例14: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
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
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Event_Color, kn) {
currentKey = ffj_t_Event_Color
state = fflib.FFParse_want_colon
开发者ID:strawmang,项目名称:strawmang,代码行数:67,代码来源:ffjson_chat.go
示例15: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
if bytes.Equal(ffj_key_Collection_Hidden, kn) {
currentKey = ffj_t_Collection_Hidden
state = fflib.FFParse_want_colon
goto mainparse
}
case 'N':
if bytes.Equal(ffj_key_Collection_Name, kn) {
currentKey = ffj_t_Collection_Name
state = fflib.FFParse_want_colon
goto mainparse
}
case 'R':
if bytes.Equal(ffj_key_Collection_ResolveList, kn) {
currentKey = ffj_t_Collection_ResolveList
state = fflib.FFParse_want_colon
goto mainparse
}
case 'U':
if bytes.Equal(ffj_key_Collection_UnknownCount, kn) {
currentKey = ffj_t_Collection_UnknownCount
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.EqualFoldRight(ffj_key_Collection_ResolveList, kn) {
currentKey = ffj_t_Collection_ResolveList
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Collection_Name, kn) {
currentKey = ffj_t_Collection_Name
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Collection_Hidden, kn) {
currentKey = ffj_t_Collection_Hidden
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Collection_UnknownCount, kn) {
currentKey = ffj_t_Collection_UnknownCount
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Collection_Dynamic, kn) {
currentKey = ffj_t_Collection_Dynamic
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Collection_Count, kn) {
currentKey = ffj_t_Collection_Count
state = fflib.FFParse_want_colon
开发者ID:THUNDERGROOVE,项目名称:census,代码行数:67,代码来源:collections_ffjson.go
示例16: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
currentKey = ffj_t_Outfit_ID
state = fflib.FFParse_want_colon
goto mainparse
}
case 't':
if bytes.Equal(ffj_key_Outfit_TimeCreated, kn) {
currentKey = ffj_t_Outfit_TimeCreated
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.AsciiEqualFold(ffj_key_Outfit_MemberCount, kn) {
currentKey = ffj_t_Outfit_MemberCount
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.AsciiEqualFold(ffj_key_Outfit_LeaderCharID, kn) {
currentKey = ffj_t_Outfit_LeaderCharID
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.AsciiEqualFold(ffj_key_Outfit_TimeCreated, kn) {
currentKey = ffj_t_Outfit_TimeCreated
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Outfit_AliasLower, kn) {
currentKey = ffj_t_Outfit_AliasLower
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Outfit_Alias, kn) {
currentKey = ffj_t_Outfit_Alias
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.AsciiEqualFold(ffj_key_Outfit_NameLower, kn) {
currentKey = ffj_t_Outfit_NameLower
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Outfit_Name, kn) {
currentKey = ffj_t_Outfit_Name
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.AsciiEqualFold(ffj_key_Outfit_ID, kn) {
currentKey = ffj_t_Outfit_ID
state = fflib.FFParse_want_colon
goto mainparse
}
currentKey = ffj_t_Outfitno_such_key
state = fflib.FFParse_want_colon
goto mainparse
开发者ID:THUNDERGROOVE,项目名称:census,代码行数:67,代码来源:outfit_ffjson.go
示例17: 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) {
//.........这里部分代码省略.........
开发者ID:postfix,项目名称:bangarang,代码行数:101,代码来源:event_ffjson.go
示例18: 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) {
//.........这里部分代码省略.........
开发者ID:yandex,项目名称:pandora,代码行数:101,代码来源:http_ffjson.go
示例19: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
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) {
cur
|
请发表评论