2003-07-24 23:23:19 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
|
|
|
*
|
2016-05-31 21:45:07 +00:00
|
|
|
* Copyright (C) 2003, International Business Machines
|
|
|
|
* Corporation and others. All Rights Reserved.
|
2003-07-24 23:23:19 +00:00
|
|
|
*
|
|
|
|
*******************************************************************************
|
|
|
|
* file name: nfsprep.h
|
|
|
|
* encoding: US-ASCII
|
|
|
|
* tab size: 8 (not used)
|
|
|
|
* indentation:4
|
|
|
|
*
|
|
|
|
* created on: 2003jul11
|
|
|
|
* created by: Ram Viswanadha
|
|
|
|
*/
|
|
|
|
#ifndef _NFSPREP_H
|
|
|
|
#define _NFSPREP_H
|
|
|
|
|
2003-12-11 17:40:28 +00:00
|
|
|
#include "unicode/utypes.h"
|
|
|
|
|
2003-07-24 23:23:19 +00:00
|
|
|
#if !UCONFIG_NO_IDNA
|
|
|
|
|
|
|
|
#include "unicode/ustring.h"
|
|
|
|
#include "unicode/usprep.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
|
2003-12-03 23:36:31 +00:00
|
|
|
/* this enum must be kept in syn with NFS4DataFileNames array in nfsprep.c */
|
2003-07-24 23:23:19 +00:00
|
|
|
enum NFS4ProfileState{
|
|
|
|
NFS4_CS_PREP_CS,
|
|
|
|
NFS4_CS_PREP_CI,
|
|
|
|
NFS4_CIS_PREP,
|
|
|
|
NFS4_MIXED_PREP_PREFIX,
|
|
|
|
NFS4_MIXED_PREP_SUFFIX
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef enum NFS4ProfileState NFS4ProfileState;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Prepares the source UTF-8 string for use in file names and
|
|
|
|
* returns UTF-8 string on output.
|
|
|
|
* @param src
|
|
|
|
* @param srcLen
|
|
|
|
* @param dest
|
|
|
|
* @param destCapacity
|
|
|
|
* @param state
|
|
|
|
* @param parseError
|
|
|
|
* @param status
|
|
|
|
*/
|
|
|
|
int32_t
|
|
|
|
nfs4_prepare(const char* src, int32_t srcLength,
|
|
|
|
char* dest, int32_t destCapacity,
|
|
|
|
NFS4ProfileState state,
|
|
|
|
UParseError* parseError,
|
|
|
|
UErrorCode* status);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param dest
|
|
|
|
* @param destCapacity
|
|
|
|
* @param src
|
|
|
|
* @param srcLen
|
|
|
|
* @param state
|
|
|
|
* @param parseError
|
|
|
|
* @param status
|
|
|
|
*/
|
|
|
|
int32_t
|
|
|
|
nfs4_mixed_prepare( const char* src, int32_t srcLength,
|
|
|
|
char* dest, int32_t destCapacity,
|
|
|
|
UParseError* parseError,
|
|
|
|
UErrorCode* status);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param dest
|
|
|
|
* @param destCapacity
|
|
|
|
* @param src
|
|
|
|
* @param srcLen
|
|
|
|
* @param state
|
|
|
|
* @param parseError
|
|
|
|
* @param status
|
|
|
|
*/
|
|
|
|
int32_t
|
|
|
|
nfs4_cis_prepare( const char* src, int32_t srcLength,
|
|
|
|
char* dest, int32_t destCapacity,
|
|
|
|
UParseError* parseError,
|
|
|
|
UErrorCode* status);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param dest
|
|
|
|
* @param destCapacity
|
|
|
|
* @param src
|
|
|
|
* @param srcLen
|
|
|
|
* @param state
|
|
|
|
* @param parseError
|
|
|
|
* @param status
|
|
|
|
*/
|
|
|
|
int32_t
|
|
|
|
nfs4_cs_prepare( const char* src, int32_t srcLength,
|
|
|
|
char* dest, int32_t destCapacity,
|
|
|
|
UBool isCaseSensitive,
|
|
|
|
UParseError* parseError,
|
|
|
|
UErrorCode* status);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
/*
|
|
|
|
* Hey, Emacs, please set the following:
|
|
|
|
*
|
|
|
|
* Local Variables:
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
*/
|