Results for "Category: String Manipulation"
a class that performs basic text analysis using the Split command. Count characters, words, punctuation and layout characters. Thanks to merlin who found a bug in the basic countChar routine (answered 1 if there was no text in serch string) and 'Word counter *Excellent' who inspired me to attempt it. ----------------------------Thanks to Min Thant Sin for finding two bugs. Fixed the bug for blank text. Corrected the word count to give correct count. Also extended the class by adding the ability to set acceptable punctuation to allow hyphanated or underscore connected words to be counted as one. Included a bas module that contains the same concepts but designed to be used without the full class being impelmented, just take the bits you want, this bas module uses Paramaters rather than Properties to operate. (NOTE the bas file is not used by the demo).
Use this method with Winsock. Ever had it when you need to send lots of data all at once, and you need individual structured fields for each commands? Does your field data contain special characters or binary data? Conventional methods of delimiting packets simply won’t allow you to get away with that. This code demonstrates how to use Byte Level Delimiting (as I have dubbed it, anyway), and also shows how to buffer incoming and outgoing data, so you can handle large data flawlessly. There is a word document inside the ZIP archive that explains the principle and mechanics of the idea, and also code to demonstrate it. Also uses protocol compression, if the compressed size is smaller than the decompressed size (ZLIB). Feedback greatly appreciated, thank you.
Formatting text with various alignment and margins. The standard TextWidth is not accurate, specially if you want text justified exactly. With API functions is very simple!
Want so cool animations in your project well this code is for you, not just text but a 3D text that will animate in your project, very cool...Must have for beginners.....intermediate users also can learned frm this codes...I hope you enjoy coding and please vote or just rate it !...Thanks !
This Code Is a Best simple Sample for Tech Converting Strings and Allow users to learn about Persian Unicode Rage,And Allow Users To use Persian(farsi) With Out Arabic Language.
Neobasic is a byte-code based scripting language.It is faster than known text interpreting systems.Main features are: 1)Faster interpreter using byte-code system. 2)Local,global variable and array support. 3)Optimization feature for math expressions. 4)Semi-Object orientence 5)Multiple Commands in one line To send a command like this msgbox("Your name is " + inputbox("What is your name?")) 6)System Ident variables To show time for example : msgbox(time) 7)Include directive for including ActiveX DLLs to script to use functions.
This is just a simple code to find the text in a tag. like, [tag] I'm a tag![/tag]
This is a "password generator" that can (on my puny PII 333mHz computer) generate about 40000-80000 passwords per second (number varies based on password length). This project was inspired by this Planet-Source-Code post: "Fast BruteForce Class Example" by §e7eN. http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=48276&lngWId=1 and by various websites, code snippets, and newsgroup posts. I have no interest/knowledge in using this to break into anything or do any harm. I'm do love the logic behind such challenges. Though, I'm sure I'm at the pre-k level when it comes to serious string manipulation.
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!
**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.
A password cracker simulator using a permutation of a byte array algorithm. Hold on to your hat this class is fast!
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. :)
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)
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 ..
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.
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 !
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.
the same as the mirc gettok function - very usefull
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...
Inspired by Evan Toder's 'EvanSort' I pulled together some of my QuickSort Array manipulation stuff into a single module. Enjoy.