ReactOS 0.4.16-dev-197-g92996da
|
#include "wine/test.h"
#include <string.h>
#include <mbstring.h>
#include <wchar.h>
#include <stdlib.h>
#include <stdio.h>
#include <mbctype.h>
#include <locale.h>
#include <errno.h>
#include <limits.h>
#include <math.h>
#include "winbase.h"
#include "winnls.h"
Go to the source code of this file.
Macros | |
#define | expect_eq(expr, value, type, format) { type ret = (expr); ok((value) == ret, #expr " expected " format " got " format "\n", value, ret); } |
#define | expect_bin(buf, value, len) { ok(memcmp((buf), value, len) == 0, "Binary buffer mismatch - expected %s, got %s\n", buf_to_string((unsigned char *)value, len, 1), buf_to_string((buf), len, 0)); } |
#define | SETNOFAIL(x, y) x = (void*)GetProcAddress(hMsvcrt,y) |
#define | SET(x, y) SETNOFAIL(x,y); ok(x != NULL, "Export '%s' not found\n", y) |
#define | test_codepage(num) test_cp_table(num, result_cp_##num##_mbctype); |
#define | okchars(dst, b0, b1, b2, b3, b4, b5, b6, b7) |
#define | TEST_STRNCPY_LEN 10 |
Variables | |
static | size_t |
static const char * | src |
static size_t | len |
static size_t | size |
static size_t const unsigned char size_t | count |
static const unsigned char *static size_t const wchar_t * | wcSrc |
static size_t | elem |
static char | int |
static const char mbstate_t *static wchar_t const char mbstate_t *static const wchar_t int *static | double |
static int * | p__mb_cur_max |
static unsigned char * | p_mbctype |
static size_t | numberOfElements |
static | wchar_t |
static | _locale_t |
static HMODULE | hMsvcrt |
static int | result_cp_932_mbctype [] |
static int | result_cp_936_mbctype [] |
static int | result_cp_949_mbctype [] |
static int | result_cp_950_mbctype [] |
struct { | |
const char * string | |
const char * delimiter | |
int exp_offsetret1 | |
int exp_offsetret2 | |
int exp_offsetret3 | |
} | testcases_strtok [] |
#define TEST_STRNCPY_LEN 10 |
Definition at line 1841 of file string.c.
Referenced by test__atodbl(), test__strtod(), and test_atof().
Definition at line 38 of file string.c.
|
static |
|
static |
|
static |
Referenced by START_TEST().
Referenced by START_TEST().
START_TEST | ( | string | ) |
Definition at line 3859 of file string.c.
Definition at line 3761 of file string.c.
Referenced by START_TEST().
Definition at line 2938 of file string.c.
Referenced by START_TEST().
Definition at line 3416 of file string.c.
Referenced by START_TEST().
Definition at line 2217 of file string.c.
Referenced by START_TEST().
Definition at line 854 of file string.c.
Referenced by START_TEST().
Definition at line 3386 of file string.c.
Referenced by START_TEST().
Definition at line 981 of file string.c.
Referenced by START_TEST().
Definition at line 2593 of file string.c.
Referenced by START_TEST().
Definition at line 2409 of file string.c.
Referenced by START_TEST().
Definition at line 934 of file string.c.
Referenced by START_TEST().
Definition at line 2649 of file string.c.
Referenced by START_TEST().
Definition at line 2536 of file string.c.
Referenced by START_TEST().
Definition at line 3472 of file string.c.
Referenced by START_TEST().
Definition at line 3507 of file string.c.
Referenced by START_TEST().
Definition at line 2998 of file string.c.
Referenced by START_TEST().
Definition at line 2313 of file string.c.
Referenced by START_TEST().
Definition at line 3282 of file string.c.
Referenced by START_TEST().
Definition at line 1847 of file string.c.
Referenced by START_TEST().
Definition at line 1696 of file string.c.
Referenced by START_TEST().
Definition at line 3550 of file string.c.
Referenced by START_TEST().
Definition at line 3593 of file string.c.
Referenced by START_TEST().
Definition at line 3678 of file string.c.
Referenced by START_TEST().
Definition at line 2667 of file string.c.
Referenced by START_TEST().
Definition at line 1210 of file string.c.
Referenced by START_TEST().
Definition at line 3312 of file string.c.
Referenced by START_TEST().
Definition at line 3351 of file string.c.
Referenced by START_TEST().
Definition at line 3030 of file string.c.
Referenced by START_TEST().
Definition at line 1123 of file string.c.
Referenced by START_TEST().
Definition at line 3151 of file string.c.
Referenced by START_TEST().
Definition at line 3117 of file string.c.
Referenced by START_TEST().
Definition at line 3134 of file string.c.
Referenced by START_TEST().
Definition at line 3796 of file string.c.
Referenced by START_TEST().
Definition at line 2182 of file string.c.
Referenced by START_TEST().
Definition at line 1458 of file string.c.
Referenced by START_TEST().
Definition at line 1489 of file string.c.
Referenced by START_TEST().
Definition at line 1410 of file string.c.
Referenced by START_TEST().
Definition at line 1297 of file string.c.
Referenced by START_TEST().
Definition at line 1323 of file string.c.
Referenced by START_TEST().
Definition at line 223 of file string.c.
Referenced by START_TEST().
Definition at line 1351 of file string.c.
Referenced by START_TEST().
Definition at line 1381 of file string.c.
Referenced by START_TEST().
Definition at line 1436 of file string.c.
Referenced by START_TEST().
Definition at line 514 of file string.c.
Referenced by START_TEST().
Definition at line 548 of file string.c.
Referenced by START_TEST().
Definition at line 1954 of file string.c.
Referenced by START_TEST().
Definition at line 661 of file string.c.
Referenced by START_TEST().
Definition at line 729 of file string.c.
Referenced by START_TEST().
Definition at line 791 of file string.c.
Referenced by START_TEST().
Definition at line 591 of file string.c.
Referenced by START_TEST().
Definition at line 3181 of file string.c.
Referenced by START_TEST().
Definition at line 1676 of file string.c.
Referenced by START_TEST().
Definition at line 1581 of file string.c.
Referenced by START_TEST().
Definition at line 1608 of file string.c.
Referenced by START_TEST().
Definition at line 3215 of file string.c.
Referenced by START_TEST().
Definition at line 118 of file string.c.
Referenced by START_TEST().
Definition at line 2860 of file string.c.
Referenced by START_TEST().
Definition at line 1017 of file string.c.
Referenced by START_TEST().
Definition at line 2745 of file string.c.
Referenced by START_TEST().
Definition at line 2783 of file string.c.
Referenced by START_TEST().
Definition at line 1566 of file string.c.
Referenced by compile_procedure(), compile_script(), HandleCommandLine(), test_strtok(), TOOLBAR_AddStringW(), VBScriptDebug_GetScriptletTextAttributes(), and VBScriptDebug_GetScriptTextAttributes().
static double |
Definition at line 80 of file string.c.
Referenced by __ieee754_jn(), __ieee754_yn(), _TIFFUInt64ToDouble(), _TIFFUInt64ToFloat(), _VarR8FromCy(), _vsnprintf(), AboutDlgProc(), AviMuxIn_Receive(), AVISplitter_Receive(), basetype_arg_size(), c2sx(), c2sy(), CalibrateTest(), CardLib_SetZoomSpeed(), ceil(), check_entropy(), ComplexMarshall(), ComplexUnmarshall(), convert_real_integer(), DECLARE_INTERFACE_(), DSOUND_RecalcVolPan(), Timer::elapsedMilliseconds(), EmbeddedComplexSize(), EMF_Update_MF_Xform(), EnumEnhMetaFile(), FileSize(), FillBuffer(), floor(), FTPUpdateIOTimer(), GetSystemInformation(), guiProgress(), halve1Dimage_uint(), halveImage3D(), halveImage_uint(), halveImageSlice(), hash_table_destroy(), INTERNAL_YDSTOWS(), interp_preinc(), is_int32(), ldexp(), MIDI_ConvertPulseToMS(), MMSYSTEM_MidiStream_Convert(), mpg123_framelength(), mpg123_par(), mpg123_position(), mpg123_tpf(), NdrBaseTypeMemorySize(), operator<<(), QMyMainWindow::paintEvent(), PCM_round(), PerfDataRefresh(), PerformSampleRateConversion(), PRINTDLG_PagePaintProc(), PropVariantToDouble(), PrStatBar(), QualityControlRender_DoQOS(), rand_xorshift32(), redraw(), remainder(), remainderf(), ReportTimes(), RGBtoHLS(), RoundTo3Digits(), rpn_and_f(), rpn_ave(), rpn_ave2(), rpn_fact(), rpn_not(), rpn_or_f(), rpn_s_ex(), rpn_xor_f(), SelectSetInit(), Defragment::Start(), START_TEST(), stat_sum2(), StrFormatByteSizeW(), test_GetConsoleFontInfo(), test_iface_wrapping(), test_marshal_LPSAFEARRAY(), test_ScCountProps(), Test_SyscallPerformance(), test_UlPropSize(), TIFFDefaultTransferFunction(), TIFFFetchSubjectDistance(), TIFFReadDirEntryCheckedRational(), TIFFReadDirEntryCheckedSrational(), TIFFReadDirEntryDouble(), TIFFReadDirEntryDoubleArray(), to_int32(), TRIO_ARGS1(), trio_nan(), trio_pinf(), type_stack_size(), UlPropSize(), upload_stat_number(), VarAdd(), VarCyFromDec(), VarCyMulI8(), VarCyRound(), VARIANT_DataSize(), VarMul(), VarNeg(), VarR4FromCy(), VarR4FromDec(), VarR8FromDec(), wave_out_volume(), xsltFormatNumberConversion(), xsltNumberFormatAlpha(), xsltNumberFormatGetAnyLevel(), xsltNumberFormatGetMultipleLevel(), and CardRegion::ZoomCard().
size_t elem |
Definition at line 68 of file string.c.
Referenced by _doc_get_body(), _elem_attach_event(), _elem_detach_event(), _elem_get_scroll_height(), _elem_get_scroll_left(), _elem_get_scroll_top(), _elem_get_scroll_width(), _get_current_style(), _get_doc_elem(), _get_elem2_iface(), _get_elem3_iface(), _get_elem4_iface(), _get_elem_attr_node(), _get_elem_col_item_idx(), _get_elem_doc(), _get_elem_id(), _get_elem_iface(), _get_frame_content_window(), _insert_adjacent_elem(), _link_put_disabled(), _link_put_href(), _link_put_rel(), _link_put_rev(), _link_put_type(), _set_button_name(), _set_elem_dir(), _set_elem_language(), _set_iframe_height(), _set_iframe_width(), _set_object_name(), _test_anchor_hash(), _test_anchor_search(), _test_button_get_disabled(), _test_button_name(), _test_button_set_disabled(), _test_comment_attrs(), _test_create_elem(), _test_elem_all(), _test_elem_attr(), _test_elem_class(), _test_elem_client_rect(), _test_elem_client_size(), _test_elem_contains(), _test_elem_dir(), _test_elem_disabled(), _test_elem_filters(), _test_elem_get_parent(), _test_elem_getelembytag(), _test_elem_id(), _test_elem_innerhtml(), _test_elem_innertext(), _test_elem_istextedit(), _test_elem_language(), _test_elem_offset(), _test_elem_outerhtml(), _test_elem_put_id(), _test_elem_set_class(), _test_elem_set_innerhtml(), _test_elem_set_innertext(), _test_elem_set_outerhtml(), _test_elem_set_title(), _test_elem_source_index(), _test_elem_tag(), _test_elem_title(), _test_event_fromelem(), _test_event_toelem(), _test_framebase_name(), _test_framebase_put_name(), _test_framebase_src(), _test_iframe_height(), _test_iframe_width(), _test_img_complete(), _test_input_get_form(), _test_link_disabled(), _test_link_href(), _test_link_media(), _test_link_rel(), _test_link_rev(), _test_link_type(), _test_object_name(), _test_range_parent(), _test_readyState(), add_to_array(), attributeDeclDebug(), basic_style_test(), codeview_add_type_array(), XMLStorage::XMLNode::count(), create_all_list(), create_node(), dictionary_insert(), dns_resolve(), DPQ_DECL_DELETECB(), elem_string_attr_getter(), elem_string_attr_setter(), elem_vector_add(), XMLStorage::XMLNode::filter(), get_doc_elem_by_id(), get_dom_element(), get_elem_attr_value_by_dispid(), get_elem_by_id(), get_elem_clsid(), get_elem_source_index(), get_elem_style(), get_elem_window(), get_font_size(), get_src_param(), get_style_from_elem(), get_token(), grow_array(), HTMLAnchorElement_Create(), HTMLAreaElement_Create(), HTMLBodyElement_Create(), HTMLButtonElement_Create(), HTMLCommentElement_Create(), HTMLCurrentStyle_Create(), HTMLDocument3_getElementById(), HTMLDocument5_createComment(), HTMLDocument_createElement(), HTMLDocument_createStyleSheet(), HTMLDocument_get_activeElement(), HTMLDOMAttribute_Create(), HTMLElement2_insertAdjacentElement(), HTMLElement_Create(), HTMLEmbedElement_Create(), HTMLFormElement_Create(), HTMLFrameElement_Create(), HTMLGenericElement_Create(), HTMLHeadElement_Create(), HTMLIFrame_Create(), HTMLImageElementFactory_create(), HTMLImgElement_Create(), HTMLInputElement_Create(), HTMLLabelElement_Create(), HTMLLinkElement_Create(), HTMLMetaElement_Create(), HTMLObjectElement_Create(), HTMLOptionElement_Create(), HTMLScriptElement_Create(), HTMLSelectElement_Create(), HTMLStyle_Create(), HTMLStyleElement_Create(), HTMLTable_Create(), HTMLTable_insertRow(), HTMLTableCell_Create(), HTMLTableRow_Create(), HTMLTableRow_insertCell(), HTMLTextAreaElement_Create(), HTMLTitleElement_Create(), HTMLTxtRange_moveToElementText(), HTMLWindow_invoke(), iframe_onreadystatechange(), in_array(), XMLStorage::XPath::init(), is_elem_id(), is_elem_name(), is_elem_tag(), list_add_after(), list_add_before(), list_add_head(), list_add_tail(), list_next(), list_prev(), list_remove(), mqr_GetMetadataByName(), next_xml_elem(), parse_application_elem(), parse_assembly_elem(), parse_clr_class_elem(), parse_com_class_elem(), parse_compatibility_application_elem(), parse_compatibility_elem(), parse_dependency_elem(), parse_dependent_assembly_elem(), parse_description_elem(), parse_expect_end_elem(), parse_file_elem(), parse_manifest_buffer(), parse_requested_execution_level_elem(), parse_requested_privileges_elem(), parse_security_elem(), parse_settings_elem(), parse_trust_info_elem(), parse_unknown_elem(), parse_window_class_elem(), parse_windows_settings_elem(), put_inner_html(), read_xml_elem(), reader_clear_elements(), ReadStringNode(), remove_child_attr(), runtimestyle_test(), SearchCHM_Storage(), set_elem_style(), set_font_size(), show_context_menu(), si_compar(), sti_compar(), strcat_s(), strcpy_s(), test_appendChild(), test_arg_conv(), test_attr(), test_attr_collection(), test_blocked(), test_button_elem(), test_create_body_range(), test_create_elems(), test_create_stylesheet(), test_createNode(), test_default_arg_conv(), test_defaults(), test_dispex(), test_doc_elem(), test_doc_load_from_path(), test_doscroll(), test_dynamic_properties(), test_elem_from_point(), test_elems(), test_elems2(), test_focus(), test_form_item(), test_frameset(), test_get_attributes(), test_get_set_attr(), test_get_tagName(), test_get_xml(), test_getAttribute(), test_getAttributeNode(), test_getElementsByTagName(), test_iface_wrapping(), test_iframe_elem(), test_imgload(), test_insert_adjacent_elems(), test_label_elem(), test_Load(), test_namedmap_newenum(), test_namespaces_basic(), test_namespaces_change(), test_object_elem(), test_onreadystatechange(), test_put_nodeTypedValue(), test_quirks_mode_offsetHeight(), test_setAttributeNode(), test_style_filters(), test_submit(), test_supporterrorinfo(), test_table_elem(), test_td_elem(), test_tr_elem(), test_tr_modify(), test_xmlns_attribute(), test_XPath(), wchar_comp(), wcscat_s(), wcsncat_s(), WindowDispEx_GetDispID(), write_array_element_type(), write_type_right(), xml_elem_cmp(), xmlAddAttributeDecl(), xmlFreeElement(), xmlFreeElementTableEntry(), xmlGetDtdAttrDesc(), xmlGetDtdQAttrDesc(), xmlIsID(), xmlIsRef(), xmlParseAttribute2(), xmlParseElementChildrenContentDeclPriv(), xmlParseElementMixedContentDecl(), xmlSAX2AttributeDecl(), xmlSAX2ElementDecl(), xsltAddStackElem(), xsltBuildVariable(), xsltCopyNamespace(), xsltCopyNamespaceListInternal(), xsltCopyStackElem(), xsltEvalGlobalVariable(), xsltEvalGlobalVariables(), xsltFreeStackElem(), xsltFreeStackElemList(), xsltGlobalVariableLookup(), xsltProcessUserParamInternal(), xsltRegisterGlobalVariable(), and xsltVariableLookup().
int exp_offsetret1 |
Definition at line 1567 of file string.c.
Referenced by test_strtok().
int exp_offsetret2 |
Definition at line 1569 of file string.c.
Referenced by test_strtok().
int exp_offsetret3 |
Definition at line 1571 of file string.c.
Referenced by test_strtok().
|
static |
Definition at line 116 of file string.c.
Referenced by START_TEST().
int |
Definition at line 71 of file string.c.
Referenced by strtolW(), strtoulW(), and vsnprintfW().
static size_t numberOfElements |
Definition at line 87 of file string.c.
Referenced by _tasctime_s(), _tctime_s(), MSVCRT_memcpy_s(), MSVCRT_memmove_s(), MSVCRT_strncpy_s(), and strerror_s().
|
static |
Definition at line 84 of file string.c.
Referenced by START_TEST(), and test_mbcp().
Definition at line 85 of file string.c.
Referenced by START_TEST(), test_cp_table(), and test_mbcp().
|
static |
|
static |
|
static |
|
static |
const struct { ... } testcases_strtok[] |
Referenced by test_strtok().
Definition at line 66 of file string.c.
Referenced by Sdbwcscpy(), wcscpy_s(), and wcsncpy_s().