Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christianmalek/convadapt
A program to conventionalize simple files.
https://github.com/christianmalek/convadapt
Last synced: about 5 hours ago
JSON representation
A program to conventionalize simple files.
- Host: GitHub
- URL: https://github.com/christianmalek/convadapt
- Owner: christianmalek
- Created: 2013-10-12T12:12:21.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-10-12T12:54:47.000Z (about 11 years ago)
- Last Synced: 2023-08-12T06:36:54.975Z (about 1 year ago)
- Language: C#
- Size: 117 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ConvAdapt
=========A program to conventionalize simple files.
WARNING: The programme is still experimental. Use at your own risk!Example:
You have an language file and the variable names don't use the same name convention. Instead of doing it completey manually you can use ConvAdapt.Our language file:
movesuccess = "The file movement was successfull";
Abort = "abort";
old_pass = "Current password";
New_Pass = "New password";
New_Pass_repeat = "Repeat new password";Now we need to analyze the regex pattern of the variable hence the program knows which words it should change. The pattern is built up of 3 groups: start, obj and end. The obj group must contain the pattern for the words which shall change.
In our example we want change all words before the equals sign. The regex pattern looks because of that like this: (?.*)(?\s*=\s*".*";)
We don't need the start group. The start and end groups are both optional. Sometimes you need only the start group and so on.
I want to conventionalize all names to underscore case with no underscore at start, lowered text and a capitalized first letter. Don't forget to activate the search filter. :)
Then click on apply convention and you get the changed text.If you want to replace files you need to use the Files tab.