1 Star 1 Fork 0

纵使有花兼明月何堪无酒亦无人/php_ffi_office

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
libutil.h 3.88 KB
一键复制 编辑 原始数据 按行查看 历史
纵使有花兼明月何堪无酒亦无人 提交于 2022-05-09 13:15 +08:00 . 更新
/* Code generated by cmd/cgo; DO NOT EDIT. */
/* package command-line-arguments */
#line 1 "cgo-builtin-export-prolog"
#include <stddef.h> /* for ptrdiff_t below */
#ifndef GO_CGO_EXPORT_PROLOGUE_H
#define GO_CGO_EXPORT_PROLOGUE_H
#ifndef GO_CGO_GOSTRING_TYPEDEF
typedef struct { const char *p; ptrdiff_t n; } _GoString_;
#endif
#endif
/* Start of preamble from import "C" comments. */
/* End of preamble from import "C" comments. */
/* Start of boilerplate cgo prologue. */
#line 1 "cgo-gcc-export-header-prolog"
#ifndef GO_CGO_PROLOGUE_H
#define GO_CGO_PROLOGUE_H
typedef signed char GoInt8;
typedef unsigned char GoUint8;
typedef short GoInt16;
typedef unsigned short GoUint16;
typedef int GoInt32;
typedef unsigned int GoUint32;
typedef long long GoInt64;
typedef unsigned long long GoUint64;
typedef GoInt64 GoInt;
typedef GoUint64 GoUint;
typedef __SIZE_TYPE__ GoUintptr;
typedef float GoFloat32;
typedef double GoFloat64;
typedef float _Complex GoComplex64;
typedef double _Complex GoComplex128;
/*
static assertion to make sure the file is being used on architecture
at least with matching size of GoInt.
*/
typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
#ifndef GO_CGO_GOSTRING_TYPEDEF
typedef _GoString_ GoString;
#endif
typedef void *GoMap;
typedef void *GoChan;
typedef struct { void *t; void *v; } GoInterface;
typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
#endif
/* End of boilerplate cgo prologue. */
#ifdef __cplusplus
extern "C" {
#endif
// NewFile 新建文件
extern void* NewFile();
// Save 保存
extern void Save(void* f, char* fn);
// SaveAs 另存为
extern void SaveAs(void* f, char* fn);
// OpenFile 打开文件
extern void* OpenFile(char* fn);
// NextRow 是否存在下一行 1存在 0 不存在
extern int NextRow(void* r);
// GetRow 获取row对象
extern void* GetRow(void* f, char* sn);
// GetRowData 获取行数据
extern void* GetRowData(void* r);
// Close 关闭
extern void Close(void* f);
// SetActiveSheet 设置默认sheet
extern void SetActiveSheet(void* f, int index);
// SetCellValueInt 设置指定位置值
extern void SetCellValueInt(void* f, char* sn, char* axis, int val);
// SetCellValueDouble 设置指定位置值
extern void SetCellValueDouble(void* f, char* sn, char* axis, double val);
// SetCellValueString 设置指定位置值
extern void SetCellValueString(void* f, char* sn, char* axis, char* val);
// NewSheet 新建sheet 返回sheet编号
extern int NewSheet(void* f, char* sn);
// SetRowHeight 设置行高
extern void SetRowHeight(void* f, char* sn, int row, double height);
// SetRowVisible 设置行显示
extern void SetRowVisible(void* f, char* sn, int row, int visible);
// RemoveRow 删除行
extern void RemoveRow(void* f, char* sn, int row);
// SetRowStyle 设置行类型
extern void SetRowStyle(void* f, char* sn, int start, int end, int styleID);
// SetColStyle 设置列类型
extern void SetColStyle(void* f, char* sn, char* col, int styleID);
// SetCellFormula 设置指定位置公式
extern void SetCellFormula(void* f, char* sn, char* aix, char* c);
// MergeCell 合并单元格
extern void MergeCell(void* f, char* sn, char* aix1, char* aix2);
// UnmergeCell 取消合并单元格
extern void UnmergeCell(void* f, char* sn, char* aix1, char* aix2);
extern int GetRowCount(void* f, char* sn);
// GetSheetCount 获取sheet数量
extern int GetSheetCount(void* f);
// GetCellType 获取cell类型
extern int GetCellType(void* f, char* sn, char* aix);
// GetCellValue 读取指定位置数据
extern char* GetCellValue(void* f, char* sn, char* axis);
// GetCellStyle 获取cell样式
extern int GetCellStyle(void* f, char* sn, char* aix);
// GetActiveSheetIndex 获取当前sheet编号
extern int GetActiveSheetIndex(void* f, char* sn, char* aix);
// GetCellFormula 获指定位置的公式
extern char* GetCellFormula(void* f, char* sn, char* aix);
#ifdef __cplusplus
}
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xavier007/php_ffi_office.git
git@gitee.com:xavier007/php_ffi_office.git
xavier007
php_ffi_office
php_ffi_office
master

搜索帮助