Changed tree, re-implemented and fixed a lot of problematic areas

This commit is contained in:
Mario Danic
2007-05-31 04:25:39 +00:00
parent 0281fcb717
commit 3e29f914fd
19 changed files with 1397 additions and 756 deletions

View File

@ -30,22 +30,24 @@ extern inline int round_up(int n, int mul)
return div_up(n, mul) * mul;
}
wchar_t *towcs(const char *);
char *str2ascii(const char*);
uint16_t *str2ucs(const char*);
char *convert_str(const char *str, const char *icharset, const char *ocharset);
char *str2d_char(const char*);
char *str2a_char(const char*);
wchar_t *towcs(const char *);
char *str2ascii(const char*, const char *);
uint16_t *str2ucs(const char *, const char *);
char *str2d_char(const char*, const char *);
char *str2a_char(const char*, const char *);
/**
* Create a level 1 directory identifier.
*/
char *iso_1_dirid(const char *src);
char *iso_1_dirid(const char *src, const char *);
/**
* Create a level 2 directory identifier.
*/
char *iso_2_dirid(const char *src);
char *iso_2_dirid(const char *src, const char *);
/**
* Create a level 1 file identifier that consists of a name, extension and
@ -54,7 +56,7 @@ char *iso_2_dirid(const char *src);
* length 3, followed by a separator (;) and a version number (digit 1).
* @return NULL if the original name and extension both are of length 0.
*/
char *iso_1_fileid(const char *src);
char *iso_1_fileid(const char *src, const char *);
/**
* Create a level 2 file identifier that consists of a name, extension and
@ -63,7 +65,7 @@ char *iso_1_fileid(const char *src);
* followed by a separator (;) and a version number (digit 1).
* @return NULL if the original name and extension both are of length 0.
*/
char *iso_2_fileid(const char *src);
char *iso_2_fileid(const char *src, const char *);
/**
* Create a Joliet file or directory identifier that consists of a name,
@ -76,7 +78,7 @@ char *iso_2_fileid(const char *src);
* @param size will be set to the size (in bytes) of the identifier.
* @return NULL if the original name and extension both are of length 0 or the conversion from the current codeset to UCS-2BE is not available.
*/
uint16_t *iso_j_id(const char *src);
uint16_t *iso_j_id(const char *src, const char *icharset);
/**
* FIXME: what are the requirements for these next two? Is this for RR?
@ -85,7 +87,7 @@ uint16_t *iso_j_id(const char *src);
* The resulting file name will not exceed 250 characters.
* @return NULL if the original name and extension both are of length 0.
*/
char *iso_p_fileid(const char *src);
char *iso_p_fileid(const char *src, const char *);
/**
* Create a POSIX portable directory name.