Main Page   Modules   Data Structures   File List   Data Fields   Globals  

tools.cpp File Reference

Implements header. More...

#include "tools.h"
#include <string>

Go to the source code of this file.

Functions

NAMESPACE_LIBDAR_START dar_infinintdar_tools_get_extended_size (char *s, U_I base)
 Converts string containing an integer with size factor.

char * dar_tools_display_date (dar_infinint *date)
 Converts date in seconds to a human readable format.

char * dar_tools_string_justify_right (char *s, U_I min_size)
 Given a minimum text field size, justifies text to the right of that field.

char * dar_tools_string_justify_center (char *s, U_I min_size)
 Given a minimum text field size, justifies text to the centermost possible, expanding the field as neccessary.

char * dar_tools_string_justify_left (char *s, U_I min_size)
 Given a minimum text field size, justifies text to the leftmost possible, expanding the field as neccessary.

char * dar_tools_string_justify_right_truncate (char *s, U_I fixed_size)
 Given a fixed text field size, justifies text to the rightmost possible, truncating overflow from the right, making overlarge strings appear to be truncated after left justification.

char * dar_tools_string_justify_center_truncate (char *s, U_I fixed_size)
 Given a fixed text field size, justifies text to the centermost possible, truncating all data that does not fit in that size.

char * dar_tools_string_justify_left_truncate (char *s, U_I fixed_size)
 Given a fixed text field size, justifies text to the leftmost possible, truncating all data that does not fit in that size.

char * dar_tools_name_of_uid (U_16 uid)
 Obtains string name of integer user id.

char * dar_tools_name_of_gid (U_16 gid)
 Obtains string name of integer group id.

char * dar_tools_get_cwd ()
 Obtains string representation of current working directory.


Detailed Description

Implements header.

Definition in file tools.cpp.