ReactOS 0.4.16-dev-736-g28b802b
|
#include <corecrt_internal_mbstring.h>
#include <corecrt_internal_ptd_propagation.h>
#include <corecrt_internal_securecrt.h>
#include <ctype.h>
#include <errno.h>
#include <locale.h>
#include <stdint.h>
#include <stdlib.h>
Go to the source code of this file.
Functions | |
_Post_satisfies_ (return<=cnt &&return<=_String_length_(string+1)) static size_t __cdecl wcsncnt(_In_reads_or_z_(cnt) const wchar_t *string | |
while (--n &&*cp) cp++ | |
if (n &&! *cp) return cp - string+1 | |
_Success_ (return !=static_cast< size_t >(-1)) static size_t __cdecl _wcstombs_l_helper(_Out_writes_(n) char *s | |
if (s &&n==0) return 0 | |
_UCRT_VALIDATE_RETURN (ptd, pwcs !=nullptr, EINVAL,(size_t) -1) | |
if (locale->locinfo->_public._locale_lc_codepage==CP_UTF8) | |
if (s) | |
Variables | |
_In_ size_t | cnt |
wchar_t * | cp = (wchar_t *)string |
_In_z_ const wchar_t * | pwcs |
_In_z_ const wchar_t _In_ size_t | n |
_In_z_ const wchar_t _In_ size_t _Inout_ __crt_cached_ptd_host & | ptd |
int | i |
int | retval |
char | buffer [MB_LEN_MAX] |
BOOL | defused = 0 |
const _locale_t | locale = ptd.get_locale() |
Definition at line 1028 of file fsctrl.c.
Definition at line 106 of file wcstombs.cpp.
if | ( | n &&! * | cp | ) |
if | ( | s && | n = =0 | ) |
if | ( | s | ) |
Definition at line 112 of file wcstombs.cpp.
while | ( | --n &&* | cp | ) |
Definition at line 92 of file wcstombs.cpp.
return cnt |
Definition at line 41 of file wcstombs.cpp.
Referenced by _check_process_enum(), _ItemizeInternal(), _mbsnbcat(), _mbsnbcat_l(), _mbsnbcpy(), _mbsnbcpy_l(), _mbsncat(), _mbsncat_l(), _mbsnccnt(), _mbsncpy(), _mbsncpy_l(), _snprintf(), _test_range_move(), _test_range_moveend(), _test_range_movestart(), _vsnprintf(), StartMenu::AddShellEntries(), alloc_handler_vector(), BSCInternetBindInfo_GetBindString(), Pane::calc_single_width(), Pane::calc_widths(), ChildWndProc(), collection_GetTypeInfoCount(), compat_fopen(), condvar_consumer(), convert_params(), XMLStorage::XMLNode::count(), CountUniqueItems_Aux(), debugstr_flags(), dump_shell_namespace(), dwarf2_parse_array_type(), EnumConnections_Next(), enumeration_callback(), EnumFORMATETC_Next(), ShellDirectory::extract_icons(), file_cvt(), filewrite(), fillbytes(), XMLStorage::XMLNode::filter(), fix_filename_for_c(), FreeTestCmdStrings(), FT_Raccess_Get_DataOffsets(), Function_apply(), Function_call(), handle_address_cmd(), handle_escape_cmd(), HTTP_HttpSendRequestW(), icy_fullread(), inet_ntop(), ShellBrowser::InsertSubitems(), invoketest_GetTypeInfoCount(), XMLStorage::XMLPos::iterate(), XMLStorage::const_XMLPos::iterate(), js_snprintf(), LineDDA(), LISTVIEW_KeyDown(), main(), match_mod(), MCI_SysInfo(), mem_cmp(), mem_cpy(), mem_set(), MIDI_mciFindNextEvent(), move_by_chars(), move_by_words(), movebytes(), MSACM_RegisterAllDrivers(), msvcrt_flush_buffer(), MyDrawText(), mymemchr(), MainFrameBase::OpenShellFolders(), otv_MathItalicsCorrectionInfo_validate(), otv_MathKern_validate(), otv_MathKernInfo_validate(), plain_fullread(), DesktopShellView::PositionIcons(), ShellDirectory::read_directory(), reader_parse_externalid(), CControlPanelEnum::RegisterRegistryCPanelApps(), ResizeTabChild(), SetupDiGetDriverInfoDetailA(), SHPackDispParams(), SHPackDispParamsV(), skip_input_bytes(), srwlock_example_thread(), test_acquire(), test_GetKeyboardLayoutList(), test_object_info(), test_ScriptGetCMap(), test_SQLInstallDriverEx(), test_SQLInstallTranslatorEx(), test_startSession(), translate_line(), write_vc(), xdr_opaque(), xsltNumberFormatGetAnyLevel(), xsltNumberFormatGetMultipleLevel(), and zerobytes().
Definition at line 45 of file wcstombs.cpp.
BOOL defused = 0 |
Definition at line 93 of file wcstombs.cpp.
Referenced by if().
int i |
Definition at line 91 of file wcstombs.cpp.
Referenced by if().
Definition at line 104 of file wcstombs.cpp.
Definition at line 85 of file wcstombs.cpp.
Referenced by _mbstowcs_internal(), _mbstowcs_l(), _mbstowcs_l_helper(), _mbstowcs_s_l(), if(), mbstowcs(), mbstowcs_s(), mk_wcswidth(), mk_wcswidth_cjk(), utf8_mbstowcs(), and utf8_wcstombs().
int retval |
Definition at line 91 of file wcstombs.cpp.
Referenced by $relaytrace$StdcallFunction(), $relaytrace$Stdcalli386x64(), $relaytrace$StdcallVersionRange(), __crt_mbstring::__c16rtomb_utf8(), __emul(), __emulu(), __fp_unordered_compare(), __ll_lshift(), __ll_rshift(), __crt_mbstring::__mbrtoc16_utf8(), __rdtsc(), __readeflags(), __readmsr(), __readpmc(), __segmentlimit(), __ull_rshift(), __crt_mbstring::__wcsrtombs_utf8(), _bittest(), _bittestandcomplement(), _bittestandreset(), _bittestandset(), _byteswap_uint64(), _byteswap_ulong(), _byteswap_ushort(), _cgetws_s(), _clearfp(), _configthreadlocale(), _cputs(), _cwprintf(), _endthreadex(), _fgets(), _handle_error(), _handle_errorf(), _heapset(), _hypot(), _hypotf(), _interlockedbittestandreset(), _interlockedbittestandset(), _InterlockedCompareExchange(), _InterlockedCompareExchange16(), _InterlockedCompareExchange64(), _InterlockedCompareExchange8(), _InterlockedCompareExchangePointer(), _InterlockedExchange(), _InterlockedExchange16(), _InterlockedExchange8(), _InterlockedExchangeAdd(), _InterlockedExchangeAdd16(), _InterlockedExchangeAdd8(), _InterlockedExchangePointer(), _invoke_matherr(), _isindst(), _lrotl(), _lrotr(), _mbsicmp_l(), _mbslwr_s_l(), _mbsspn_l(), _mbsupr_s_l(), _onexit(), _rotl(), _rotl16(), _rotl8(), _rotr(), _rotr16(), _rotr8(), _strxfrm_l(), _Success_(), _tfullpath(), _VCrtDbgReportA(), _VCrtDbgReportW(), _WLocale_mbtowc(), _wsetlocale(), _wsetlocale_nolock(), _y0(), _y1(), _yn(), ata_bblk(), automatic_updates_get_ServiceEnabled(), automatic_updates_get_Settings(), anonymous_namespace{mbrtoc16.cpp}::begin_surrogate_state(), cmd_path(), cmd_prompt(), cmd_set(), COMDLG32_FindReplaceDlgProc(), CommandAssoc(), control_service(), create_bad_block_inode(), create_channelbsc(), create_file(), create_fileW(), create_journal_dev(), create_key(), create_lost_and_found(), create_root_dir(), DATETIME_SetFormatA(), delete_file(), delete_fileW(), DevInstallW(), DIALOG_DoDialogBox(), do_error_dialog(), do_ndr_client_call(), DoTelnetHandshake(), draw_diag_edge(), draw_rect_edge(), EndDialog(), enum_key(), enum_values(), event_do_dialog(), execute_from_key(), ext2_alloc_block(), ext2_allocate_group_table(), ext2_allocate_tables(), ext2_flush(), ext2_mkdir(), ext2_read_block(), ext2_write_bitmaps(), ext2_write_block(), ext2_write_block_bitmap(), ext2_write_inode_bitmap(), ext3_add_entry(), externalui_message_callback(), externalui_message_string_callback(), externalui_record_callback(), FILEDLG95_HandleCustomDialogMessages(), FILEDLG95_SendFileOK(), fill_file_description(), FindExecutableA(), FindExecutableW(), SEALED_::FireAutoReconnecting(), SEALED_::FireConfirmClose(), SEALED_::FireEventInsideApartment(), SEALED_::FireEventOutsideApartment(), SEALED_::FireReceivedTSPublicKey(), FTPFILE_QueryDataAvailable(), full_file_path_name_in_a_CWD(), GDI32_GdipDrawPath(), GDI32_GdipFillPath(), GdipCreateBitmapFromHBITMAP(), GdipCreateFromHDC2(), GdipCreateMetafileFromWmf(), GdipDrawLinesI(), GdipDrawPath(), gen_proxy(), get_func_oi2_flags(), get_owner(), get_stringvalue(), GetAcceptLanguagesA(), getbyte(), GetClassInfoA(), GetClassInfoW(), GetFileVersionInfoExA(), GetFileVersionInfoSizeExA(), getopt(), getopt_long(), CQueryAssociations::GetString(), GetWin32Version(), graphics_from_image(), HandleUninstallCommand(), if(), InstallDevInstEx(), IntDispatchMessage(), IntDrawDiagEdge(), IntDrawRectEdge(), IntDrawState(), IntSyscall(), SEALED_::InvokeSinks(), is_old_shell32(), ITypeInfo_fnInvoke(), journal_init_journal_head_cache(), ldap_start_tls_sA(), ldap_start_tls_sW(), llrint(), llrintf(), llrintl(), LoadStringA(), lrint(), lrintf(), lrintl(), Main_DirectDraw_SetDisplayMode2(), MakeArgv(), FxObject::MarkDeleteCalledLocked(), NdrStubCall2(), NmiClearFlag(), NtGdiExtSelectClipRgn(), open_driver_reg(), operator_new(), pagesetup_change_printer(), pagesetup_update_papersize(), PAINTING_DrawStateJam(), PDEVOBJ_bSwitchMode(), process_get_owner(), QueryInfoHKCRKey(), read_bitmaps(), ReceiveLine(), reg_create_key(), reg_enum_key(), reg_enum_values(), reg_get_stringvalue(), RegTGetDwordValue(), RegTGetStringValue(), __crt_mbstring::reset_and_return(), rint(), rintf(), rintl(), round_mantissa(), RtlTimeToTimeFields(), run_script(), SCardAddReaderToGroupA(), SearchDriverRecursive(), security_get_sd(), security_set_sd(), SendDriverMessage(), FxIrp::SendIrpSynchronously(), sendmail_extended_mapi(), service_pause_service(), service_resume_service(), service_start_service(), service_stop_service(), shader_arb_generate_pshader(), SHELL_execute(), SHELL_execute_url(), SHELL_ExecuteW(), SHELL_FindExecutable(), SHELL_quote_and_execute(), shellex_get_contextmenu(), SHFormatDateTimeA(), SHGetRestriction(), snprintfW(), sprintfW(), start_service(), StopWatchA(), systeminfo_get_RebootRequired(), t1_ps_get_font_value(), telCommandLine(), Test82(), test_CallNtPowerInformation(), test_CanUserWritePwrScheme(), test_copy(), test_DeletePwrScheme(), test_EnumPwrSchemes(), test_externalui(), test_externalui_message(), test_get_inf_class(), test_GetDefaultPrinter(), test_GetDlgItem(), test_GetMouseMovePointsEx(), test_GetPwrDiskSpindownRange(), test_GetSetActivePwrScheme(), test_info(), test_info_size(), test_InternetQueryOptionA(), test_LZOpenFileA(), test_LZOpenFileW(), test_move(), test_OpenFile(), test_ReadPwrScheme(), test_rename(), test_retval(), test_RpcExceptionFilter(), test_sequence(), test_SetWindowLong(), test_StdRegProv(), test_StringTableAddString(), test_StringTableAddStringEx(), test_StringTableLookUpString(), test_StringTableLookUpStringEx(), test_SystemSecurity(), test_Win32_Process(), test_Win32_Service(), test_WritePwrScheme(), test_wshshell(), TIME_CompTimeZoneID(), TREEVIEW_GetNextItem(), UDFDissectName(), UDFGetOptUlongInherited(), UDFPhysLbaToPart(), update_session_CreateUpdateDownloader(), update_session_CreateUpdateInstaller(), update_session_CreateUpdateSearcher(), VerFindFileA(), VerFindFileW(), warning(), Widget_Value(), write_func_param_struct(), write_function_stub(), write_inode_tables(), write_procformatstring_func(), and zero_blocks().