In Java, I can easily pass data using (ObjectA)objB. How can I do the similar things in Objective C? Also, why the Objective C can't return an Object, but only can return the id only? I do -(MyObj)returnMyObject{ }, but the Xcode warning me that I can't use the MyObj, but I can return the id..... -(id) returnMyObject {}.
...
I'm looking for an Java open-source library which is able to extract address information from a (German) email (signature). The library should find
name
street
city, city code/postal code
email
tel/fax
address-parser.com is an commercial product, but a free (albeit simple) library would be great.
stackoverflow.com/questions/16413/pa...
I'm looking for any resources concerning an ASPX file parser and object model.
I'm trying to read, modify an write ASPX and ASCX files. I tried SGMLReader/XmlDocument, but this does not accept the "<% ... %>" statements.
...
I'm using tDom to loop through some XML and pull out each element's text().
set xml {
<systems>
<object>
<type>Hardware</type>
<name>Server Name</name>
<attributes>
<vendor></vendor>
</attributes>
</object>
<object>
<type>Hardware</type>
<name>Server Two Name</name>
<attributes>
<vendor></vendor>
</attribute...
I am in the final stages of creating an MP4 tag parser in .Net. For those who have experience with tagging music you would be aware that there are an average of 30 or so tags. If tested out different types of loops and it seems that a switch statement with Const values seems to be the way to go with regard to catching the tags in binary....
I have an XML file that I am pulling from the web and parsing. One of the items in the XML is a 'content' value that has HTML. I am using XML::Simple::XMLin to parse the file like so:
$xml= eval { $data->XMLin($xmldata, forcearray => 1, suppressempty=> +'') };
When I use Data::Dumper to dump the hash, I discovered that SimpleXML is pa...
I would like to use Parsec's makeTokenParser to build my parser, but I want to use my own definition of whiteSpace. Doing the following replaces whiteSpace with my definition, but all the lexeme parsers still use the old definition (e.g. P.identifier lexer will use the old whiteSpace).
...
lexer :: P.TokenParser ()
lexer = l { P.w...
A beta tester of mine has a Asus eee pc 701 running Android 2.0 and he is trying to install an app on it from my web site. He is able to download the app but is getting a "Parse Error: There is a problem parsing the package" error. I don't really know if this problem is with the eee pc or with the apk since he is the first person to tr...
I am trying to parse formula in C# language like
"5*3 + 2"
"(3*4 - 2)/5"
Is it possible to do in C# or scripts like VBScript, JavaScript (which will be called in c# program).
...
There are a number of questions about this sort of thing but lets imagine we are targeting a generic Linux system with both getopt and getopts installed (not that we'll use either, but they seem popular)
How do I parse both long (--example | --example simple-option) and short argruments (-e | -esimple-example | -e simple-example)
...
I have some info back from a LAN switch as below
Vlan 1 is administratively down, line protocol is down
Vlan 2 is up, line protocol is up
Helper address is 192.168.0.2
Vlan 3 is up, line protocol is up
Helper address is not set
Vlan 4 is up, line protocol is up
Helper address is 192.168.0.2
Vlan 5 is down, line pro...
What is the best way to evaluate simple conditional statements like:
"a>b" ?
"x-4<10+y & y>x" ?
Expressions are loaded from external file. Variables are set in application.
Syntax used is not essential. It may be "&" or "and" or any other supported with language/library.
I need to take different action depending on result of evaluat...
I need to parse C#, Ruby and Python source code to generate some reports. I need to get a list of method names inside a class, and I need some other info such as usage of global variable or something. Just parsing using RE could be a solution, but I expect a better (systematic) solution using parsers, if it is easily possible.
What par...
I'm processing an IMAP mailbox and running into trouble parsing the dates using the mxDateTime package. In particular, early dates like "Fri, 1 Jan 1904 00:43:25 -0400" is causing trouble:
>>> import mx.DateTime
>>> import mx.DateTime.ARPA
>>> mx.DateTime.ARPA.ParseDateTimeUTC("Fri, 1 Jan 1904 00:43:25 -0400").gmtoffset()
Traceback (mos...
Hello,
I have an XML file ( XML file I produce ) which contains information about my parteners.
I want them to display on their website information relative to them by picking them into the XML file.
I have no idea to do that, ecxept that i need to write a 'parser' in javascript to display information. This javascript code i guess has...
Given a family of objects that implement parser combinators, how do I combine the parsers? Since Parsers.Parser is an inner class, and in Scala inner classes are bound to the outer object, the story becomes slightly complicated.
Here's an example that attempts to combine two parsers from different objects.
import scala.util.parsing.com...
I am working on an app which calls a rest web service. Sometimes the xml responses contain characters which the phone can not display. When displaying these characters, an empty box is displayed instead. I would like to filter out these characters. How can I detect if a character will be able to be displayed on the screen?
Some spec...
Is this code even complex enough to deserve a higher level of abstraction?
public static JsonStructure Parse(string jsonText)
{
var result = default(JsonStructure);
var structureStack = new Stack<JsonStructure>();
var keyStack = new Stack<string>();
var current = default(JsonStructure);
var currentState = ParserS...
I had until recently been under the impression that the CDbl(x) operation in VB.NET was essentially a cast (i.e., the VB equivalent of (double)x in C#); but a recent discovery has revealed that this is not the case.
If I have this string:
Dim s As String = "12345.12345-"
And I do this:
Dim d As Double = CDbl(s)
d will be set to th...
Hello!
I'm trying to parse the number of results from google seach blog. Could somebody please help me!
http://blogsearch.google.com/blogsearch?hl=en&ie=UTF-8&q=a&btnG=Search+Blogs
returns a complete page. On the right side you can see (Results 1 - 10 of about 2,504,830,546 for a. (0.05 seconds) ).
How could I get 2,50...