1// Translated from C to Rust. The original C code can be found at
2// https://github.com/ulfjack/ryu and carries the following license:
3//
4// Copyright 2018 Ulf Adams
5//
6// The contents of this file may be used under the terms of the Apache License,
7// Version 2.0.
8//
9// (See accompanying file LICENSE-Apache or copy at
10// http://www.apache.org/licenses/LICENSE-2.0)
11//
12// Alternatively, the contents of this file may be used under the terms of
13// the Boost Software License, Version 1.0.
14// (See accompanying file LICENSE-Boost or copy at
15// https://www.boost.org/LICENSE_1_0.txt)
16//
17// Unless required by applicable law or agreed to in writing, this software
18// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19// KIND, either express or implied.
20
21// A table of all two-digit numbers. This is used to speed up decimal digit
22// generation by copying pairs of digits into the final output.
23pub static DIGIT_TABLE: [u8; 200] = *b"\
24 0001020304050607080910111213141516171819\
25 2021222324252627282930313233343536373839\
26 4041424344454647484950515253545556575859\
27 6061626364656667686970717273747576777879\
28 8081828384858687888990919293949596979899";
29