radareorg/radare2

Add commands to create, display and process an RTable

Open

#7 519 ouverte le 18 mai 2017

Voir sur GitHub
 (12 commentaires) (0 réactions) (0 assignés)C (3 229 forks)batch import
FEEDBACK WANTEDconsoleuienhancementgood first issue

Métriques du dépôt

Stars
 (23 826 stars)
Métriques de merge PR
 (Merge moyen 16h 24m) (99 PRs mergées en 30 j)

Description

<pancake> i have implemented the RTable api so we just need to have a command like the agn/age/agg but for tables.

libr/util/table.c:

// TODO: to be implemented
R_API RTable *r_table_clone(RTable *t) {
	// TODO: implement
	return NULL;
}

R_API RTable *r_table_push(RTable *t) {
	// TODO: implement
	return NULL;
}

R_API RTable *r_table_pop(RTable *t) {
	// TODO: implement
	return NULL;
}

R_API void r_table_fromjson(RTable *t, const char *csv) {
	//  TODO
}

R_API void r_table_fromcsv(RTable *t, const char *csv) {
	//  TODO
}

R_API char *r_table_tohtml(RTable *t) {
	// TODO
	return NULL;
}

R_API void r_table_transpose(RTable *t) {
	// When the music stops rows will be cols and cols... rows!
}

R_API void r_table_format(RTable *t, int nth, RTableColumnType *type) {
	// change the format of a specific column
	// change imm base, decimal precission, ...
}

// to compute sum result of all the elements in a column
R_API ut64 r_table_reduce(RTable *t, int nth) {
	// When the music stops rows will be cols and cols... rows!
	return 0;
}

Guide contributeur