31 lines
855 B
C++
31 lines
855 B
C++
#pragma once
|
|
|
|
#include "engine/workbook.hpp"
|
|
|
|
#include <string>
|
|
#include <string_view>
|
|
|
|
namespace htab {
|
|
|
|
bool import_csv_string(Workbook& wb,
|
|
int sheet_idx,
|
|
std::string_view csv_text,
|
|
std::string* err = nullptr);
|
|
|
|
bool import_csv_file(Workbook& wb,
|
|
int sheet_idx,
|
|
const std::string& path,
|
|
std::string* err = nullptr);
|
|
|
|
std::string export_csv_string(const Workbook& wb,
|
|
int sheet_idx,
|
|
bool export_formulas = false);
|
|
|
|
bool export_csv_file(const Workbook& wb,
|
|
int sheet_idx,
|
|
const std::string& path,
|
|
bool export_formulas = false,
|
|
std::string* err = nullptr);
|
|
|
|
} // namespace htab
|