We're updating the issue view to help you get more done. 

ustdio: need a way to get at the converter.

Description

Add a way to get the UConverter out of a UFile, that way
Callbacks [etc] can be set on the UFile. P.S. is this the right category?

Sources in source/extra/ustdio:

  •  

    •  

      • ustdio.h 1999/08/16 21:51:14 1.1.1.1

      • ustdio.h 1999/10/15 00:57:59
        ***************

      • 29,32 ****

      • 29,33 ----


#include "utypes.h"
+ #include <ucnv.h>

***************

  •  

    •  

      • 34,37 ****

      • 35,40 ----
        typedef struct UFILE UFILE;


+
+
/**

  • Open a UFILE.
    ***************

    •  

      • 136,139 ****

      • 139,149 ----
        UFILE *file);


+
+ /**
+ * Returns an alias to the converter being used for this file.
+ * @param file The UFILE to set.
+ * @return alias to the converter
+ */
+ CAPI UConverter *u_fgetConverter(UFILE *f);

/* Output functions */

  •  

    •  

      • ufile.c 1999/10/07 00:07:49 1.2

      • ufile.c 1999/10/15 01:12:53
        ***************

      • 22,29 ****
        */


#include "ustdio.h"

  • #include "loccache.h"
    #include "ufile.h"
    #include "uloc.h"


#include <string.h>
— 22,30 ---- */

+ #include "uhash.h"
#include "ustdio.h"
#include "ufile.h"
#include "uloc.h"
+ #include "loccache.h"

#include <string.h>
***************

  •  

    •  

      • 296,298 ****

      • 297,305 ----
        return -1;
        return 0;
        + }
        +
        +
        + UConverter * u_fgetConverter(UFILE *file)
        + {
        + return file->fConverter;
        }

Environment

Status

Assignee

TracBot

Reporter

TracBot

Labels

tracCreated

Oct 15, 1999, 3:14 AM

tracReporter

srl@47f6d452943e0474

tracResolution

fixed

tracStatus

closed

Components

Priority

assess