flat assembler
Message board for the users of flat assembler.

Index > Projects and Ideas > Simple win32 program to list urls in file without includes

Author
Thread Post new topic Reply to topic
wht36



Joined: 18 Sep 2005
Posts: 106
wht36 26 Feb 2011, 08:45
This is a simple win32 program that lists urls in file(s) without using any include files. The aim was to write as few lines of code as possible without using extra includes. Wink


Description: v0.01 features a simple import macro, call macro, basic command line parsing, buffered reading with searching.
Download
Filename: url_v01.zip
Filesize: 2.6 KB
Downloaded: 806 Time(s)

Post 26 Feb 2011, 08:45
View user's profile Send private message Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6115
Location: Poland
MHajduk 26 Feb 2011, 11:04
You should treat also CR and LF as url delimiters.

Consider a test file containing such a sequence:
Quote:
http://www.abcd.com<CR><LF>;Some comment
(between the url and the comment we have only CR and LF, no spaces). The string ";Some" is displayed though it isn't a part of the url listed above.
Post 26 Feb 2011, 11:04
View user's profile Send private message Visit poster's website Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2139
Location: Estonia
Madis731 26 Feb 2011, 16:55
set {0x09, 0x0A, 0x0D, 0x20, 0xA0} is called WHITESPACE Wink I've written some HTML-parsers. There are more in UTF/Unicode, but that should be enough to start with.
Post 26 Feb 2011, 16:55
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.