MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / __identify_padding

Method __identify_padding

system/lib/libcxx/src/locale.cpp:4121–4136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4119}
4120
4121char* __num_put_base::__identify_padding(char* __nb, char* __ne, const ios_base& __iob) {
4122 switch (__iob.flags() & ios_base::adjustfield) {
4123 case ios_base::internal:
4124 if (__nb[0] == '-' || __nb[0] == '+')
4125 return __nb + 1;
4126 if (__ne - __nb >= 2 && __nb[0] == '0' && (__nb[1] == 'x' || __nb[1] == 'X'))
4127 return __nb + 2;
4128 break;
4129 case ios_base::left:
4130 return __ne;
4131 case ios_base::right:
4132 default:
4133 break;
4134 }
4135 return __nb;
4136}
4137
4138// time_get
4139

Callers 2

__do_put_integralMethod · 0.80

Calls 1

flagsMethod · 0.80

Tested by

no test coverage detected