1/* This file is part of Libspectre.
2 *
3 * Copyright (C) 2007 Albert Astals Cid <aacid@kde.org>
4 * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org>
5 *
6 * Libspectre is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
10 *
11 * Libspectre is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20
21/* This function comes from spectre-utils from libspectre */
22
23#ifndef GSTRTOD_H
24#define GSTRTOD_H
25
26#include "poppler_private_export.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32/* This function behaves like the standard atof()/(strtod() function
33 * does in the C locale. It does this without actually changing
34 * the current locale, since that would not be thread-safe.
35 * A limitation of the implementation is that this function
36 * will still accept localized versions of infinities and NANs.
37 */
38double POPPLER_PRIVATE_EXPORT gatof(const char *nptr);
39double gstrtod(const char *nptr, char **endptr);
40
41#ifdef __cplusplus
42}
43#endif
44
45#endif
46

source code of poppler/goo/gstrtod.h