1
0
mirror of https://github.com/danielstjules/Stringy.git synced 2025-08-05 04:47:33 +02:00

Create gh-pages branch via GitHub

This commit is contained in:
Daniel St. Jules
2013-12-04 20:41:55 -08:00
parent 8120a126d2
commit e9031de482
4 changed files with 252 additions and 1019 deletions

View File

@@ -4,43 +4,31 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1"> <meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Stringy by danielstjules</title> <title>Stringy by danielstjules</title>
<link rel="stylesheet" href="stylesheets/styles.css"> <link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/pygment_trac.css"> <link rel="stylesheet" href="stylesheets/pygment_trac.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<script src="javascripts/main.js"></script>
<!--[if lt IE 9]> <!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]--> <![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
</head> </head>
<body> <body>
<div class="wrapper">
<header> <header>
<h1>Stringy</h1> <h1>Stringy</h1>
<p>A PHP string manipulation library with multibyte support</p> <p>A PHP string manipulation library with multibyte support</p>
</header>
<div id="banner"> <p class="view"><a href="https://github.com/danielstjules/Stringy">View the Project on GitHub <small>danielstjules/Stringy</small></a></p>
<span id="logo"></span>
<a href="https://github.com/danielstjules/Stringy" class="button fork"><strong>View On GitHub</strong></a>
<div class="downloads">
<span>Downloads:</span>
<ul> <ul>
<li><a href="https://github.com/danielstjules/Stringy/zipball/master" class="button">ZIP</a></li> <li><a href="https://github.com/danielstjules/Stringy/zipball/master">Download <strong>ZIP File</strong></a></li>
<li><a href="https://github.com/danielstjules/Stringy/tarball/master" class="button">TAR</a></li> <li><a href="https://github.com/danielstjules/Stringy/tarball/master">Download <strong>TAR Ball</strong></a></li>
<li><a href="https://github.com/danielstjules/Stringy">View On <strong>GitHub</strong></a></li>
</ul> </ul>
</div> </header>
</div><!-- end banner -->
<div class="wrapper">
<nav>
<ul></ul>
</nav>
<section> <section>
<h1> <p><img src="http://danielstjules.com/stringy/logo.png" alt="Stringy"></p>
<a name="stringy" class="anchor" href="#stringy"><span class="octicon octicon-link"></span></a>Stringy</h1>
<p>A PHP library with a variety of string manipulation functions with multibyte support. Offers both OO method chaining and a procedural-style static wrapper. Compatible with PHP 5.3+. Inspired by underscore.string.js.</p> <p>A PHP library with a variety of string manipulation functions with multibyte support. Offers both OO method chaining and a procedural-style static wrapper. Compatible with PHP 5.3+. Inspired by underscore.string.js.</p>
@@ -695,14 +683,15 @@ exceeding the desired length.</p>
<h4> <h4>
<a name="slugify" class="anchor" href="#slugify"><span class="octicon octicon-link"></span></a>slugify</h4> <a name="slugify" class="anchor" href="#slugify"><span class="octicon octicon-link"></span></a>slugify</h4>
<p>$stringy-&gt;slugify()</p> <p>$stringy-&gt;slugify([ string $replacement = '-' ])</p>
<p>S::slugify(string $str)</p> <p>S::slugify(string $str [, string $replacement = '-' ])</p>
<p>Converts the string into an URL slug. This includes replacing non-ASCII <p>Converts the string into an URL slug. This includes replacing non-ASCII
characters with their closest ASCII equivalents, removing non-alphanumeric characters with their closest ASCII equivalents, removing non-alphanumeric
and non-ASCII characters, and replacing whitespace with dashes. The string and non-ASCII characters, and replacing whitespace with $replacement.
is also converted to lowercase.</p> The replacement defaults to a single dash, and the string is also
converted to lowercase.</p>
<div class="highlight highlight-php"><pre><span class="nx">S</span><span class="o">::</span><span class="na">create</span><span class="p">(</span><span class="s1">'Using strings like fòô bàř'</span><span class="p">)</span><span class="o">-&gt;</span><span class="na">slugify</span><span class="p">();</span> <div class="highlight highlight-php"><pre><span class="nx">S</span><span class="o">::</span><span class="na">create</span><span class="p">(</span><span class="s1">'Using strings like fòô bàř'</span><span class="p">)</span><span class="o">-&gt;</span><span class="na">slugify</span><span class="p">();</span>
<span class="nx">S</span><span class="o">::</span><span class="na">slugify</span><span class="p">(</span><span class="s1">'Using strings like fòô bàř'</span><span class="p">);</span> <span class="c1">// 'using-strings-like-foo-bar'</span> <span class="nx">S</span><span class="o">::</span><span class="na">slugify</span><span class="p">(</span><span class="s1">'Using strings like fòô bàř'</span><span class="p">);</span> <span class="c1">// 'using-strings-like-foo-bar'</span>
@@ -949,11 +938,11 @@ and underscores, and removes spaces, dashes, underscores.</p>
<p>Released under the MIT License - see <code>LICENSE.txt</code> for details.</p> <p>Released under the MIT License - see <code>LICENSE.txt</code> for details.</p>
</section> </section>
<footer> <footer>
<p>Project maintained by <a href="https://github.com/danielstjules">danielstjules</a></p> <p>This project is maintained by <a href="https://github.com/danielstjules">danielstjules</a></p>
<p><small>Hosted on GitHub Pages &mdash; Theme by <a href="https://twitter.com/michigangraham">mattgraham</a></small></p> <p><small>Hosted on GitHub Pages &mdash; Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p>
</footer> </footer>
</div> </div>
<!--[if !IE]><script>fixScale(document);</script><![endif]--> <script src="javascripts/scale.fix.js"></script>
</body> </body>
</html> </html>

File diff suppressed because one or more lines are too long

View File

@@ -1,70 +1,69 @@
.highlight .hll { background-color: #404040 } .highlight { background: #ffffff; }
.highlight { color: #d0d0d0 } .highlight .c { color: #999988; font-style: italic } /* Comment */
.highlight .c { color: #999999; font-style: italic } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .g { color: #d0d0d0 } /* Generic */ .highlight .k { font-weight: bold } /* Keyword */
.highlight .k { color: #6ab825; font-weight: normal } /* Keyword */ .highlight .o { font-weight: bold } /* Operator */
.highlight .l { color: #d0d0d0 } /* Literal */ .highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
.highlight .n { color: #d0d0d0 } /* Name */ .highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
.highlight .o { color: #d0d0d0 } /* Operator */ .highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
.highlight .x { color: #d0d0d0 } /* Other */ .highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
.highlight .p { color: #d0d0d0 } /* Punctuation */ .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .cm { color: #999999; font-style: italic } /* Comment.Multiline */ .highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
.highlight .cp { color: #cd2828; font-weight: normal } /* Comment.Preproc */ .highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .c1 { color: #999999; font-style: italic } /* Comment.Single */ .highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .cs { color: #e50808; font-weight: normal; background-color: #520000 } /* Comment.Special */ .highlight .gh { color: #999999 } /* Generic.Heading */
.highlight .gd { color: #d22323 } /* Generic.Deleted */ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .ge { color: #d0d0d0; font-style: italic } /* Generic.Emph */ .highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
.highlight .gr { color: #d22323 } /* Generic.Error */ .highlight .go { color: #888888 } /* Generic.Output */
.highlight .gh { color: #ffffff; font-weight: normal } /* Generic.Heading */ .highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gi { color: #589819 } /* Generic.Inserted */ .highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .go { color: #cccccc } /* Generic.Output */ .highlight .gu { color: #800080; font-weight: bold; } /* Generic.Subheading */
.highlight .gp { color: #aaaaaa } /* Generic.Prompt */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .gs { color: #d0d0d0; font-weight: normal } /* Generic.Strong */ .highlight .kc { font-weight: bold } /* Keyword.Constant */
.highlight .gu { color: #ffffff; text-decoration: underline } /* Generic.Subheading */ .highlight .kd { font-weight: bold } /* Keyword.Declaration */
.highlight .gt { color: #d22323 } /* Generic.Traceback */ .highlight .kn { font-weight: bold } /* Keyword.Namespace */
.highlight .kc { color: #6ab825; font-weight: normal } /* Keyword.Constant */ .highlight .kp { font-weight: bold } /* Keyword.Pseudo */
.highlight .kd { color: #6ab825; font-weight: normal } /* Keyword.Declaration */ .highlight .kr { font-weight: bold } /* Keyword.Reserved */
.highlight .kn { color: #6ab825; font-weight: normal } /* Keyword.Namespace */ .highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
.highlight .kp { color: #6ab825 } /* Keyword.Pseudo */ .highlight .m { color: #009999 } /* Literal.Number */
.highlight .kr { color: #6ab825; font-weight: normal } /* Keyword.Reserved */ .highlight .s { color: #d14 } /* Literal.String */
.highlight .kt { color: #6ab825; font-weight: normal } /* Keyword.Type */ .highlight .na { color: #008080 } /* Name.Attribute */
.highlight .ld { color: #d0d0d0 } /* Literal.Date */ .highlight .nb { color: #0086B3 } /* Name.Builtin */
.highlight .m { color: #3677a9 } /* Literal.Number */ .highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
.highlight .s { color: #ff8 } /* Literal.String */ .highlight .no { color: #008080 } /* Name.Constant */
.highlight .na { color: #bbbbbb } /* Name.Attribute */ .highlight .ni { color: #800080 } /* Name.Entity */
.highlight .nb { color: #24909d } /* Name.Builtin */ .highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
.highlight .nc { color: #447fcf; text-decoration: underline } /* Name.Class */ .highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
.highlight .no { color: #40ffff } /* Name.Constant */ .highlight .nn { color: #555555 } /* Name.Namespace */
.highlight .nd { color: #ffa500 } /* Name.Decorator */ .highlight .nt { color: #000080 } /* Name.Tag */
.highlight .ni { color: #d0d0d0 } /* Name.Entity */ .highlight .nv { color: #008080 } /* Name.Variable */
.highlight .ne { color: #bbbbbb } /* Name.Exception */ .highlight .ow { font-weight: bold } /* Operator.Word */
.highlight .nf { color: #447fcf } /* Name.Function */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .nl { color: #d0d0d0 } /* Name.Label */ .highlight .mf { color: #009999 } /* Literal.Number.Float */
.highlight .nn { color: #447fcf; text-decoration: underline } /* Name.Namespace */ .highlight .mh { color: #009999 } /* Literal.Number.Hex */
.highlight .nx { color: #d0d0d0 } /* Name.Other */ .highlight .mi { color: #009999 } /* Literal.Number.Integer */
.highlight .py { color: #d0d0d0 } /* Name.Property */ .highlight .mo { color: #009999 } /* Literal.Number.Oct */
.highlight .nt { color: #6ab825;} /* Name.Tag */ .highlight .sb { color: #d14 } /* Literal.String.Backtick */
.highlight .nv { color: #40ffff } /* Name.Variable */ .highlight .sc { color: #d14 } /* Literal.String.Char */
.highlight .ow { color: #6ab825; font-weight: normal } /* Operator.Word */ .highlight .sd { color: #d14 } /* Literal.String.Doc */
.highlight .w { color: #666666 } /* Text.Whitespace */ .highlight .s2 { color: #d14 } /* Literal.String.Double */
.highlight .mf { color: #3677a9 } /* Literal.Number.Float */ .highlight .se { color: #d14 } /* Literal.String.Escape */
.highlight .mh { color: #3677a9 } /* Literal.Number.Hex */ .highlight .sh { color: #d14 } /* Literal.String.Heredoc */
.highlight .mi { color: #3677a9 } /* Literal.Number.Integer */ .highlight .si { color: #d14 } /* Literal.String.Interpol */
.highlight .mo { color: #3677a9 } /* Literal.Number.Oct */ .highlight .sx { color: #d14 } /* Literal.String.Other */
.highlight .sb { color: #ff8 } /* Literal.String.Backtick */ .highlight .sr { color: #009926 } /* Literal.String.Regex */
.highlight .sc { color: #ff8 } /* Literal.String.Char */ .highlight .s1 { color: #d14 } /* Literal.String.Single */
.highlight .sd { color: #ff8 } /* Literal.String.Doc */ .highlight .ss { color: #990073 } /* Literal.String.Symbol */
.highlight .s2 { color: #ff8 } /* Literal.String.Double */ .highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
.highlight .se { color: #ff8 } /* Literal.String.Escape */ .highlight .vc { color: #008080 } /* Name.Variable.Class */
.highlight .sh { color: #ff8 } /* Literal.String.Heredoc */ .highlight .vg { color: #008080 } /* Name.Variable.Global */
.highlight .si { color: #ff8 } /* Literal.String.Interpol */ .highlight .vi { color: #008080 } /* Name.Variable.Instance */
.highlight .sx { color: #ffa500 } /* Literal.String.Other */ .highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
.highlight .sr { color: #ff8 } /* Literal.String.Regex */
.highlight .s1 { color: #ff8 } /* Literal.String.Single */ .type-csharp .highlight .k { color: #0000FF }
.highlight .ss { color: #ff8 } /* Literal.String.Symbol */ .type-csharp .highlight .kt { color: #0000FF }
.highlight .bp { color: #24909d } /* Name.Builtin.Pseudo */ .type-csharp .highlight .nf { color: #000000; font-weight: normal }
.highlight .vc { color: #40ffff } /* Name.Variable.Class */ .type-csharp .highlight .nc { color: #2B91AF }
.highlight .vg { color: #40ffff } /* Name.Variable.Global */ .type-csharp .highlight .nn { color: #000000 }
.highlight .vi { color: #40ffff } /* Name.Variable.Instance */ .type-csharp .highlight .s { color: #A31515 }
.highlight .il { color: #3677a9 } /* Literal.Number.Integer.Long */ .type-csharp .highlight .sc { color: #A31515 }

File diff suppressed because it is too large Load Diff