MCPcopy Create free account
hub / github.com/beefytech/Beef / FormatI32

Function FormatI32

BeefySysLib/BeefySysLib.cpp:521–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519}
520
521int32 FormatI32(const StringView& str)
522{
523 String val = String(str);
524 if (val.StartsWith('#'))
525 {
526 return (int32)strtoll(val.c_str() + 1, NULL, 16);
527 }
528 if (val.StartsWith("0x"))
529 {
530 return (int32)strtoll(val.c_str() + 2, NULL, 16);
531 }
532 return atoi(val.c_str());
533}
534
535BF_EXPORT void BF_CALLTYPE Gfx_ApplyEffect(TextureSegment* destTextureSegment, TextureSegment* srcTextureSegment, char* optionsPtr)
536{

Callers 1

Gfx_ApplyEffectFunction · 0.85

Calls 3

StringClass · 0.85
StartsWithMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected