كيف يتم التأكد من الجملة دون الاهتمام لحجم الحروف ؟
#5
كود :
function toupper(x:AnsiChar):LongInt cdecl; begin if x in ['A'..'Z']then Result := Byte(x) else Result := Byte(x) - Byte('a') + Byte('A') ; end; function stricmp(const s1,s2:PAnsiChar):LongInt cdecl; var i:LongInt; begin i:=0; Result := 0; while (toupper(s1[i]) = toupper(s2[i]))do begin if s1[i] = #0 then Exit; Inc(i); end; Result := toupper(s1[i]) - toupper(s2[i]); end;
الرد


الردود في هذا الموضوع
كيف يتم التأكد من الجملة دون الاهتمام لحجم الحروف ؟ - بواسطة phpbb3 - 24-10-2012, 01:55 AM

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم