logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

stringprep_profile - API function

Arguments

const char * in input array with UTF-8 string to prepare. char ** out output variable with pointer to newly allocate string. const char * profile name of stringprep profile to use. Stringprep_profile_flags flags a Stringprep_profile_flags value, or 0.

Description

Prepare the input zero terminated UTF-8 string according to the stringprep profile, and return the result in a newly allocated variable. Note that you must convert strings entered in the systems locale into UTF-8 before using this function, see stringprep_locale_to_utf8(). The output out variable must be deallocated by the caller. The flags are one of Stringprep_profile_flags values, or 0. The profile specifies the name of the stringprep profile to use. It must be one of the internally supported stringprep profiles. Return value: Returns STRINGPREP_OK iff successful, or an error code.

Name

stringprep_profile - API function

Reporting Bugs

Report bugs to <help-libidn@gnu.org>. General guidelines for reporting bugs: https://www.gnu.org/gethelp/ GNU Libidn home page: https://www.gnu.org/software/libidn/

See Also

The full documentation for libidn is maintained as a Texinfo manual. If the info and libidn programs are properly installed at your site, the command infolibidn should give you access to the complete manual. As an alternative you may obtain the manual from: https://www.gnu.org/software/libidn/manual/ libidn 1.43 stringprep_profile(3)

Synopsis

#include<stringprep.h>intstringprep_profile(constchar*in,char**out,constchar*profile,Stringprep_profile_flagsflags);

See Also