ReactOS 0.4.17-dev-966-gf06eace
ismbsle.cpp File Reference
#include <corecrt_internal_mbstring.h>
#include <locale.h>
Include dependency graph for ismbsle.cpp:

Go to the source code of this file.

Functions

int __cdecl _ismbslead_l (const unsigned char *string, const unsigned char *current, _locale_t plocinfo)
 
 int (__cdecl _ismbslead)(const unsigned char *string
 

Variables

const unsigned char * current
 

Function Documentation

◆ _ismbslead_l()

int __cdecl _ismbslead_l ( const unsigned char *  string,
const unsigned char *  current,
_locale_t  plocinfo 
)

Definition at line 42 of file ismbsle.cpp.

47{
48 /* validation section */
49 _VALIDATE_RETURN(string != nullptr, EINVAL, 0);
50 _VALIDATE_RETURN(current != nullptr, EINVAL, 0);
51
52 _LocaleUpdate _loc_update(plocinfo);
53
54 if (_loc_update.GetLocaleT()->mbcinfo->ismbcodepage == 0)
55 return 0;
56
57 while (string <= current && *string) {
58 if ( _ismbblead_l((*string), _loc_update.GetLocaleT()) ) {
59 if (string++ == current) /* check lead byte */
60 return -1;
61 if (!(*string))
62 return 0;
63 }
64 ++string;
65 }
66
67 return 0;
68}
#define _ismbblead_l(_c, p)
#define _VALIDATE_RETURN(expr, errorcode, retexpr)
#define EINVAL
Definition: errno.h:44
_locale_t plocinfo
Definition: ismbbyte.cpp:75
const unsigned char * current
Definition: ismbsle.cpp:74
char string[160]
Definition: util.h:11

◆ int()

int ( __cdecl  _ismbslead) const

Variable Documentation

◆ current

const unsigned char* current
Initial value:
{
return _ismbslead_l(string, current, nullptr)
int __cdecl _ismbslead_l(const unsigned char *string, const unsigned char *current, _locale_t plocinfo)
Definition: ismbsle.cpp:42

Definition at line 72 of file ismbsle.cpp.

Referenced by _initterm(), _ismbslead_l(), _ismbstrail(), _ismbstrail_l(), _mbsdec(), _mbsdec_l(), _mbsinc(), _mbsinc_l(), _RTC_CheckStackVars2(), _svcauth_des(), apply_patch(), reverse_bidirectional_iterator< _BidirectionalIterator, _Tp,, _STLP_DFL_TYPE_PARAM >::base(), CcRosCreateVacb(), CcRosFlushDirtyPages(), CcRosFreeOneUnusedVacb(), CcRosGetVacb(), CcRosLookupVacb(), CcRosTraceCacheMap(), CcRosTrimCache(), cfgets(), check_access(), check_rr_dates(), check_sharing(), FxTagTracker::CheckForAbandondedTags(), child_process_check_pid(), child_process_check_session_id(), chmc_section_lookup(), common_getenv_nolock(), common_mktemp_s_continue(), ConSrvConsoleProcessCtrlEvent(), ConSrvGetConsoleProcessList(), ConSrvSetConsoleProcessFocus(), convertHexToHexCSV(), ConvertToAutoInheritPrivateObjectSecurity(), create_font_collection(), cs_txt(), d2d_cdt_insert_segment(), d3d12_command_list_ResourceBarrier(), d3d12_fence_acquire_vk_semaphore_locked(), d3d12_fence_garbage_collect_vk_semaphores_locked(), d3d12_fence_SetEventOnCompletion(), d3d12_fence_signal(), d3d12_fence_signal_external_events_locked(), d3d12_pipeline_state_destroy_graphics(), d3d12_pipeline_state_find_compiled_pipeline(), d3d12_pipeline_state_put_pipeline_to_cache(), d3d9_device_reset(), ddraw_surface1_Flip(), DelOld(), dxgi_format_is_depth_stencil(), EDIT_PaintText(), enable_allowed_controls(), TTelnetHandler::escapeIAC(), CCleanupHandlerList::ExecuteCleanup(), FDICopy(), file_add(), filter_seeking_GetCurrentPosition(), filter_seeking_GetPositions(), flatten_bezier(), CCleanupHandlerList::ForEach(), CStore::ForEach(), CStoreList::ForEach(), FT_GlyphLoader_Add(), FT_GlyphLoader_Adjust_Points(), FT_GlyphLoader_Adjust_Subglyphs(), FT_GlyphLoader_CheckPoints(), FT_GlyphLoader_CheckSubGlyphs(), FT_GlyphLoader_Prepare(), FT_GlyphLoader_Rewind(), get_executable_path(), get_input_bytes(), GetMonitorBrightness(), GetMonitorContrast(), GetMonitorDisplayAreaPosition(), GetMonitorDisplayAreaSize(), GetMonitorRedGreenOrBlueDrive(), GetMonitorRedGreenOrBlueGain(), GetVCPFeatureAndVCPFeatureReply(), HEXEDIT_PaintLines(), HUF_readCTable(), HUF_readDTableX1_wksp(), HUF_readDTableX2_wksp(), HUF_sort(), IMAPIPROP_GetValue(), insertIntoTree(), InsNew(), IPropData_fnGetPropList(), IPropData_fnRelease(), join_modify_update(), loader_EnableCache(), mallocspy_add_mem(), mallocspy_is_allocation_spyed(), mallocspy_remove_spyed_memory(), MediaSeeking_GetCurrentPosition(), MediaSeeking_GetPositions(), MediaSeeking_SetPositions(), MmFindRegion(), MsfsCreate(), MsfsCreateMailslot(), mystrrchr(), np_enum(), CCertMgrProperties::OnCertDoubleClicked(), CCleanMgrProperties::OnInitDialog(), CCertMgrProperties::OnInitDialog(), CCertMgrProperties::OnStoreChanged(), reverse_bidirectional_iterator< _BidirectionalIterator, _Tp,, _STLP_DFL_TYPE_PARAM >::operator*(), reverse_bidirectional_iterator< _BidirectionalIterator, _Tp,, _STLP_DFL_TYPE_PARAM >::operator++(), reverse_bidirectional_iterator< _BidirectionalIterator, _Tp,, _STLP_DFL_TYPE_PARAM >::operator--(), previous_character(), ReadCommand(), CBalloonQueue::RemoveInfo(), RPCRT4_RemoveThreadContextHandle(), Save(), CCleanupHandlerList::ScanDrive(), TScroller::ScrollBack(), set_parse_status(), SetPixelFormat(), settime_how(), shader_param_allocator_destroy(), skip_input_bytes(), Sort(), spirv_compiler_alloc_spec_constant_id(), spirv_compiler_emit_combined_sampler_declarations(), spirv_compiler_find_push_constant_buffer(), spirv_compiler_get_descriptor_binding(), START_TEST(), SYSLINK_ParseText(), systemfontfileenumerator_MoveNext(), test_advise(), test_EM_GETHANDLE(), test_GetTimeZoneInformation(), test_graph_seeking(), test_locking(), test_media_event(), test_namedpipe_process_id(), test_namedpipe_session_id(), test_one(), test_PBM_STEPIT(), test_process_architecture(), test_seeking(), test_try_transform(), test_ZombifyActCtx(), testseek_GetCurrentPosition(), testseek_SetPositions(), testsource_seeking_GetCurrentPosition(), TOOLTIPS_Show(), TransactedSnapshotImpl_FindNextChild(), triangulate(), TT_Process_Composite_Component(), uacpi_deinitialize_namespace(), uacpi_for_each_resource(), UDFDOSName100(), UDFDOSName200(), UDFDOSName201(), CCleanMgrProperties::UpdateSpaceUsed(), validate_patch(), validate_state_table(), VARIANT_MakeDate(), vkd3d_get_spirv_resource_type(), vkd3d_init_format_compatibility_lists(), vkd3d_render_pass_cache_cleanup(), vkd3d_render_pass_cache_find(), vkd3d_spirv_stream_insert(), vsir_cfg_compute_dominators_recurse(), wined3d_context_gl_cleanup(), wined3d_context_gl_enter(), wined3d_context_gl_set_pixel_format(), wined3d_texture_load_drawable(), wined3d_texture_load_location(), write_text_utf8_nolock(), xdrrec_getbytes(), xdrrec_putbytes(), xmlParseAttValueComplex(), xmlStringDecodeEntitiesInt(), xsltAddKey(), xsltApplyStripSpaces(), xsltCompilePatternInternal(), ZSTD_buildSeqStore(), ZSTD_compressBlock_btultra2(), ZSTD_compressBlock_doubleFast_extDict_generic(), ZSTD_compressBlock_doubleFast_generic(), ZSTD_compressBlock_fast_dictMatchState_generic(), ZSTD_compressBlock_fast_extDict_generic(), ZSTD_compressBlock_fast_generic(), ZSTD_compressBlock_lazy_extDict_generic(), ZSTD_compressBlock_lazy_generic(), ZSTD_DUBT_findBestMatch(), ZSTD_DUBT_findBetterDictMatch(), ZSTD_fillDoubleHashTable(), ZSTD_fillHashTable(), ZSTD_HcFindBestMatch_generic(), ZSTD_insertBt1(), ZSTD_insertBtAndGetAllMatches(), ZSTD_insertDUBT1(), ZSTD_ldm_generateSequences_internal(), ZSTD_ldm_limitTableUpdate(), ZSTD_window_needOverflowCorrection(), and FxTagTracker::~FxTagTracker().