forked from vanderlee/phpSyllable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
source-function-Syllable_autoloader.html
116 lines (97 loc) · 5.83 KB
/
source-function-Syllable_autoloader.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="robots" content="noindex">
<title>File autoloader.php</title>
<link rel="stylesheet" href="resources/style.css?e99947befd7bf673c6b43ff75e9e0f170c88a60e">
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
</div>
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-Syllable.html">Syllable</a></li>
<li><a href="class-Syllable_Cache_FileAbstract.html">Syllable_Cache_FileAbstract</a></li>
<li><a href="class-Syllable_Cache_Json.html">Syllable_Cache_Json</a></li>
<li><a href="class-Syllable_Cache_Serialized.html">Syllable_Cache_Serialized</a></li>
<li><a href="class-Syllable_Hyphen_Dash.html">Syllable_Hyphen_Dash</a></li>
<li><a href="class-Syllable_Hyphen_Entity.html">Syllable_Hyphen_Entity</a></li>
<li><a href="class-Syllable_Hyphen_Soft.html">Syllable_Hyphen_Soft</a></li>
<li><a href="class-Syllable_Hyphen_Text.html">Syllable_Hyphen_Text</a></li>
<li><a href="class-Syllable_Hyphen_ZeroWidthSpace.html">Syllable_Hyphen_ZeroWidthSpace</a></li>
<li><a href="class-Syllable_Source_File.html">Syllable_Source_File</a></li>
</ul>
<h3>Interfaces</h3>
<ul>
<li><a href="class-Syllable_Cache_Interface.html">Syllable_Cache_Interface</a></li>
<li><a href="class-Syllable_Hyphen_Interface.html">Syllable_Hyphen_Interface</a></li>
<li><a href="class-Syllable_Source_Interface.html">Syllable_Source_Interface</a></li>
</ul>
<h3>Functions</h3>
<ul>
<li><a href="function-Syllable_autoloader.html">Syllable_autoloader</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="">
<input type="hidden" name="ie" value="UTF-8">
<input type="text" name="q" class="text" placeholder="Search">
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<span>Class</span> </li>
</ul>
<ul>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a href="#1"> 1: </a><span class="xlang"><?php</span>
</span><span id="2" class="l"><a href="#2"> 2: </a> <span class="php-comment">/**
</span></span><span id="3" class="l"><a href="#3"> 3: </a><span class="php-comment"> * phpSyllable
</span></span><span id="4" class="l"><a href="#4"> 4: </a><span class="php-comment"> * Splits up text into syllables and/or hyphenates text according to TeXbook language rules.
</span></span><span id="5" class="l"><a href="#5"> 5: </a><span class="php-comment"> *
</span></span><span id="6" class="l"><a href="#6"> 6: </a><span class="php-comment"> * Based on the work by Frank M. Liang (http://www.tug.org/docs/liang/)
</span></span><span id="7" class="l"><a href="#7"> 7: </a><span class="php-comment"> * and the many volunteers in the TeX community.
</span></span><span id="8" class="l"><a href="#8"> 8: </a><span class="php-comment"> *
</span></span><span id="9" class="l"><a href="#9"> 9: </a><span class="php-comment"> * Patterns from the CTAN archive
</span></span><span id="10" class="l"><a href="#10">10: </a><span class="php-comment"> * - http://www.ctan.org/tex-archive/language/hyph-utf8/tex/generic/hyph-utf8/patterns/tex/
</span></span><span id="11" class="l"><a href="#11">11: </a><span class="php-comment"> * - http://www.ctan.org/tex-archive/language/hyphenation/
</span></span><span id="12" class="l"><a href="#12">12: </a><span class="php-comment"> *
</span></span><span id="13" class="l"><a href="#13">13: </a><span class="php-comment"> * @author Martijn W. van der Lee <martijn-at-vanderlee-dot-com>
</span></span><span id="14" class="l"><a href="#14">14: </a><span class="php-comment"> * @author Wim Muskee <wimmuskee-at-gmail-dot-com>
</span></span><span id="15" class="l"><a href="#15">15: </a><span class="php-comment"> * @copyright Copyright (c) 2011, Martijn W. van der Lee
</span></span><span id="16" class="l"><a href="#16">16: </a><span class="php-comment"> * @license http://www.opensource.org/licenses/mit-license.php
</span></span><span id="17" class="l"><a href="#17">17: </a><span class="php-comment"> */</span>
</span><span id="18" class="l"><a href="#18">18: </a>
</span><span id="19" class="l"><a href="#19">19: </a> <span class="php-keyword1">function</span> Syllable_autoloader(<span class="php-var">$class</span>) {
</span><span id="20" class="l"><a href="#20">20: </a> <span class="php-keyword1">if</span> (!<span class="php-keyword2">class_exists</span>(<span class="php-var">$class</span>) && <span class="php-keyword2">is_file</span>(<span class="php-keyword2">dirname</span>(__FILE__). <span class="php-quote">'/'</span> . <span class="php-var">$class</span> . <span class="php-quote">'.php'</span>)) {
</span><span id="21" class="l"><a href="#21">21: </a> <span class="php-keyword1">require</span> <span class="php-keyword2">dirname</span>(__FILE__). <span class="php-quote">'/'</span> . <span class="php-var">$class</span> . <span class="php-quote">'.php'</span>;
</span><span id="22" class="l"><a href="#22">22: </a> }
</span><span id="23" class="l"><a href="#23">23: </a> }
</span><span id="24" class="l"><a href="#24">24: </a>
</span><span id="25" class="l"><a href="#25">25: </a> <span class="php-keyword2">spl_autoload_register</span>(<span class="php-quote">'Syllable_autoloader'</span>);
</span><span id="26" class="l"><a href="#26">26: </a></span></code></pre>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen</a>
</div>
</div>
</div>
<script src="resources/combined.js?dc3592a696e654c132a2cb2ca318def0ec6c3f17"></script>
<script src="elementlist.js?b9a6a9ef2ec8b95559bacb4c4adb09781dd60d5a"></script>
</body>
</html>