summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_string.h
blob: 9cc0b251eb47175088be75c00f8e371ff82a794e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com

#ifndef CORE_FXCRT_FX_STRING_H_
#define CORE_FXCRT_FX_STRING_H_

#include "core/fxcrt/cfx_bytestring.h"
#include "core/fxcrt/cfx_widestring.h"

#define FXBSTR_ID(c1, c2, c3, c4)                                      \
  (((uint32_t)c1 << 24) | ((uint32_t)c2 << 16) | ((uint32_t)c3 << 8) | \
   ((uint32_t)c4))

CFX_ByteString FX_UTF8Encode(const CFX_WideStringC& wsStr);
float FX_atof(const CFX_ByteStringC& str);
float FX_atof(const CFX_WideStringC& wsStr);
bool FX_atonum(const CFX_ByteStringC& str, void* pData);
FX_STRSIZE FX_ftoa(float f, char* buf);

#endif  // CORE_FXCRT_FX_STRING_H_