-
Notifications
You must be signed in to change notification settings - Fork 47
/
string-util.html
165 lines (155 loc) · 7.75 KB
/
string-util.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
---
title: String Camelcase | Lowercase | Uppercase Util Online | Developer Tools
layout: post
---
<html>
<head>
{% include common-meta %}
<title>{{ page.title }}</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<meta name="description" content="This is open source tool for programmers to convert a string to uppercase, lowercase, camelcase or title case format" />
<meta name="keywords" content="online,tool,string,camelcase,lowercase,uppercase,convert,change case,opensource,text,title case" />
{% include theme-css %}
{% include ie-fixes %}
</head>
<body class="hold-transition skin-green sidebar-mini">
<!-- Site wrapper -->
<div class="wrapper">
{% include theme-header %} {% include theme-sidebar %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Main content -->
<section class="content">
<div class="box box-info">
<div class="box-header with-border">
<h1 class="box-title">String Case Change Utility: Convert To Camelcase, Lowercase & Uppercase Online</h1>
</div>
<!-- /.box-header -->
<!-- form start -->
<div class="box-body">
<form role="form">
<div class="form-group">
<textarea class="form-control" rows="20" placeholder="Copy/Paste text here to convert the string" id="inputText" autofocus></textarea>
</div>
</form>
</div>
<!-- /.box-body -->
<div class="box-footer">
<div class="btn-group">
<button type="button" class="btn btn-success" id="camelcase">Camel Case</button>
</div>
<div class="btn-group">
<button type="button" class="btn btn-info" id="uppercase">Upper case</button>
</div>
<div class="btn-group">
<button type="button" class="btn btn-danger" id="lowercase">Lower case</button>
</div>
</div>
<!-- /.box-footer -->
</div>
</section>
<section class="content">
<div class="box box-info">
<div class="box-header with-border">
<h3 class="box-title">About String Case Change Tool</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<p>This is a free online tool to change case of a text or string. You can copy/paste your desired text in below text field and hit one the buttons. The entire text will be changed to required format/case.</p>
</div>
<!-- /.box-body -->
</div>
<div class="box box-info">
<div class="box-header with-border">
<h3 class="box-title">Why This Utility is Required? Why Do We Need A Online Camelcase, Lowercase or Uppercase Converter?</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<p>String case change is required at many places. This is also supported by almost all text editors. This tool is mainly helping us keep this utility availble online withtout need of installing a text editor just for this purpose.</p>
<p>Many bloggers do content editing in browsers, this makes it very useful for them to do any conversions easily in another browser tab.</p>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
<div class="box box-info">
<div class="box-header with-border">
<h3 class="box-title">What is Camelcase or Title Case?</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<img class="img-responsive" src="images/camelcase.jpg" alt="Online String To Camelcase, lowercase and uppercase converter tool" title="Online String To Camelcase, lowercase and uppercase converter tool">
<p>Camelcase is also called as title case. It is commonly used for page headlines. It is popular to highlight certain text. To convert a text to camel case we need to convert first letter of each word in text to uppercase. This utility
is not very common in text editors. Below example shows a sample of regular text to camelcase conversion.</p>
<h4>Original Text</h4>
<p><code>a quick brown fox jumped over a lazy frog.</code></p>
<h4>Camelcase Text</h4>
<p><code>A Quick Brown Fox Jumped Over A Lazy Frog.</code></p>
</div>
<!-- /.box-body -->
</div>
<div class="box box-info">
<div class="box-header with-border">
<h3 class="box-title">What is Uppercase?</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<p>Uppercase is also called as capital letters. It is the format in which all letters are written in uppercase. It is common way to highlight certain text using uppercase formatting.</p>
<h4>Original Text</h4>
<p><code>a quick brown fox jumped over a lazy frog.</code></p>
<h4>Uppercase Text</h4>
<p><code>A QUICK BROWN FOX JUMPED OVER A LAZY FROG.</code></p>
</div>
<!-- /.box-body -->
</div>
<div class="box box-info">
<div class="box-header with-border">
<h3 class="box-title">What is Lowercase?</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<p>Lowercase is also called as small case letters. It is the most common format in english literature. Most letter in english are written in lowercase.</p>
<h4>Lowercase Text</h4>
<p><code>a quick brown fox jumped over a lazy frog.</code></p>
<h4>Uppercase Text</h4>
<p><code>A QUICK BROWN FOX JUMPED OVER A LAZY FROG.</code></p>
</div>
<!-- /.box-body -->
</div>
</section>
{% include addthis %}
</div>
<!-- /.content-wrapper -->
{% include theme-footer %}
</div>
<!-- ./wrapper -->
{% include theme-bottom-js %}
</body>
<script src="plugins/selectOnFocus/jquery.selectOnFocus.min.js"></script>
<script>
String.prototype.toCamelCase = function() {
return this.replace(/\w\S*/g, function(txt) {
return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
});
};
$(document).ready(function() {
$("#camelcase").click(function() {
var resultTextArea = $("#inputText");
var txt = resultTextArea.val();
resultTextArea.val(txt.toCamelCase());
});
$("#uppercase").click(function() {
var resultTextArea = $("#inputText");
var txt = resultTextArea.val();
resultTextArea.val(txt.toUpperCase());
});
$("#lowercase").click(function() {
var resultTextArea = $("#inputText");
var txt = resultTextArea.val();
resultTextArea.val(txt.toLowerCase());
});
$("#inputText").selectOnFocus();
$('#string-utility-category').addClass('active');
});
</script>
</html>