IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Well, in Squeak it would look something like
\ndoc := XMLDOMParser parseDocumentFrom: (FileDirectory current fileNamed: 'file.xml').\ndoc tagsNamed: 'attr' do:\n[:each |\n    each contentsDo:\n    [:t | t isText ifTrue: [t string: (((t string asLowercase split: '_') collect: [:s | s capitalized]) join: '_') ]]\n].\n(FileDirectory current forceNewFileNamed: 'file.xml') nextPutAll: (doc asString); close.\n


Edit: fixed formatting



[link|http://www.blackbagops.net|Black Bag Operations Log]

[link|http://www.objectiveclips.com|Artificial Intelligence]

[link|http://www.badpage.info/seaside/html|Scrutinizer]
Collapse Edited by tuberculosis Dec. 12, 2006, 09:11:11 PM EST
Well, in Squeak it would look something like
doc := XMLDOMParser parseDocumentFrom: (FileDirectory current fileNamed: 'file.xml').
doc tagsNamed: 'attr' do:
[:each |
each contentsDo:
[:t |
t isText ifTrue:
[
t string: (((t string asLowercase split: '_') collect: [:s | s capitalized]) join: '_')
]
]
].
(FileDirectory current forceNewFileNamed: 'file.xml') nextPutAll: (doc asString); close.



[link|http://www.blackbagops.net|Black Bag Operations Log]

[link|http://www.objectiveclips.com|Artificial Intelligence]

[link|http://www.badpage.info/seaside/html|Scrutinizer]
Collapse Edited by tuberculosis Dec. 12, 2006, 09:13:09 PM EST
Well, in Squeak it would look something like
doc := XMLDOMParser parseDocumentFrom: (FileDirectory current fileNamed: 'file.xml').
doc tagsNamed: 'attr' do:
[:each |
    each contentsDo:
    [:t | t isText ifTrue: [t string: (((t string asLowercase split: '_') collect: [:s | s capitalized]) join: '_') ]]
].
(FileDirectory current forceNewFileNamed: 'file.xml') nextPutAll: (doc asString); close.



[link|http://www.blackbagops.net|Black Bag Operations Log]

[link|http://www.objectiveclips.com|Artificial Intelligence]

[link|http://www.badpage.info/seaside/html|Scrutinizer]
     Help! How to programatically edit case of strings? - (CRConrad) - (24)
         Problem restated - (crazy) - (3)
             Particular - SOME tag, not any other tag. - (CRConrad) - (2)
                 The ultimate clueless non-programmer wannabe approach - (crazy) - (1)
                     Thanks a lot... (new thread) - (CRConrad)
         Well, in Squeak it would look something like - (tuberculosis)
         UltraEdit will do it. - (Another Scott)
         at risk of a war, do this - (boxley) - (16)
             alt-C, bay-bee. - (admin)
             Go ahead - (crazy) - (14)
                 get vi'ed :-) I dont use that shite -NT - (boxley)
                 Who the fsck writes LISP to use Emacs? -NT - (admin) - (12)
                     Ok, fine. - (crazy) - (11)
                         I need more of the problem specifics - (admin) - (9)
                             Hope it's a single file - (crazy) - (8)
                                 As always, use the right tool for the job. - (admin) - (7)
                                     Bunch of text mungers - (tuberculosis) - (6)
                                         Er, come again? - (admin) - (4)
                                             thats our todd, no point manipulating some text - (boxley) - (1)
                                                 Probably smaller than emacs, though :-P -NT - (admin)
                                             Eh? I did it in 3 lines. - (tuberculosis) - (1)
                                                 Re: Eh? I did it in 3 lines. - (admin)
                                         emacs is xml? -NT - (boxley)
                         Re: Ok, fine. - (admin)
         Thanks, Scotts. - (CRConrad)

This results in serious pain.
75 ms