System::Globalization::CompareInfo::Compare method

CompareInfo::Compare(const String&, const String&, CompareOptions) const method

يقارن السلاسل. يدعم فقط وضعَي Ordinal و OrdinalIgnoreCase.

virtual int System::Globalization::CompareInfo::Compare(const String &a, const String &b, CompareOptions options) const
معاملنوعالوصف
أconst String&سلسلة LHS.
bconst String&سلسلة RHS.
optionsCompareOptionsString نوع المقارنة.

ReturnValue

قيمة سلبية إذا كانت سلسلة LHS تسبق سلسلة RHS، صفر إذا كانتا متطابقتين، قيمة إيجابية خلاف ذلك.

انظر أيضًا

CompareInfo::Compare(const String&, const String&) const method

يقارن السلاسل. غير مُنفّذ.

virtual int System::Globalization::CompareInfo::Compare(const String &string1, const String &string2) const
معاملنوعالوصف
string1const String&سلسلة LHS.
string2const String&سلسلة RHS.

ReturnValue

قيمة سلبية إذا كانت سلسلة LHS تسبق سلسلة RHS، صفر إذا كانتا متطابقتين، قيمة إيجابية خلاف ذلك.

انظر أيضًا

CompareInfo::Compare(const String&, int, const String&, int) const method

يقارن الجزء النهائي من سلسلة مع الجزء النهائي من سلسلة أخرى. غير مُنفّذ.

virtual int System::Globalization::CompareInfo::Compare(const String &string1, int offset1, const String &string2, int offset2) const
معاملنوعالوصف
string1const String&السلسلة الأولى.
offset1intفهرس البداية للأحرف في string1.
string2const String&السلسلة الثانية.
offset2intمؤشر البداية للأحرف في string2.

ReturnValue

قيمة سالبة إذا كان القسم الأول من السلسلة يسبق القسم الثاني، صفر إذا كانا متطابقين، قيمة موجبة خلاف ذلك.

انظر أيضًا

CompareInfo::Compare(const String&, int, const String&, int, CompareOptions) const method

يقارن الجزء النهائي من سلسلة مع الجزء النهائي من سلسلة أخرى باستخدام طرق مقارنة السلاسل. غير مُنفّذ.

virtual int System::Globalization::CompareInfo::Compare(const String &string1, int offset1, const String &string2, int offset2, CompareOptions options) const
معاملنوعالوصف
string1const String&السلسلة الأولى.
offset1intفهرس البداية للأحرف في string1.
string2const String&السلسلة الثانية.
offset2intمؤشر البداية للأحرف في string2.
optionsCompareOptionsخيارات مقارنة String.

ReturnValue

قيمة سالبة إذا كان القسم الأول من السلسلة يسبق القسم الثاني، صفر إذا كانا متطابقين، قيمة موجبة خلاف ذلك.

انظر أيضًا

CompareInfo::Compare(const String&, int, int, const String&, int, int) const method

يقارن جزءًا من سلسلة مع جزء من سلسلة أخرى. غير مُنفّذ.

virtual int System::Globalization::CompareInfo::Compare(const String &string1, int offset1, int length1, const String &string2, int offset2, int length2) const
معاملنوعالوصف
string1const String&السلسلة الأولى.
offset1intفهرس البداية للأحرف في string1.
length1intعدد الأحرف في string1 للمقارنة.
string2const String&السلسلة الثانية.
offset2intمؤشر البداية للأحرف في string2.
length2intعدد الأحرف في string2 للمقارنة.

ReturnValue

قيمة سالبة إذا كان القسم الأول من السلسلة يسبق القسم الثاني، صفر إذا كانا متطابقين، قيمة موجبة خلاف ذلك.

انظر أيضًا

CompareInfo::Compare(const String&, int, int, const String&, int, int, CompareOptions) const method

يقارن جزءًا من سلسلة مع جزء من سلسلة أخرى باستخدام طرق مقارنة السلاسل. غير مُنفّذ.

virtual int System::Globalization::CompareInfo::Compare(const String &string1, int offset1, int length1, const String &string2, int offset2, int length2, CompareOptions options) const
معاملنوعالوصف
string1const String&السلسلة الأولى.
offset1intفهرس البداية للأحرف في string1.
length1intعدد الأحرف في string1 للمقارنة.
string2const String&السلسلة الثانية.
offset2intمؤشر البداية للأحرف في string2.
length2intعدد الأحرف في string2 للمقارنة.
optionsCompareOptionsخيارات مقارنة String.

ReturnValue

قيمة سالبة إذا كان القسم الأول من السلسلة يسبق القسم الثاني، صفر إذا كانا متطابقين، قيمة موجبة خلاف ذلك.

انظر أيضًا