-
Notifications
You must be signed in to change notification settings - Fork 0
/
io.randomseed.bankster.locale.html
3 lines (3 loc) · 14.9 KB
/
io.randomseed.bankster.locale.html
1
2
3
<!DOCTYPE html PUBLIC ""
"">
<html><head><meta charset="UTF-8" /><title>io.randomseed.bankster.locale documentation</title><link rel="stylesheet" type="text/css" href="css/default.css" /><link rel="stylesheet" type="text/css" href="css/highlight.css" /><script type="text/javascript" src="js/highlight.min.js"></script><script type="text/javascript" src="js/jquery.min.js"></script><script type="text/javascript" src="js/page_effects.js"></script><script>hljs.initHighlightingOnLoad();</script><link rel="stylesheet" type="text/css" href="css/randomseed.css" /></head><body><div id="header"><h2>Generated by <a href="https://github.com/weavejester/codox">Codox</a></h2><h1><a href="index.html"><span class="project-title"><span class="project-name">Bankster</span> <span class="project-version">1.0.0</span></span></a></h1></div><div class="sidebar primary"><h3 class="no-link"><span class="inner">Project</span></h3><ul class="index-link"><li class="depth-1 "><a href="index.html"><div class="inner">Index</div></a></li></ul><h3 class="no-link"><span class="inner">Topics</span></h3><ul><li class="depth-1 "><a href="10_introduction.html"><div class="inner"><span>Bankster /ˈbæŋkstə/</span></div></a></li><li class="depth-1 "><a href="40_development.html"><div class="inner"><span>Development</span></div></a></li></ul><h3 class="no-link"><span class="inner">Namespaces</span></h3><ul><li class="depth-1"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>io</span></div></div></li><li class="depth-2"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>randomseed</span></div></div></li><li class="depth-3"><a href="io.randomseed.bankster.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>bankster</span></div></a></li><li class="depth-4 branch current"><a href="io.randomseed.bankster.locale.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>locale</span></div></a></li><li class="depth-4 branch"><a href="io.randomseed.bankster.scale.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>scale</span></div></a></li><li class="depth-4"><a href="io.randomseed.bankster.util.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>util</span></div></a></li><li class="depth-5"><a href="io.randomseed.bankster.util.map.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>map</span></div></a></li></ul></div><div class="sidebar secondary"><h3><a href="#top"><span class="inner">Public Vars</span></a></h3><ul><li class="depth-1"><a href="io.randomseed.bankster.locale.html#var-all"><div class="inner"><span>all</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.locale.html#var-all-arg"><div class="inner"><span>all-arg</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.locale.html#var-all-arg-vec"><div class="inner"><span>all-arg-vec</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.locale.html#var-all-vec"><div class="inner"><span>all-vec</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.locale.html#var-available"><div class="inner"><span>available</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.locale.html#var-by-val"><div class="inner"><span>by-val</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.locale.html#var-by-val-arg"><div class="inner"><span>by-val-arg</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.locale.html#var-by-val-arg-vec"><div class="inner"><span>by-val-arg-vec</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.locale.html#var-by-val-vec"><div class="inner"><span>by-val-vec</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.locale.html#var-default"><div class="inner"><span>default</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.locale.html#var-default-val"><div class="inner"><span>default-val</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.locale.html#var-generate-sample"><div class="inner"><span>generate-sample</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.locale.html#var-generate-sample-val"><div class="inner"><span>generate-sample-val</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.locale.html#var-parse"><div class="inner"><span>parse</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.locale.html#var-strictly-valid-arg.3F"><div class="inner"><span>strictly-valid-arg?</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.locale.html#var-strictly-valid.3F"><div class="inner"><span>strictly-valid?</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.locale.html#var-valid-arg.3F"><div class="inner"><span>valid-arg?</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.locale.html#var-valid.3F"><div class="inner"><span>valid?</span></div></a></li></ul></div><div class="namespace-docs" id="content"><h1 class="anchor" id="top">io.randomseed.bankster.locale</h1><h4 class="added">added in 1.0.0</h4><div class="doc"><div class="markdown"><p>Locale support for bankster</p></div></div><div class="public anchor" id="var-all"><h3>all</h3><h4 class="added">added in 1.0.0</h4><div class="usage"></div><div class="doc"><div class="markdown"><p>Map of locales (keywords) to Locale values.</p></div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.0.0/src/io/randomseed/bankster/locale.clj#L22">view source</a></div></div><div class="public anchor" id="var-all-arg"><h3>all-arg</h3><h4 class="added">added in 1.0.0</h4><div class="usage"></div><div class="doc"><div class="markdown"><p>Map of locales (keywords) to Locale values suitable to be passed as arguments.</p></div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.0.0/src/io/randomseed/bankster/locale.clj#L35">view source</a></div></div><div class="public anchor" id="var-all-arg-vec"><h3>all-arg-vec</h3><h4 class="added">added in 1.0.0</h4><div class="usage"></div><div class="doc"><div class="markdown"><p>Vector of locales (keywords) suitable to be used as arguments.</p></div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.0.0/src/io/randomseed/bankster/locale.clj#L67">view source</a></div></div><div class="public anchor" id="var-all-vec"><h3>all-vec</h3><h4 class="added">added in 1.0.0</h4><div class="usage"></div><div class="doc"><div class="markdown"><p>Vector of locales (keywords).</p></div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.0.0/src/io/randomseed/bankster/locale.clj#L61">view source</a></div></div><div class="public anchor" id="var-available"><h3>available</h3><h4 class="added">added in 1.0.0</h4><div class="usage"></div><div class="doc"><div class="markdown"><p>Set of available locale (keywords).</p></div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.0.0/src/io/randomseed/bankster/locale.clj#L55">view source</a></div></div><div class="public anchor" id="var-by-val"><h3>by-val</h3><h4 class="added">added in 1.0.0</h4><div class="usage"></div><div class="doc"><div class="markdown"><p>Map of Locale values to locales (keywords).</p></div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.0.0/src/io/randomseed/bankster/locale.clj#L41">view source</a></div></div><div class="public anchor" id="var-by-val-arg"><h3>by-val-arg</h3><h4 class="added">added in 1.0.0</h4><div class="usage"></div><div class="doc"><div class="markdown"><p>Map of Locale values to locales (keywords) suitable to be passed as method arguments.</p></div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.0.0/src/io/randomseed/bankster/locale.clj#L47">view source</a></div></div><div class="public anchor" id="var-by-val-arg-vec"><h3>by-val-arg-vec</h3><h4 class="added">added in 1.0.0</h4><div class="usage"></div><div class="doc"><div class="markdown"><p>Vector of locales (Locale values) suitable to be used as method arguments.</p></div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.0.0/src/io/randomseed/bankster/locale.clj#L79">view source</a></div></div><div class="public anchor" id="var-by-val-vec"><h3>by-val-vec</h3><h4 class="added">added in 1.0.0</h4><div class="usage"></div><div class="doc"><div class="markdown"><p>Vector of locales (Locale values).</p></div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.0.0/src/io/randomseed/bankster/locale.clj#L73">view source</a></div></div><div class="public anchor" id="var-default"><h3>default</h3><h4 class="added">added in 1.0.0</h4><div class="usage"></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.0.0/src/io/randomseed/bankster/locale.clj#L13">view source</a></div></div><div class="public anchor" id="var-default-val"><h3>default-val</h3><h4 class="added">added in 1.0.0</h4><div class="usage"></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.0.0/src/io/randomseed/bankster/locale.clj#L18">view source</a></div></div><div class="public anchor" id="var-generate-sample"><h3>generate-sample</h3><h4 class="added">added in 1.0.0</h4><div class="usage"><code>(generate-sample)</code><code>(generate-sample rng)</code></div><div class="doc"><div class="markdown"><p>Generates random locale.</p></div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.0.0/src/io/randomseed/bankster/locale.clj#L169">view source</a></div></div><div class="public anchor" id="var-generate-sample-val"><h3>generate-sample-val</h3><h4 class="added">added in 1.0.0</h4><div class="usage"><code>(generate-sample-val)</code><code>(generate-sample-val rng)</code></div><div class="doc"><div class="markdown"><p>Generates random locale (string value).</p></div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.0.0/src/io/randomseed/bankster/locale.clj#L175">view source</a></div></div><div class="public anchor" id="var-parse"><h3>parse</h3><h4 class="added">added in 1.0.0</h4><div class="usage"><code>(parse locale-specification)</code><code>(parse locale-specification use-infer)</code></div><div class="doc"><div class="markdown"><p>Parses locale. If it is a <code>java.util.Locale</code> object it returns it. If it’s not keyword then it parses it by calling <code>trptr.java-wrapper.locale/locale</code>. If it is a keyword it first tries to infer a namespace (if not present and the <code>use-infer</code> is set to some truthy value) and then looks it up in locales map. If the value is found, returns the associated <code>Locale</code> object. Otherwise it falls back to getting locale using the function from <code>trptr.java-wrapper.locale/locale</code> (before doing so it strips any namespace from a keyword, if found).</p></div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.0.0/src/io/randomseed/bankster/locale.clj#L150">view source</a></div></div><div class="public anchor" id="var-strictly-valid-arg.3F"><h3>strictly-valid-arg?</h3><h4 class="added">added in 1.0.0</h4><div class="usage"><code>(strictly-valid-arg? locale-specification)</code><code>(strictly-valid-arg? locale-specification use-infer)</code></div><div class="doc"><div class="markdown"><p>Returns <code>true</code> if the given locale specification is valid and supported, <code>false</code> otherwise. For <code>nil</code> it returns <code>false</code> and for keywords it only checks if they are in the locale map (<code>bankster.locale/all</code>). If the key is not there, it returns <code>false</code>. Namespace inference is supported using the second argument (the default is not to infer).</p></div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.0.0/src/io/randomseed/bankster/locale.clj#L111">view source</a></div></div><div class="public anchor" id="var-strictly-valid.3F"><h3>strictly-valid?</h3><h4 class="added">added in 1.0.0</h4><div class="usage"><code>(strictly-valid? locale-specification)</code><code>(strictly-valid? locale-specification use-infer)</code></div><div class="doc"><div class="markdown"><p>Returns <code>true</code> if the given locale specification is valid and supported, <code>false</code> otherwise. For <code>nil</code> it returns <code>false</code> and for keywords it only checks if they are in the locale map (<code>bankster.locale/all</code>). If the key is not there, it returns <code>false</code>. Namespace inference is supported using the second argument (the default is not to infer).</p></div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.0.0/src/io/randomseed/bankster/locale.clj#L138">view source</a></div></div><div class="public anchor" id="var-valid-arg.3F"><h3>valid-arg?</h3><h4 class="added">added in 1.0.0</h4><div class="usage"><code>(valid-arg? locale-specification)</code><code>(valid-arg? locale-specification use-infer)</code><code>(valid-arg? locale-specification use-infer strict)</code></div><div class="doc"><div class="markdown"><p>Returns <code>true</code> if the given locale specification is valid and supported, <code>false</code> otherwise. For <code>nil</code> it returns <code>true</code> assuming it will be a default, system locale. If <code>strict</code> flag is set then for nil value it returns <code>false</code> and for keywords it only checks if they are in the locale map (<code>bankster.locale/all</code>).</p></div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.0.0/src/io/randomseed/bankster/locale.clj#L85">view source</a></div></div><div class="public anchor" id="var-valid.3F"><h3>valid?</h3><h4 class="added">added in 1.0.0</h4><div class="usage"><code>(valid? locale-specification)</code><code>(valid? locale-specification use-infer)</code><code>(valid? locale-specification use-infer strict)</code></div><div class="doc"><div class="markdown"><p>Returns <code>true</code> if the given locale specification is valid and supported, <code>false</code> otherwise. For <code>nil</code> it returns <code>true</code> assuming it will be a default, system locale. If <code>strict</code> flag is set then for nil value it returns <code>false</code> and for keywords it only checks if they are in the locale map (<code>bankster.locale/all</code>).</p></div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.0.0/src/io/randomseed/bankster/locale.clj#L124">view source</a></div></div></div></body></html>