The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Behavior of string::Match method
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

additive

Germany
109 Posts

Posted - 03/03/2010 :  06:46:01 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 8.1 and SR1:
Operating System: Win XP

The Match method does not work as I would expect, see the following example:


void TestMatch()
{	
	string str = "abc - 12-34-56 xyz";
	if ( str.Match("*??-??-??*", false) )	
		out_str( "Does match" );
	else
		out_str( "Does not match" );
}


When I remove the first dash in the string declaration it works.
Is it bug?

--Michael

Penn

China
644 Posts

Posted - 03/04/2010 :  10:38:29 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Michael,

Yes, it is a bug. We have submitted a tracker (tr#15172) for this bug and will try to fix it in the future version.

Thank you for reporting this, and sorry for the inconvenience.

Penn
OriginLab Technical Services

Edited by - Penn on 03/08/2010 05:06:17 AM
Go to Top of Page

greg

USA
1378 Posts

Posted - 05/05/2010 :  10:43:17 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
This problem has been addressed in Origin 8.1SR3.

Use Help : Check for Updates or download the patch here:
http://www.originlab.com/index.aspx?go=Support/ServiceReleases
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000