Advertisement

Results for "Category: String Manipulation"

2_2002-2004 #114374
Using Regular Expressions

Regular Expressions is a very powerful tool for string manipulations. I have developed an inhouse tool to to test and optimize pattern code. A tutorial is included that will get the new user "up to speed" in seconds!

2_2002-2004 #114375
Brute Force Password Generation

**This is an update of my previous submission.** What's New? Various speed-ups. (40k-80k to 150k-250k passwords/sec). Got rid of string concatenation replaced with Mid$ function. Made password producing function an "inline" function, no more repeated calls. Fixed bug that wouldn't let you close the form even if you hadn't started generating yet. No more version numbers, just date of release.

2_2002-2004 #114406
Brute Force Sim

A password cracker simulator using a permutation of a byte array algorithm. Hold on to your hat this class is fast!

2_2002-2004 #114455
FAST String Manipulation

When this module is compiled to native code, you can use the ReplaceString, InString, InStringRev, StrReverse, TrimStr, RTrimStr, LTrimStr, StringReplicate, JoinString and SplitString functions to be many times faster and much more memory effecient than their VB counterparts. Many are more functional as well. The replacestring function supports delimiters and prefix/postfix exclusions. All of these functions are fully unicode compliant. The performance gain becomes greater with extremely long strings, where most of the functions take less than 2% of the time and half the memory that the same call would take with intrinsic functions. By the way, you can all stop telling me that xbeat.net/vbspeed has faster code. They did have faster code than my first version, but not any of the other ones. See for yourself, the test specifications are on their website. :)

2_2002-2004 #114548
Letter Replacer (Update 2)

According to research at an english university, it doesn't matter in what order the letters in a word are, the only important thing is that the first and last letter is at the right place. The rest can be a total mess and you can still read it without problem. This is because we do not read every letter by it self but the word as a whole. This 'never seen before' code can make such words for you, it saves the first and last letter and makes a 'total mess' of the middle ones! Update includes: Now the program is faster and the code is easier to read, this because it is more compact now. Thanks to Roger Gilchrist for sending me this optimalizations! (NOTE: there is a project like this submitted a while after I submitted mine. That code is not a rip, it works totaly diffrent then this one does)

2_2002-2004 #114601
Build a Path That's Shauld Create More Than Directory

Hi All .. This Code Will Create a Path That's Shauld Make More Than One Directory .. For Example When You Call Function : Call BuildPath ("C:\A1\A2\A3\A4") It Will Create "C:\A1" and "C:\A1\A2" .etc It Will Return False If The Drive Doesnt Exist Or For Any Other Error .. Please Send Me Your Comments ..

2_2002-2004 #114651
A ShellSort with a twist (updated)

Introducing a shellsort hybrid that slips pre-sorted data to a built in walker with a very fast smart-find (binary search) twister. This shell algorithm is founded on a very solid performer that was originally developed by vb2themax, and optimized further by several very talented coders, before I twisted a little more out of it in this hybrid version. Although this algorithm is optimized for re-sorting and reverse sorting, it also has been greatly boosted in raw outright speed to square up against anything, anytime! This is the fastest shellsort I know of by far*. This algorithm excels on both un-sorted and pre-sorted data. *A hybrid shellsort with a twist, and no bubbles.

2_2002-2004 #114666
Bobo VB Code To HTML

The Richtextbox is a great tool for displaying text but it can be quite a task converting it's format for use on the web. This project is part of a Code Library application that I still use today. It has HTML saving options for publishing source code to web sites. It demonstrates manipulation of the Richtextbox control, string parsing routines and syntax highlighting. It will also format your code applying standard indentation, remove blank lines and truncate long lines neatly, making your code much more readable. You can then choose to save it back to disk as a VB file(retaining it's original header), an HTML file or as a rich text file(rtf). Like all code this old, I would do many of the functions quite differently nowadays, but there are still some handy techniques used here. I hope I didn't create too many bugs when I pulled it out of my Code Library app ! I have had quite a few emails of late enquiring as to when I'll upload some more submissions, so in response to those here is yet another Bobo submission !

2_2002-2004 #114711
Codebox V1.0

This is a syntax highlighting codebox for almost every programming language you want. You can easily create new syntax shemes, if you want. The highlighting algo isn't super fast, but much faster than many other examples, because it modifies directly RTF source, not the visible text. If someone has any suggestions to improve this control or make the algo faster, then please tell me. Hint: You will need SSubTmr6.dll from vbaccelerator to run the control. You can download it from: http://www.vbaccelerator.com/home/VB/Code/Libraries/Subclassing/SSubTimer/VB6_SSubTmr_Binary.asp Don't forget to register DLL before, otherwise it won't work. Sample and Comments are in German.

2_2002-2004 #114765
exact copy of mircs $gettok function

the same as the mirc gettok function - very usefull

2_2002-2004 #114862
Unique Serial Number Protection **UPDATED AGAIN - Version 1.5**

This is an example of a method for developing a serial based registration/activation for your software. It develops a 25 digit using the hard disk serial number of the user, and a ProductID which you supply. The user is provided with a request code, which is sent to you, and you send back the serial based on the request code. I've found it to work pretty well. Though I would share it with everyone else. There is negligible commenting in the code, however use the note and help utility to see how the code works, and how each process takes place. Easy to manipulate to meet your need. Hope it's of some use to someone... **UPDATED - Version 1.2** Added new features such as digit swapping and label previews. Also changed certain routines. **UPDATED AGAIN - Version 1.5** Added sample registration form. Good example of how to allow users to paste the whole key into one textbox, and have the program split it to fill up all 5 appropriately...

2_2002-2004 #114885
Quicksort Word Tricks

Inspired by Evan Toder's 'EvanSort' I pulled together some of my QuickSort Array manipulation stuff into a single module. Enjoy.

2_2002-2004 #115248
ASP Style String Splitter(Parser)

You know ASP and HTML String container. For example www.planet-source-code.com?X=1;R=10. How can I X content from this string ? What's X ? This program is this! Thanx for your vote.

2_2002-2004 #115270
Editor (C++ VB Java and more) Real Time Syntax Color

editor real time color it load file for coloring C++ VB etc.. up to file fast code color cool try and you see. please vote for my code

2_2002-2004 #115331
Make Uppercase or lowercase in Textbox

how to Make Uppercase or lowercase in Textbox

2_2002-2004 #115349
TriState InputBox

With the InputBox you cannot distinguish between the cases a:- Cancel clicked b:- nothing entered and OK clicked because in both cases the returned string is a vbNullString There is a simple trick however as is shown here

2_2002-2004 #115439
Printing Special Characters in VB6 - The Good One

Replace the first One, I posted wrongly. My Apologies for the Community. This program print, special characters in different font types like "Symbol", "GreekC", and "GreekS". Please Accept my apologies

2_2002-2004 #115453
_Parse Proxies From Cybersyndrome.net_

Parses the non-anon proxies from cybersyndrome.net/pld.html

2_2002-2004 #115489
Very Very Basic encryption and decryption routine - but effective

This is a very simple enocde decode routine that I created for a program where I didn't want to store the password in a plaintext string. This routine then came in handy when creating a client/server program where to stop people sending spurious commands to either the server of the client - I encrypted the time in minutes and it was sent with every bit of data - if the time was out by 3 minutes then the server or client discared the data - this is just one example for this bit of code. The routine currently runs 100 times in encryption or decryption but is a for loop - so easy to change - just make sure that the encryption and decryption routines run the same number of times. As an example "Planet Source Code Rocks" becomes "8=EMPT\chipu{$'/49;>?DEHKRY\dehiosuv{}~$+1369;CKQRZ[^`cfglpuw~$%*0479AFKNQSZ]ekry~$*-48:ACHOVW_elrz$D`UbYhrGcifWYr7cXYrFcW_g" The key to the encryption and decryption is the number at the beginning of the string (which is randomly chosen during encryption - and because it is a printable character gets encrypted itself on every subsequent encryption). This routine is for from unbreakable but is going to throw of the person who just wants to quickly find the password.

2_2002-2004 #115652
[ Find Function For FlexGrid ]

This is a sample 'FindOnGrid Function For FlexGrid' . This code is made on a request from PSC. This function can search your 'FlexGrid' and will setfocus the cell which containing the text. It can Perform 'WhorlWordOnly', 'MatchCase' search. The additional option , ie searching with the 'cell Backcolor' is also included , which was in the request. I uploaded this code , to get useful to somebody else too. Your comments are welcomed. Good Luck!

Languages
Top Categories
Global Discovery