瀏覽代碼

* support 'x1f' and 'X1f' for hex notation in val() (Delphi compatibility,
mantis 8177)

git-svn-id: trunk@6204 -

Jonas Maebe 18 年之前
父節點
當前提交
6c578f55df
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      rtl/inc/sstrings.inc

+ 3 - 1
rtl/inc/sstrings.inc

@@ -670,7 +670,9 @@ begin
   if code<=length(s) then
   if code<=length(s) then
    begin
    begin
      case s[code] of
      case s[code] of
-      '$' : begin
+      '$',
+      'X',
+      'x' : begin
               base:=16;
               base:=16;
               inc(code);
               inc(code);
             end;
             end;