Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit38eb9bb

Browse files
authored
Char.ToLowerInvariant is only unavailable on profile 47 and I suppose Silverlight, and we never build a profile47 or Silverlight FSharp.Compiler any longer (dotnet#2517)
1 parentee6b0ee commit38eb9bb

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

‎src/fsharp/lex.fsl‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,14 @@ let getSign32 (s:string) (p:byref<int>) l =
5454
else 1
5555

5656
let isOXB c =
57-
#if FX_NO_TO_LOWER_INVARIANT
58-
let c = Char.ToLower c
59-
#else
6057
let c = Char.ToLowerInvariant c
61-
#endif
6258
c = 'x' || c = 'o' || c = 'b'
6359

6460
let is0OXB (s:string) p l =
6561
l >= p + 2 && s.[p] = '0' && isOXB s.[p+1]
6662
let get0OXB (s:string) (p:byref<int>) l =
6763
if is0OXB s p l
68-
#if FX_NO_TO_LOWER_INVARIANT
69-
then let r = Char.ToLower s.[p+1] in p <- p + 2; r
70-
#else
7164
then let r = Char.ToLowerInvariant s.[p+1] in p <- p + 2; r
72-
#endif
7365
else 'd'
7466

7567
let formatError() = raise (new System.FormatException(SR.GetString("bad format string")))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp