all groups > vj# > february 2004 >
You're in the

vj#

group:

Problem with IsSurrogate method


Problem with IsSurrogate method Prasad
2/18/2004 9:06:53 PM
vj#:
import System .*
public class IsSurrogateSampl

public static void main(String[] args1

String str = "\u00010F00"
Console.WriteLine(Char.IsSurrogate('a'));
Console.WriteLine(Char.IsSurrogate(str, 0));

}
In the above problem the second call to IsSurrogate method returns False instead of True.But the same problem works fine in C#
Can any one help me out
RE: Problem with IsSurrogate method mikegreonline NO[at]SPAM microsoft.com
2/19/2004 10:53:01 PM
This is a bug I have submitted a bug report to the J# development team.

Thanks,

Michael Green
Microsoft Developer Support

--------------------
| Thread-Topic: Problem with IsSurrogate method
| thread-index: AcP2pjCuSmsFre3RTdCjiObw5dJ/vA==
| X-Tomcat-NG: microsoft.public.dotnet.vjsharp
| From: =?Utf-8?B?UHJhc2Fk?= <anonymous@discussions.microsoft.com>
| Subject: Problem with IsSurrogate method
| Date: Wed, 18 Feb 2004 21:06:53 -0800
| Lines: 14
| Message-ID: <D769581C-9643-435D-AFCF-04E83E4777D7@microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.vjsharp
| Path: cpmsftngxa07.phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.vjsharp:5482
| NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
| X-Tomcat-NG: microsoft.public.dotnet.vjsharp
|
|
import System .* ;
public class IsSurrogateSample
{
public static void main(String[] args1)
{
String str = "\u00010F00";
Console.WriteLine(Char.IsSurrogate('a'));
Console.WriteLine(Char.IsSurrogate(str, 0));
}
}
In the above problem the second call to IsSurrogate method returns False
instead of True.But the same problem works fine in C#.
Can any one help me out?

|
AddThis Social Bookmark Button