chromium/third_party/pdfium/core/fxcrt/fx_extension.cpp

// Copyright 2014 The PDFium Authors
// 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

#include "core/fxcrt/fx_extension.h"

#include <wchar.h>

#include "core/fxcrt/check.h"
#include "core/fxcrt/compiler_specific.h"
#include "core/fxcrt/fx_system.h"
#include "core/fxcrt/utf16.h"
#include "core/fxcrt/widestring.h"

namespace {

time_t DefaultTimeFunction() {}

struct tm* DefaultLocaltimeFunction(const time_t* tp) {}

time_t (*g_time_func)() =;
struct tm* (*g_localtime_func)(const time_t*) =;

}  // namespace

float FXSYS_wcstof(WideStringView pwsStr, size_t* pUsedLen) {}

wchar_t* FXSYS_wcsncpy(wchar_t* dstStr, const wchar_t* srcStr, size_t count) {}

// TODO(tsepez): should be UNSAFE_BUFFER_USAGE.
void FXSYS_IntToTwoHexChars(uint8_t n, char* buf) {}

// TODO(tsepez): This is UNSAFE_BUFFER_USAGE as well.
void FXSYS_IntToFourHexChars(uint16_t n, char* buf) {}

// TODO(tsepez): This is UNSAFE_BUFFER_USAGE as well.
size_t FXSYS_ToUTF16BE(uint32_t unicode, char* buf) {}

void FXSYS_SetTimeFunction(time_t (*func)()) {}

void FXSYS_SetLocaltimeFunction(struct tm* (*func)(const time_t*)) {}

time_t FXSYS_time(time_t* tloc) {}

struct tm* FXSYS_localtime(const time_t* tp) {}