|
1 | 1 | /* |
2 | | - * Copyright (C) Alexander Borisov |
3 | | - * |
4 | | - * Based on nxt_dtoa.c from NGINX NJS project |
5 | | - * |
6 | | - * Copyright (C) Dmitry Volyntsev |
7 | | - * Copyright (C) NGINX, Inc. |
8 | | - * |
9 | | - * Grisu2 algorithm implementation for printing floating-point numbers based |
10 | | - * upon the work of Milo Yip and Doug Currie. |
11 | | - * |
12 | | - * For algorithm information, see Loitsch, Florian. "Printing |
13 | | - * floating-point numbers quickly and accurately with integers." ACM Sigplan |
14 | | - * Notices 45.6 (2010): 233-243. |
15 | | - * |
16 | | - * Copyright (C) 2015 Doug Currie |
17 | | - * based on dtoa_milo.h |
18 | | - * Copyright (C) 2014 Milo Yip |
| 2 | + * Copyright (C) 2015-2019 NGINX, Inc. |
| 3 | + * Copyright (C) 2019-2025 F5, Inc. |
| 4 | + * Copyright (C) 2015-2021 Igor Sysoev |
| 5 | + * Copyright (C) 2017-2025 Dmitry Volyntsev |
| 6 | + * Copyright (C) 2019-2022 Alexander Borisov |
| 7 | + * Copyright (C) 2022-2025 Vadim Zhestikov |
| 8 | + * All rights reserved. |
19 | 9 | * |
20 | | - * Permission is hereby granted, free of charge, to any person obtaining a copy |
21 | | - * of this software and associated documentation files (the "Software"), to deal |
22 | | - * in the Software without restriction, including without limitation the rights |
23 | | - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
24 | | - * copies of the Software, and to permit persons to whom the Software is |
25 | | - * furnished to do so, subject to the following conditions: |
| 10 | + * Redistribution and use in source and binary forms, with or without |
| 11 | + * modification, are permitted provided that the following conditions |
| 12 | + * are met: |
| 13 | + * 1. Redistributions of source code must retain the above copyright |
| 14 | + * notice, this list of conditions and the following disclaimer. |
| 15 | + * 2. Redistributions in binary form must reproduce the above copyright |
| 16 | + * notice, this list of conditions and the following disclaimer in the |
| 17 | + * documentation and/or other materials provided with the distribution. |
26 | 18 | * |
27 | | - * The above copyright notice and this permission notice shall be included in |
28 | | - * all copies or substantial portions of the Software. |
29 | | - * |
30 | | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
31 | | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
32 | | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
33 | | - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
34 | | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
35 | | - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
36 | | - * THE SOFTWARE. |
| 19 | + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND |
| 20 | + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 21 | + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 22 | + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE |
| 23 | + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 24 | + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
| 25 | + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 26 | + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
| 27 | + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 28 | + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 29 | + * SUCH DAMAGE. |
| 30 | + */ |
| 31 | + |
| 32 | +/* |
| 33 | + * Copyright (C) Alexander Borisov |
37 | 34 | */ |
38 | 35 |
|
39 | 36 | #include "lexbor/core/str.h" |
|
0 commit comments