home *** CD-ROM | disk | FTP | other *** search
-
-
-
- mmmmbbbbrrrrssssttttrrrriiiinnnngggg((((3333SSSS)))) mmmmbbbbrrrrssssttttrrrriiiinnnngggg((((3333SSSS))))
-
-
-
- NNNNAAAAMMMMEEEE
- _mmmm_bbbb_rrrr_ssss_tttt_rrrr_iiii_nnnn_gggg: _mmmm_bbbb_ssss_rrrr_tttt_oooo_wwww_cccc_ssss, _wwww_cccc_ssss_rrrr_tttt_oooo_mmmm_bbbb_ssss - multibyte string functions
- (restartable)
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_wwww_cccc_hhhh_aaaa_rrrr_...._hhhh_>>>>
- _ssss_iiii_zzzz_eeee______tttt _mmmm_bbbb_ssss_rrrr_tttt_oooo_wwww_cccc_ssss _((((_wwww_cccc_hhhh_aaaa_rrrr______tttt _****_dddd_ssss_tttt_,,,, _cccc_oooo_nnnn_ssss_tttt _cccc_hhhh_aaaa_rrrr _****_****_ssss_rrrr_cccc_,,,, _ssss_iiii_zzzz_eeee______tttt _nnnn_,,,, _mmmm_bbbb_ssss_tttt_aaaa_tttt_eeee______tttt
- _****_pppp_ssss_))))_;;;;
- _ssss_iiii_zzzz_eeee______tttt _wwww_cccc_ssss_rrrr_tttt_oooo_mmmm_bbbb_ssss _((((_cccc_hhhh_aaaa_rrrr _****_dddd_ssss_tttt_,,,, _cccc_oooo_nnnn_ssss_tttt _wwww_cccc_hhhh_aaaa_rrrr______tttt _****_****_ssss_rrrr_cccc_,,,, _ssss_iiii_zzzz_eeee______tttt _nnnn_,,,, _mmmm_bbbb_ssss_tttt_aaaa_tttt_eeee______tttt
- _****_pppp_ssss_))))_;;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _mmmm_bbbb_ssss_rrrr_tttt_oooo_wwww_cccc_ssss function converts a sequence of multibyte characters, from
- the array indirectly pointed to by _s_r_c into a sequence of corresponding
- wide character codes, and stores these codes into the array pointed to by
- _d_s_t, stopping after _n codes are stored or a code with value zero (a
- converted null character) is stored, if _d_s_t is not a null pointer.
- Conversion stops in either of the following cases: when a sequence of
- bytes is encountered that does not comprise a valid character, or when _n
- converted codes have been stored into the array pointed to by _d_s_t which
- is not a null pointer, or when the multibyte string including a null
- character is converted completely and stored into the array. If _d_s_t is a
- null pointer, the value of _n is ignored, and the function returns the
- number of characters required to convert the entire string. If _d_s_t is not
- a null pointer, the pointer object pointed to by _s_r_c is assigned either a
- null pointer if conversion stopped due to reaching a null character, or
- the position just past the last character converted if any. If conversion
- stopped due to reaching a null character and if _d_s_t is not a null
- pointer, the conversion state is initialized. If _p_s is a null pointer,
- the _mmmm_bbbb_ssss_rrrr_tttt_oooo_wwww_cccc_ssss function uses its own internal mbstate_t object, which is
- initialised at program startup. Otherwise, the mbstate_t object pointed
- to by _p_s is used.
-
-
- The _wwww_cccc_ssss_tttt_oooo_mmmm_bbbb_ssss function converts a sequence of wide character codes, from
- the array indirectly pointed to by _s_r_c into a sequence of multibyte
- characters, and stores these multibyte characters into the array pointed
- to by _d_s_t, stopping if a multibyte character would exceed the limit of _n
- total bytes or if a null character is stored. If _d_s_t is a null pointer,
- _wwww_cccc_ssss_tttt_oooo_mmmm_bbbb_ssss returns the number of bytes required to convert the entire array
- regardless of the value of _n, but no values are stored. If _d_s_t is not a
- null pointer, the converted characters are stored into the array pointed
- to by _d_s_t. Conversion continues up to and including a null wide
- character, which is also stored. Conversion stops in the following cases:
- when a code is reached that does not correspond to a valid character, or
- when the next character would exceed the limit of _n total bytes to be
- stored in the array pointed to by _d_s_t which is not a null pointer, or
- when the wide character string including a null wide character is
- converted completely and stored into the array of the multibyte
- characters. If _d_s_t is not a null pointer, the pointer object pointed to
- by _s_r_c is assigned either a null pointer if conversion stopped due to
- reaching a null wide character or the address just past the last wide
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- mmmmbbbbrrrrssssttttrrrriiiinnnngggg((((3333SSSS)))) mmmmbbbbrrrrssssttttrrrriiiinnnngggg((((3333SSSS))))
-
-
-
- character converted if any. If conversion stopped due to reaching a null
- wide character, the conversion state is initialized. If ps is a null
- pointer, the _wwww_cccc_ssss_rrrr_tttt_oooo_mmmm_bbbb_ssss function uses its own internal mbstate_t object.
- Otherwise, the mbstate_t object pointed to by _p_s is used.
-
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- If an invalid multibyte character sequence is encountered, _mmmm_bbbb_ssss_rrrr_tttt_oooo_wwww_cccc_ssss
- returns (_ssss_iiii_zzzz_eeee______tttt)-1 with _eeee_rrrr_rrrr_nnnn_oooo set equal to _EEEE_IIII_LLLL_SSSS_EEEE_QQQQ; the conversion state
- is undefined. Otherwise, it returns the number of characters converted
- not including the terminating null code, if any.
-
- If a wide character code is encountered that does not correspond to a
- valid multibyte character, _wwww_cccc_ssss_tttt_oooo_mmmm_bbbb_ssss returns (_ssss_iiii_zzzz_eeee______tttt)-1 with _eeee_rrrr_rrrr_nnnn_oooo set
- equal to _EEEE_IIII_LLLL_SSSS_EEEE_QQQQ. Otherwise, _wwww_cccc_ssss_tttt_oooo_mmmm_bbbb_ssss returns the number of bytes
- modified, not including a terminating null character, if any.
-
-
- NNNNOOOOTTTTEEEESSSS
- The behaviour of those functions is affected by the LC_CTYPE category of
- the current locale. (Stateful encodings are not supported on IRIX.)
- Those functions are supported in n32 and 64 bit C Libraries for IRIX
- 6.5.17 and later versions.
-
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _wwww_cccc_hhhh_rrrr_tttt_bbbb_llll(1M), _mmmm_bbbb_cccc_hhhh_aaaa_rrrr(3C), _mmmm_bbbb_ssss_tttt_rrrr_iiii_nnnn_gggg(3C), _mmmm_bbbb_rrrr_cccc_hhhh_aaaa_rrrr(3S), _ssss_eeee_tttt_llll_oooo_cccc_aaaa_llll_eeee(3C),
- _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn(5), _<<<<_wwww_cccc_hhhh_aaaa_rrrr_...._hhhh_>>>>.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
-