components/connectivity/Bluetooth_5.0/3rdparty/NimBLE_1_2_0/nimble/host/tools/log2smtest.rb
# to_i(0) but interpret leading zeros as decimal.
to_i(0) but interpret leading zeros as decimal.
to_i ( 0 ) but interpret leading zeros as decimal .
def s_to_i(s)
    if s[0..1] == "0x"
        return s.to_i(16)
    else
        return s.to_i(10)
    end
end
def s_to_i ( s ) if s [ 0 .. 1 ] == "0x" return s . to_i ( 16 ) else return s . to_i ( 10 ) end end
to_i(0) but interpret leading zeros as decimal.
to_i ( 0 ) but interpret leading zeros as decimal .
s
<not_specific>