COOPY » Guide
version 0.6.5
|
#include <stdio.h>
#include "config.h"
#include "blob.h"
#include "csv.h"
#include <coopy/SheetCompare.h>
#include <coopy/CsvRender.h>
#include <coopy/CsvTextBook.h>
#include <coopy/SheetPatcher.h>
#include <coopy/PolyBook.h>
#include <coopy/BookCompare.h>
#include "ssfossil.h"
Go to the source code of this file.
Functions | |
int | csv_merge (Blob *pPivot, Blob *pV1, Blob *pV2, Blob *pOut) |
int | csv_render (Blob *in, Blob *out) |
int | csvs_diff (Blob *pV1, Blob *pV2, Blob *pOut) |
void | cvs_merge_cb1 (void *s, size_t i, void *p, int quoted) |
void | cvs_merge_cb2 (int c, void *p) |
int | blob_to_csv (Blob *pIn, CsvSheet &csv) |
int | blob_to_csvs (Blob *pIn, CsvTextBook &csvs) |
void | blob_show_csv (const DataSheet &csv, const SheetStyle &style, Blob *pOut) |
void | blob_show_csvs (CsvTextBook &csvs, Blob *pOut) |
void blob_show_csv | ( | const DataSheet & | csv, |
const SheetStyle & | style, | ||
Blob * | pOut | ||
) |
Definition at line 70 of file csv_hooks.cpp.
References coopy::store::DataSheet::encode().
Referenced by csvs_diff().
void blob_show_csvs | ( | CsvTextBook & | csvs, |
Blob * | pOut | ||
) |
Definition at line 74 of file csv_hooks.cpp.
References coopy::store::CsvTextBook::writeCsvsData().
Referenced by csv_merge().
int blob_to_csv | ( | Blob * | pIn, |
CsvSheet & | csv | ||
) |
Definition at line 36 of file csv_hooks.cpp.
References cvs_merge_cb1(), cvs_merge_cb2(), coopy::store::SheetStyle::getDelimiter(), coopy::store::CsvSheet::isValid(), and NULL.
Referenced by csv_render().
int blob_to_csvs | ( | Blob * | pIn, |
CsvTextBook & | csvs | ||
) |
Definition at line 61 of file csv_hooks.cpp.
References NULL, and coopy::store::CsvTextBook::readCsvsData().
Referenced by csv_merge(), and csvs_diff().
int csv_merge | ( | Blob * | pPivot, |
Blob * | pV1, | ||
Blob * | pV2, | ||
Blob * | pOut | ||
) |
Definition at line 81 of file csv_hooks.cpp.
References coopy::cmp::Patcher::attachOutputBook(), blob_show_csvs(), blob_to_csvs(), coopy::cmp::BookCompare::compare(), NULL, and ssfossil_debug().
int csv_render | ( | Blob * | in, |
Blob * | out | ||
) |
Definition at line 121 of file csv_hooks.cpp.
References blob_to_csv(), CsvRender::renderHtml(), CsvRender::setDecorate(), and CsvRender::setFull().
int csvs_diff | ( | Blob * | pV1, |
Blob * | pV2, | ||
Blob * | pOut | ||
) |
Definition at line 135 of file csv_hooks.cpp.
References coopy::cmp::Patcher::attachBook(), coopy::cmp::Patcher::attachOutputBook(), blob_show_csv(), blob_to_csvs(), coopy::cmp::BookCompare::compare(), COOPY_ASSERT, coopy::store::PolyBook::copy(), NULL, coopy::store::TextBook::readSheetByIndex(), and coopy::store::PolyBook::take().
void cvs_merge_cb1 | ( | void * | s, |
size_t | i, | ||
void * | p, | ||
int | quoted | ||
) |
Definition at line 28 of file csv_hooks.cpp.
Referenced by blob_to_csv().
void cvs_merge_cb2 | ( | int | c, |
void * | p | ||
) |
Definition at line 32 of file csv_hooks.cpp.
Referenced by blob_to_csv().