コード例 #1
0
// Full Category Path or Not
static gchar*
add_category (gchar *so_far, Split *split, gboolean full, CsvExportInfo *info)
{
    gchar       *cat;
    gchar       *conv;
    gchar       *result;

    if (full)
        cat = xaccSplitGetCorrAccountFullName (split);
    else
        cat = g_strdup(xaccSplitGetCorrAccountName (split));

    conv = csv_txn_test_field_string (info, cat);
    result = g_strconcat (so_far, conv, info->mid_sep, NULL);
    g_free (cat);
    g_free (conv);
    g_free (so_far);
    return result;
}
コード例 #2
0
ファイル: Split.hpp プロジェクト: kleopatra999/gnucash-2
 QString getCorrAccountFullName() const
 {
     return gchar_to_QString(xaccSplitGetCorrAccountFullName(get()));
 }