code_text
stringlengths
604
999k
repo_name
stringlengths
4
100
file_path
stringlengths
4
873
language
stringclasses
23 values
license
stringclasses
15 values
size
int32
1.02k
999k
<!DOCTYPE html> <html lang="en"> <head> <title> Reference</title> <link rel="stylesheet" type="text/css" href="css/jazzy.css" /> <link rel="stylesheet" type="text/css" href="css/highlight.css" /> <meta charset='utf-8'> <script src="js/jquery.min.js" defer></script> <script src="js/jazzy.js" defer></script> </head> <body> <a title=" Reference"></a> <header> <div class="content-wrapper"> <p><a href="index.html"> Docs</a></p> <p class="header-right"><a href="https://github.com/watson-developer-cloud/ios-sdk"><img src="img/gh.png"/>View on GitHub</a></p> </div> </header> <div class="content-wrapper"> <p id="breadcrumbs"> <a href="index.html"> Reference</a> <img id="carat" src="img/carat.png" /> Reference </p> </div> <div class="content-wrapper"> <nav class="sidebar"> <ul class="nav-groups"> <li class="nav-group-name"> <a href="Classes.html">Classes</a> <ul class="nav-group-tasks"> <li class="nav-group-task"> <a href="Classes/NaturalLanguageClassifier.html">NaturalLanguageClassifier</a> </li> </ul> </li> <li class="nav-group-name"> <a href="Enums.html">Enumerations</a> <ul class="nav-group-tasks"> <li class="nav-group-task"> <a href="Enums/JSON.html">JSON</a> </li> <li class="nav-group-task"> <a href="Enums/RestError.html">RestError</a> </li> </ul> </li> <li class="nav-group-name"> <a href="Structs.html">Structures</a> <ul class="nav-group-tasks"> <li class="nav-group-task"> <a href="Structs/Classification.html">Classification</a> </li> <li class="nav-group-task"> <a href="Structs/ClassificationCollection.html">ClassificationCollection</a> </li> <li class="nav-group-task"> <a href="Structs/ClassifiedClass.html">ClassifiedClass</a> </li> <li class="nav-group-task"> <a href="Structs/Classifier.html">Classifier</a> </li> <li class="nav-group-task"> <a href="Structs/Classifier/Status.html">– Status</a> </li> <li class="nav-group-task"> <a href="Structs/ClassifierList.html">ClassifierList</a> </li> <li class="nav-group-task"> <a href="Structs/ClassifyCollectionInput.html">ClassifyCollectionInput</a> </li> <li class="nav-group-task"> <a href="Structs/ClassifyInput.html">ClassifyInput</a> </li> <li class="nav-group-task"> <a href="Structs/CollectionItem.html">CollectionItem</a> </li> <li class="nav-group-task"> <a href="Structs.html#/s:27NaturalLanguageClassifierV111JSONWrapperV">JSONWrapper</a> </li> </ul> </li> </ul> </nav> <article class="main-content"> <section> <section class="section"> <h1 id='watson-developer-cloud-swift-sdk' class='heading'>Watson Developer Cloud Swift SDK</h1> <p><a href="https://travis-ci.org/watson-developer-cloud/swift-sdk"><img src="https://travis-ci.org/watson-developer-cloud/swift-sdk.svg?branch=master" alt="Build Status"></a> <img src="https://img.shields.io/badge/platform-iOS,%20Linux-blue.svg?style=flat" alt=""> <a href="https://github.com/Carthage/Carthage"><img src="https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat" alt="Carthage Compatible"></a> <a href="http://watson-developer-cloud.github.io/swift-sdk"><img src="https://img.shields.io/badge/Documentation-API-blue.svg" alt="Documentation"></a> <a href="https://cla-assistant.io/watson-developer-cloud/swift-sdk"><img src="https://cla-assistant.io/readme/badge/watson-developer-cloud/swift-sdk" alt="CLA assistant"></a></p> <h2 id='overview' class='heading'>Overview</h2> <p>The Watson Developer Cloud Swift SDK makes it easy for mobile developers to build Watson-powered applications. With the Swift SDK you can leverage the power of Watson&rsquo;s advanced artificial intelligence, machine learning, and deep learning techniques to understand unstructured data and engage with mobile users in new ways.</p> <p>There are many resources to help you build your first cognitive application with the Swift SDK:</p> <ul> <li>Read the <a href="README.md">Readme</a></li> <li>Follow the <a href="docs/quickstart.md">QuickStart Guide</a></li> <li>Review a <a href="#sample-applications">Sample Application</a></li> <li>Browse the <a href="http://watson-developer-cloud.github.io/swift-sdk/">Documentation</a></li> </ul> <h2 id='contents' class='heading'>Contents</h2> <h3 id='general' class='heading'>General</h3> <ul> <li><a href="#requirements">Requirements</a></li> <li><a href="#installation">Installation</a></li> <li><a href="#service-instances">Service Instances</a></li> <li><a href="#custom-service-urls">Custom Service URLs</a></li> <li><a href="#custom-headers">Custom Headers</a></li> <li><a href="#sample-applications">Sample Applications</a></li> <li><a href="#synchronous-execution">Synchronous Execution</a></li> <li><a href="#objective-c-compatibility">Objective-C Compatibility</a></li> <li><a href="#linux-compatibility">Linux Compatibility</a></li> <li><a href="#contributing">Contributing</a></li> <li><a href="#license">License</a></li> </ul> <h3 id='services' class='heading'>Services</h3> <ul> <li><a href="#assistant">Assistant</a></li> <li><a href="#discovery">Discovery</a></li> <li><a href="#language-translator">Language Translator</a></li> <li><a href="#natural-language-classifier">Natural Language Classifier</a></li> <li><a href="#natural-language-understanding">Natural Language Understanding</a></li> <li><a href="#personality-insights">Personality Insights</a></li> <li><a href="#speech-to-text">Speech to Text</a></li> <li><a href="#text-to-speech">Text to Speech</a></li> <li><a href="#tone-analyzer">Tone Analyzer</a></li> <li><a href="#visual-recognition">Visual Recognition</a></li> </ul> <h2 id='requirements' class='heading'>Requirements</h2> <ul> <li>iOS 8.0+</li> <li>Xcode 9.0+</li> <li>Swift 3.2+ or Swift 4.0+</li> </ul> <h2 id='installation' class='heading'>Installation</h2> <h3 id='dependency-management' class='heading'>Dependency Management</h3> <p>We recommend using <a href="https://github.com/Carthage/Carthage">Carthage</a> to manage dependencies and build the Swift SDK for your application.</p> <p>You can install Carthage with <a href="http://brew.sh/">Homebrew</a>:</p> <pre class="highlight shell"><code><span class="nv">$ </span>brew update <span class="nv">$ </span>brew <span class="nb">install </span>carthage </code></pre> <p>Then, navigate to the root directory of your project (where your .xcodeproj file is located) and create an empty <code>Cartfile</code> there:</p> <pre class="highlight shell"><code><span class="nv">$ </span><span class="nb">touch </span>Cartfile </code></pre> <p>To use the Watson Developer Cloud Swift SDK in your application, specify it in your <code>Cartfile</code>:</p> <pre class="highlight plaintext"><code>github "watson-developer-cloud/swift-sdk" </code></pre> <p>In a production app, you may also want to specify a <a href="https://github.com/Carthage/Carthage/blob/master/Documentation/Artifacts.md#version-requirement">version requirement</a>.</p> <p>Then run the following command to build the dependencies and frameworks:</p> <pre class="highlight shell"><code><span class="nv">$ </span>carthage update <span class="nt">--platform</span> iOS </code></pre> <p>Finally, drag-and-drop the built frameworks into your Xcode project and import them as desired. If you are using Speech to Text, be sure to include both <code>SpeechToTextV1.framework</code> and <code>Starscream.framework</code> in your application.</p> <h3 id='swift-package-manager' class='heading'>Swift Package Manager</h3> <p>Add the following to your <code>Package.swift</code> file to identify the Swift SDK as a dependency. The package manager will clone the Swift SDK when you build your project with <code>swift build</code>.</p> <pre class="highlight swift"><code><span class="nv">dependencies</span><span class="p">:</span> <span class="p">[</span> <span class="o">.</span><span class="nf">package</span><span class="p">(</span><span class="nv">url</span><span class="p">:</span> <span class="s">"https://github.com/watson-developer-cloud/swift-sdk"</span><span class="p">,</span> <span class="nv">from</span><span class="p">:</span> <span class="s">"0.26.0"</span><span class="p">)</span> <span class="p">]</span> </code></pre> <h2 id='service-instances' class='heading'>Service Instances</h2> <p><a href="https://www.ibm.com/watson/developer/">IBM Watson</a> offers a variety of services for developing cognitive applications. The complete list of Watson services is available from the <a href="https://www.ibm.com/watson/products-services/">products and services</a> page. Services are instantiated using the <a href="https://www.ibm.com/cloud/">IBM Cloud</a> platform.</p> <p>Follow these steps to create a service instance and obtain its credentials:</p> <ol> <li>Log in to IBM Cloud at <a href="https://bluemix.net">https://bluemix.net</a>.</li> <li>Create a service instance: <ol> <li>From the Dashboard, select <q>Use Services or APIs</q>.</li> <li>Select the service you want to use.</li> <li>Click <q>Create</q>.</li> </ol></li> <li>Copy your service credentials: <ol> <li>Click <q>Service Credentials</q> on the left side of the page.</li> <li>Copy the service&rsquo;s <code>username</code> and <code>password</code> (or <code>api_key</code> for Visual Recognition).</li> </ol></li> </ol> <p>You will need to provide these service credentials in your mobile application. For example:</p> <pre class="highlight swift"><code><span class="k">let</span> <span class="nv">textToSpeech</span> <span class="o">=</span> <span class="kt">TextToSpeech</span><span class="p">(</span><span class="nv">username</span><span class="p">:</span> <span class="s">"your-username-here"</span><span class="p">,</span> <span class="nv">password</span><span class="p">:</span> <span class="s">"your-password-here"</span><span class="p">)</span> </code></pre> <p>Note that service credentials are different from your IBM Cloud username and password.</p> <p>See <a href="https://console.bluemix.net/docs/services/watson/index.html">Getting started with Watson and IBM Cloud</a> for details.</p> <h2 id='custom-service-urls' class='heading'>Custom Service URLs</h2> <p>You can set a custom service URL by modifying the <code>serviceURL</code> property. A custom service URL may be required when running an instance in a particular region or connecting through a proxy.</p> <p>For example, here is how to connect to a Tone Analyzer instance that is hosted in Germany:</p> <pre class="highlight swift"><code><span class="k">let</span> <span class="nv">toneAnalyzer</span> <span class="o">=</span> <span class="kt">ToneAnalyzer</span><span class="p">(</span> <span class="nv">username</span><span class="p">:</span> <span class="s">"your-username-here"</span><span class="p">,</span> <span class="nv">password</span><span class="p">:</span> <span class="s">"your-password-here"</span><span class="p">,</span> <span class="nv">version</span><span class="p">:</span> <span class="s">"yyyy-mm-dd"</span> <span class="p">)</span> <span class="n">toneAnalyzer</span><span class="o">.</span><span class="n">serviceURL</span> <span class="o">=</span> <span class="s">"https://gateway-fra.watsonplatform.net/tone-analyzer/api"</span> </code></pre> <h2 id='custom-headers' class='heading'>Custom Headers</h2> <p>There are different headers that can be sent to the Watson services. For example, Watson services log requests and their results for the purpose of improving the services, but you can include the <code>X-Watson-Learning-Opt-Out</code> header to opt out of this.</p> <p>We have exposed a <code>defaultHeaders</code> public property in each class to allow users to easily customize their headers:</p> <pre class="highlight swift"><code><span class="k">let</span> <span class="nv">naturalLanguageClassifier</span> <span class="o">=</span> <span class="kt">NaturalLanguageClassifier</span><span class="p">(</span><span class="nv">username</span><span class="p">:</span> <span class="n">username</span><span class="p">,</span> <span class="nv">password</span><span class="p">:</span> <span class="n">password</span><span class="p">)</span> <span class="n">naturalLanguageClassifier</span><span class="o">.</span><span class="n">defaultHeaders</span> <span class="o">=</span> <span class="p">[</span><span class="s">"X-Watson-Learning-Opt-Out"</span><span class="p">:</span> <span class="s">"true"</span><span class="p">]</span> </code></pre> <p>Each service method also accepts an optional <code>headers</code> parameter which is a dictionary of request headers to be sent with the request.</p> <h2 id='sample-applications' class='heading'>Sample Applications</h2> <ul> <li><a href="https://github.com/watson-developer-cloud/simple-chat-swift">Simple Chat (Swift)</a></li> <li><a href="https://github.com/watson-developer-cloud/simple-chat-objective-c">Simple Chat (Objective-C)</a></li> <li><a href="https://github.com/watson-developer-cloud/visual-recognition-coreml">Visual Recognition with Core ML</a></li> <li><a href="https://github.com/watson-developer-cloud/visual-recognition-with-discovery-coreml">Visual Recognition and Discovery with Core ML</a></li> <li><a href="https://github.com/watson-developer-cloud/speech-to-text-swift">Speech to Text</a></li> <li><a href="https://github.com/watson-developer-cloud/text-to-speech-swift">Text to Speech</a></li> <li><a href="https://github.com/IBM-MIL/CognitiveConcierge">Cognitive Concierge</a></li> </ul> <h2 id='synchronous-execution' class='heading'>Synchronous Execution</h2> <p>By default, the SDK executes all networking operations asynchonously. If your application requires synchronous execution, you can use a <code>DispatchGroup</code>. For example:</p> <pre class="highlight swift"><code><span class="k">let</span> <span class="nv">dispatchGroup</span> <span class="o">=</span> <span class="kt">DispatchGroup</span><span class="p">()</span> <span class="n">dispatchGroup</span><span class="o">.</span><span class="nf">enter</span><span class="p">()</span> <span class="n">assistant</span><span class="o">.</span><span class="nf">message</span><span class="p">(</span><span class="nv">workspaceID</span><span class="p">:</span> <span class="n">workspaceID</span><span class="p">)</span> <span class="p">{</span> <span class="n">response</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">response</span><span class="o">.</span><span class="n">output</span><span class="o">.</span><span class="n">text</span><span class="p">)</span> <span class="n">dispatchGroup</span><span class="o">.</span><span class="nf">leave</span><span class="p">()</span> <span class="p">}</span> <span class="n">dispatchGroup</span><span class="o">.</span><span class="nf">wait</span><span class="p">(</span><span class="nv">timeout</span><span class="p">:</span> <span class="o">.</span><span class="n">distantFuture</span><span class="p">)</span> </code></pre> <h2 id='objective-c-compatibility' class='heading'>Objective-C Compatibility</h2> <p>Please see <a href="docs/objective-c.md">this tutorial</a> for more information about consuming the Watson Developer Cloud Swift SDK in an Objective-C application.</p> <h2 id='linux-compatibility' class='heading'>Linux Compatibility</h2> <p>To use the Watson SDK in your Linux project, please follow the <a href="#swift-package-manager">Swift Package Manager instructions.</a>. Note that Speech to Text and Text to Speech are not supported because they rely on frameworks that are unavailable on Linux.</p> <h2 id='contributing' class='heading'>Contributing</h2> <p>We would love any and all help! If you would like to contribute, please read our <a href="https://github.com/watson-developer-cloud/swift-sdk/blob/master/.github/CONTRIBUTING.md">CONTRIBUTING</a> documentation with information on getting started.</p> <h2 id='license' class='heading'>License</h2> <p>This library is licensed under Apache 2.0. Full license text is available in <a href="https://github.com/watson-developer-cloud/swift-sdk/blob/master/LICENSE">LICENSE</a>.</p> <p>This SDK is intended for use with an Apple iOS product and intended to be used in conjunction with officially licensed Apple development tools.</p> <h2 id='assistant' class='heading'>Assistant</h2> <p>With the IBM Watson Assistant service you can create cognitive agents&ndash;virtual agents that combine machine learning, natural language understanding, and integrated dialog scripting tools to provide outstanding customer engagements.</p> <p>The following example shows how to start a conversation with the Assistant service:</p> <pre class="highlight swift"><code><span class="kd">import</span> <span class="kt">AssistantV1</span> <span class="k">let</span> <span class="nv">username</span> <span class="o">=</span> <span class="s">"your-username-here"</span> <span class="k">let</span> <span class="nv">password</span> <span class="o">=</span> <span class="s">"your-password-here"</span> <span class="k">let</span> <span class="nv">version</span> <span class="o">=</span> <span class="s">"YYYY-MM-DD"</span> <span class="c1">// use today's date for the most recent version</span> <span class="k">let</span> <span class="nv">assistant</span> <span class="o">=</span> <span class="kt">Assistant</span><span class="p">(</span><span class="nv">username</span><span class="p">:</span> <span class="n">username</span><span class="p">,</span> <span class="nv">password</span><span class="p">:</span> <span class="n">password</span><span class="p">,</span> <span class="nv">version</span><span class="p">:</span> <span class="n">version</span><span class="p">)</span> <span class="k">let</span> <span class="nv">workspaceID</span> <span class="o">=</span> <span class="s">"your-workspace-id-here"</span> <span class="k">let</span> <span class="nv">failure</span> <span class="o">=</span> <span class="p">{</span> <span class="p">(</span><span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">)</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">error</span><span class="p">)</span> <span class="p">}</span> <span class="k">var</span> <span class="nv">context</span><span class="p">:</span> <span class="kt">Context</span><span class="p">?</span> <span class="c1">// save context to continue conversation</span> <span class="n">assistant</span><span class="o">.</span><span class="nf">message</span><span class="p">(</span><span class="nv">workspaceID</span><span class="p">:</span> <span class="n">workspaceID</span><span class="p">,</span> <span class="nv">failure</span><span class="p">:</span> <span class="n">failure</span><span class="p">)</span> <span class="p">{</span> <span class="n">response</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">response</span><span class="o">.</span><span class="n">output</span><span class="o">.</span><span class="n">text</span><span class="p">)</span> <span class="n">context</span> <span class="o">=</span> <span class="n">response</span><span class="o">.</span><span class="n">context</span> <span class="p">}</span> </code></pre> <p>The following example shows how to continue an existing conversation with the Assistant service:</p> <pre class="highlight swift"><code><span class="k">let</span> <span class="nv">input</span> <span class="o">=</span> <span class="kt">InputData</span><span class="p">(</span><span class="nv">text</span><span class="p">:</span> <span class="s">"Turn on the radio."</span><span class="p">)</span> <span class="k">let</span> <span class="nv">request</span> <span class="o">=</span> <span class="kt">MessageRequest</span><span class="p">(</span><span class="nv">input</span><span class="p">:</span> <span class="n">input</span><span class="p">,</span> <span class="nv">context</span><span class="p">:</span> <span class="n">context</span><span class="p">)</span> <span class="k">let</span> <span class="nv">failure</span> <span class="o">=</span> <span class="p">{</span> <span class="p">(</span><span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">)</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">error</span><span class="p">)</span> <span class="p">}</span> <span class="n">assistant</span><span class="o">.</span><span class="nf">message</span><span class="p">(</span><span class="nv">workspaceID</span><span class="p">:</span> <span class="n">workspaceID</span><span class="p">,</span> <span class="nv">request</span><span class="p">:</span> <span class="n">request</span><span class="p">,</span> <span class="nv">failure</span><span class="p">:</span> <span class="n">failure</span><span class="p">)</span> <span class="p">{</span> <span class="n">response</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">response</span><span class="o">.</span><span class="n">output</span><span class="o">.</span><span class="n">text</span><span class="p">)</span> <span class="n">context</span> <span class="o">=</span> <span class="n">response</span><span class="o">.</span><span class="n">context</span> <span class="p">}</span> </code></pre> <h4 id='context-variables' class='heading'>Context Variables</h4> <p>The Assistant service allows users to define custom context variables in their application&rsquo;s payload. For example, a workspace that guides users through a pizza order might include a context variable for pizza size: <code>&quot;pizza_size&quot;: &quot;large&quot;</code>.</p> <p>Context variables are get/set using the <code>var additionalProperties: [String: JSON]</code> property of a <code>Context</code> model. The following example shows how to get and set a user-defined <code>pizza_size</code> variable:</p> <pre class="highlight swift"><code><span class="c1">// get the `pizza_size` context variable</span> <span class="n">assistant</span><span class="o">.</span><span class="nf">message</span><span class="p">(</span><span class="nv">workspaceID</span><span class="p">:</span> <span class="n">workspaceID</span><span class="p">,</span> <span class="nv">request</span><span class="p">:</span> <span class="n">request</span><span class="p">,</span> <span class="nv">failure</span><span class="p">:</span> <span class="n">failure</span><span class="p">)</span> <span class="p">{</span> <span class="n">response</span> <span class="k">in</span> <span class="k">if</span> <span class="k">case</span> <span class="kd">let</span> <span class="o">.</span><span class="nf">string</span><span class="p">(</span><span class="n">size</span><span class="p">)</span> <span class="o">=</span> <span class="n">response</span><span class="o">.</span><span class="n">context</span><span class="o">.</span><span class="n">additionalProperties</span><span class="p">[</span><span class="s">"pizza_size"</span><span class="p">]</span><span class="o">!</span> <span class="p">{</span> <span class="nf">print</span><span class="p">(</span><span class="n">size</span><span class="p">)</span> <span class="p">}</span> <span class="p">}</span> <span class="c1">// set the `pizza_size` context variable</span> <span class="n">assistant</span><span class="o">.</span><span class="nf">message</span><span class="p">(</span><span class="nv">workspaceID</span><span class="p">:</span> <span class="n">workspaceID</span><span class="p">,</span> <span class="nv">request</span><span class="p">:</span> <span class="n">request</span><span class="p">,</span> <span class="nv">failure</span><span class="p">:</span> <span class="n">failure</span><span class="p">)</span> <span class="p">{</span> <span class="n">response</span> <span class="k">in</span> <span class="k">var</span> <span class="nv">context</span> <span class="o">=</span> <span class="n">response</span><span class="o">.</span><span class="n">context</span> <span class="c1">// `var` makes the context mutable</span> <span class="n">context</span><span class="p">?</span><span class="o">.</span><span class="n">additionalProperties</span><span class="p">[</span><span class="s">"pizza_size"</span><span class="p">]</span> <span class="o">=</span> <span class="o">.</span><span class="nf">string</span><span class="p">(</span><span class="s">"large"</span><span class="p">)</span> <span class="p">}</span> </code></pre> <p>For reference, the <code><a href="Enums/JSON.html">JSON</a></code> type is defined as:</p> <pre class="highlight swift"><code><span class="c1">/// A JSON value (one of string, number, object, array, true, false, or null).</span> <span class="kd">public</span> <span class="kd">enum</span> <span class="kt">JSON</span><span class="p">:</span> <span class="kt">Equatable</span><span class="p">,</span> <span class="kt">Codable</span> <span class="p">{</span> <span class="k">case</span> <span class="n">null</span> <span class="k">case</span> <span class="nf">boolean</span><span class="p">(</span><span class="kt">Bool</span><span class="p">)</span> <span class="k">case</span> <span class="nf">string</span><span class="p">(</span><span class="kt">String</span><span class="p">)</span> <span class="k">case</span> <span class="nf">int</span><span class="p">(</span><span class="kt">Int</span><span class="p">)</span> <span class="k">case</span> <span class="nf">double</span><span class="p">(</span><span class="kt">Double</span><span class="p">)</span> <span class="k">case</span> <span class="nf">array</span><span class="p">([</span><span class="kt">JSON</span><span class="p">])</span> <span class="k">case</span> <span class="nf">object</span><span class="p">([</span><span class="kt">String</span><span class="p">:</span> <span class="kt">JSON</span><span class="p">])</span> <span class="p">}</span> </code></pre> <p>The following links provide more information about the IBM Watson Assistant service:</p> <ul> <li><a href="https://www.ibm.com/watson/services/conversation/">IBM Watson Assistant - Service Page</a></li> <li><a href="https://console.bluemix.net/docs/services/conversation/index.html">IBM Watson Assistant - Documentation</a></li> </ul> <h2 id='discovery' class='heading'>Discovery</h2> <p>IBM Watson Discovery makes it possible to rapidly build cognitive, cloud-based exploration applications that unlock actionable insights hidden in unstructured data — including your own proprietary data, as well as public and third-party data. With Discovery, it only takes a few steps to prepare your unstructured data, create a query that will pinpoint the information you need, and then integrate those insights into your new application or existing solution.</p> <h3 id='discovery-news' class='heading'>Discovery News</h3> <p>IBM Watson Discovery News is included with Discovery. Watson Discovery News is an indexed dataset with news articles from the past 60 days — approximately 300,000 English articles daily. The dataset is pre-enriched with the following cognitive insights: Keyword Extraction, Entity Extraction, Semantic Role Extraction, Sentiment Analysis, Relation Extraction, and Category Classification.</p> <p>The following example shows how to query the Watson Discovery News dataset:</p> <pre class="highlight swift"><code><span class="kd">import</span> <span class="kt">DiscoveryV1</span> <span class="k">let</span> <span class="nv">username</span> <span class="o">=</span> <span class="s">"your-username-here"</span> <span class="k">let</span> <span class="nv">password</span> <span class="o">=</span> <span class="s">"your-password-here"</span> <span class="k">let</span> <span class="nv">version</span> <span class="o">=</span> <span class="s">"YYYY-MM-DD"</span> <span class="c1">// use today's date for the most recent version</span> <span class="k">let</span> <span class="nv">discovery</span> <span class="o">=</span> <span class="kt">Discovery</span><span class="p">(</span><span class="nv">username</span><span class="p">:</span> <span class="n">username</span><span class="p">,</span> <span class="nv">password</span><span class="p">:</span> <span class="n">password</span><span class="p">,</span> <span class="nv">version</span><span class="p">:</span> <span class="n">version</span><span class="p">)</span> <span class="k">let</span> <span class="nv">failure</span> <span class="o">=</span> <span class="p">{</span> <span class="p">(</span><span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">)</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">failure</span><span class="p">)</span> <span class="p">}</span> <span class="n">discovery</span><span class="o">.</span><span class="nf">query</span><span class="p">(</span> <span class="nv">environmentID</span><span class="p">:</span> <span class="s">"system"</span><span class="p">,</span> <span class="nv">collectionID</span><span class="p">:</span> <span class="s">"news-en"</span><span class="p">,</span> <span class="nv">query</span><span class="p">:</span> <span class="s">"enriched_text.concepts.text:</span><span class="se">\"</span><span class="s">Cloud computing</span><span class="se">\"</span><span class="s">"</span><span class="p">,</span> <span class="nv">failure</span><span class="p">:</span> <span class="n">failure</span><span class="p">)</span> <span class="p">{</span> <span class="n">queryResponse</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">queryResponse</span><span class="p">)</span> <span class="p">}</span> </code></pre> <h3 id='private-data-collections' class='heading'>Private Data Collections</h3> <p>The Swift SDK supports environment management, collection management, and document uploading. But you may find it easier to create private data collections using the <a href="https://console.bluemix.net/docs/services/discovery/getting-started-tool.html#getting-started-with-the-tooling">Discovery Tooling</a> instead.</p> <p>Once your content has been uploaded and enriched by the Discovery service, you can search the collection with queries. The following example demonstrates a complex query with a filter, query, and aggregation:</p> <pre class="highlight swift"><code><span class="kd">import</span> <span class="kt">DiscoveryV1</span> <span class="k">let</span> <span class="nv">username</span> <span class="o">=</span> <span class="s">"your-username-here"</span> <span class="k">let</span> <span class="nv">password</span> <span class="o">=</span> <span class="s">"your-password-here"</span> <span class="k">let</span> <span class="nv">version</span> <span class="o">=</span> <span class="s">"YYYY-MM-DD"</span> <span class="c1">// use today's date for the most recent version</span> <span class="k">let</span> <span class="nv">discovery</span> <span class="o">=</span> <span class="kt">Discovery</span><span class="p">(</span><span class="nv">username</span><span class="p">:</span> <span class="n">username</span><span class="p">,</span> <span class="nv">password</span><span class="p">:</span> <span class="n">password</span><span class="p">,</span> <span class="nv">version</span><span class="p">:</span> <span class="n">version</span><span class="p">)</span> <span class="k">let</span> <span class="nv">failure</span> <span class="o">=</span> <span class="p">{</span> <span class="p">(</span><span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">)</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">failure</span><span class="p">)</span> <span class="p">}</span> <span class="n">discovery</span><span class="o">.</span><span class="nf">query</span><span class="p">(</span> <span class="nv">environmentID</span><span class="p">:</span> <span class="s">"your-environment-id"</span><span class="p">,</span> <span class="nv">collectionID</span><span class="p">:</span> <span class="s">"your-collection-id"</span><span class="p">,</span> <span class="nv">filter</span><span class="p">:</span> <span class="s">"enriched_text.concepts.text:</span><span class="se">\"</span><span class="s">Technology</span><span class="se">\"</span><span class="s">"</span><span class="p">,</span> <span class="nv">query</span><span class="p">:</span> <span class="s">"enriched_text.concepts.text:</span><span class="se">\"</span><span class="s">Cloud computing</span><span class="se">\"</span><span class="s">"</span><span class="p">,</span> <span class="nv">aggregation</span><span class="p">:</span> <span class="s">"term(enriched_text.concepts.text,count:10)"</span><span class="p">,</span> <span class="nv">failure</span><span class="p">:</span> <span class="n">failure</span><span class="p">)</span> <span class="p">{</span> <span class="n">queryResponse</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">queryResponse</span><span class="p">)</span> <span class="p">}</span> </code></pre> <p>You can also upload new documents into your private collection:</p> <pre class="highlight swift"><code><span class="kd">import</span> <span class="kt">DiscoveryV1</span> <span class="k">let</span> <span class="nv">username</span> <span class="o">=</span> <span class="s">"your-username-here"</span> <span class="k">let</span> <span class="nv">password</span> <span class="o">=</span> <span class="s">"your-password-here"</span> <span class="k">let</span> <span class="nv">version</span> <span class="o">=</span> <span class="s">"YYYY-MM-DD"</span> <span class="c1">// use today's date for the most recent version</span> <span class="k">let</span> <span class="nv">discovery</span> <span class="o">=</span> <span class="kt">Discovery</span><span class="p">(</span><span class="nv">username</span><span class="p">:</span> <span class="n">username</span><span class="p">,</span> <span class="nv">password</span><span class="p">:</span> <span class="n">password</span><span class="p">,</span> <span class="nv">version</span><span class="p">:</span> <span class="n">version</span><span class="p">)</span> <span class="k">let</span> <span class="nv">failure</span> <span class="o">=</span> <span class="p">{</span> <span class="p">(</span><span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">)</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">failure</span><span class="p">)</span> <span class="p">}</span> <span class="k">let</span> <span class="nv">file</span> <span class="o">=</span> <span class="kt">Bundle</span><span class="o">.</span><span class="n">main</span><span class="o">.</span><span class="nf">url</span><span class="p">(</span><span class="nv">forResource</span><span class="p">:</span> <span class="s">"KennedySpeech"</span><span class="p">,</span> <span class="nv">withExtension</span><span class="p">:</span> <span class="s">"html"</span><span class="p">)</span><span class="o">!</span> <span class="n">discovery</span><span class="o">.</span><span class="nf">addDocument</span><span class="p">(</span> <span class="nv">environmentID</span><span class="p">:</span> <span class="s">"your-environment-id"</span><span class="p">,</span> <span class="nv">collectionID</span><span class="p">:</span> <span class="s">"your-collection-id"</span><span class="p">,</span> <span class="nv">file</span><span class="p">:</span> <span class="n">file</span><span class="p">,</span> <span class="nv">fileContentType</span><span class="p">:</span> <span class="s">"text/html"</span><span class="p">,</span> <span class="nv">failure</span><span class="p">:</span> <span class="n">failWithError</span><span class="p">)</span> <span class="p">{</span> <span class="n">response</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">response</span><span class="p">)</span> <span class="p">}</span> </code></pre> <p>The following links provide more information about the IBM Discovery service:</p> <ul> <li><a href="https://www.ibm.com/watson/services/discovery/">IBM Discovery - Service Page</a></li> <li><a href="https://console.bluemix.net/docs/services/discovery/index.html">IBM Discovery - Documentation</a></li> <li><a href="https://discovery-news-demo.ng.bluemix.net/">IBM Discovery - Demo</a></li> </ul> <h2 id='language-translator' class='heading'>Language Translator</h2> <p>The IBM Watson Language Translator service lets you select a domain, customize it, then identify or select the language of text, and then translate the text from one supported language to another.</p> <p>Note that the Language Translator service was formerly known as Language Translation. It is recommended to <a href="https://console.bluemix.net/docs/services/language-translator/migrating.html">migrate</a> to Language Translator, however, existing Language Translation service instances are currently supported by the <code>LanguageTranslatorV2</code> framework. To use a legacy Language Translation service, set the <code>serviceURL</code> property before executing the first API call to the service.</p> <p>The following example demonstrates how to use the Language Translator service:</p> <pre class="highlight swift"><code><span class="kd">import</span> <span class="kt">LanguageTranslatorV2</span> <span class="k">let</span> <span class="nv">username</span> <span class="o">=</span> <span class="s">"your-username-here"</span> <span class="k">let</span> <span class="nv">password</span> <span class="o">=</span> <span class="s">"your-password-here"</span> <span class="k">let</span> <span class="nv">languageTranslator</span> <span class="o">=</span> <span class="kt">LanguageTranslator</span><span class="p">(</span><span class="nv">username</span><span class="p">:</span> <span class="n">username</span><span class="p">,</span> <span class="nv">password</span><span class="p">:</span> <span class="n">password</span><span class="p">)</span> <span class="c1">// set the serviceURL property to use the legacy Language Translation service</span> <span class="c1">// languageTranslator.serviceURL = "https://gateway.watsonplatform.net/language-translation/api"</span> <span class="k">let</span> <span class="nv">failure</span> <span class="o">=</span> <span class="p">{</span> <span class="p">(</span><span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">)</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">error</span><span class="p">)</span> <span class="p">}</span> <span class="k">let</span> <span class="nv">request</span> <span class="o">=</span> <span class="kt">TranslateRequest</span><span class="p">(</span><span class="nv">text</span><span class="p">:</span> <span class="p">[</span><span class="s">"Hello"</span><span class="p">],</span> <span class="nv">source</span><span class="p">:</span> <span class="s">"en"</span><span class="p">,</span> <span class="nv">target</span><span class="p">:</span> <span class="s">"es"</span><span class="p">)</span> <span class="n">languageTranslator</span><span class="o">.</span><span class="nf">translate</span><span class="p">(</span><span class="nv">request</span><span class="p">:</span> <span class="n">request</span><span class="p">,</span> <span class="nv">failure</span><span class="p">:</span> <span class="n">failure</span><span class="p">)</span> <span class="p">{</span> <span class="n">translation</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">translation</span><span class="p">)</span> <span class="p">}</span> </code></pre> <p>The following links provide more information about the IBM Watson Language Translator service:</p> <ul> <li><a href="https://www.ibm.com/watson/services/language-translator/">IBM Watson Language Translator - Service Page</a></li> <li><a href="https://console.bluemix.net/docs/services/language-translator/index.html">IBM Watson Language Translator - Documentation</a></li> <li><a href="https://language-translator-demo.ng.bluemix.net/">IBM Watson Language Translator - Demo</a></li> </ul> <h2 id='natural-language-classifier' class='heading'>Natural Language Classifier</h2> <p>The IBM Watson Natural Language Classifier service enables developers without a background in machine learning or statistical algorithms to create natural language interfaces for their applications. The service interprets the intent behind text and returns a corresponding classification with associated confidence levels. The return value can then be used to trigger a corresponding action, such as redirecting the request or answering a question.</p> <p>The following example demonstrates how to use the Natural Language Classifier service:</p> <pre class="highlight swift"><code><span class="kd">import</span> <span class="kt">NaturalLanguageClassifierV1</span> <span class="k">let</span> <span class="nv">username</span> <span class="o">=</span> <span class="s">"your-username-here"</span> <span class="k">let</span> <span class="nv">password</span> <span class="o">=</span> <span class="s">"your-password-here"</span> <span class="k">let</span> <span class="nv">naturalLanguageClassifier</span> <span class="o">=</span> <span class="kt">NaturalLanguageClassifier</span><span class="p">(</span><span class="nv">username</span><span class="p">:</span> <span class="n">username</span><span class="p">,</span> <span class="nv">password</span><span class="p">:</span> <span class="n">password</span><span class="p">)</span> <span class="k">let</span> <span class="nv">classifierID</span> <span class="o">=</span> <span class="s">"your-trained-classifier-id"</span> <span class="k">let</span> <span class="nv">text</span> <span class="o">=</span> <span class="s">"your-text-here"</span> <span class="k">let</span> <span class="nv">failure</span> <span class="o">=</span> <span class="p">{</span> <span class="p">(</span><span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">)</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">error</span><span class="p">)</span> <span class="p">}</span> <span class="n">naturalLanguageClassifier</span><span class="o">.</span><span class="nf">classify</span><span class="p">(</span><span class="nv">classifierID</span><span class="p">:</span> <span class="n">classifierID</span><span class="p">,</span> <span class="nv">text</span><span class="p">:</span> <span class="n">text</span><span class="p">,</span> <span class="nv">failure</span><span class="p">:</span> <span class="n">failure</span><span class="p">)</span> <span class="p">{</span> <span class="n">classification</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">classification</span><span class="p">)</span> <span class="p">}</span> </code></pre> <p>The following links provide more information about the Natural Language Classifier service:</p> <ul> <li><a href="https://www.ibm.com/watson/services/natural-language-classifier/">IBM Watson Natural Language Classifier - Service Page</a></li> <li><a href="https://console.bluemix.net/docs/services/natural-language-classifier/natural-language-classifier-overview.html">IBM Watson Natural Language Classifier - Documentation</a></li> <li><a href="https://natural-language-classifier-demo.ng.bluemix.net/">IBM Watson Natural Language Classifier - Demo</a></li> </ul> <h2 id='natural-language-understanding' class='heading'>Natural Language Understanding</h2> <p>The IBM Natural Language Understanding service explores various features of text content. Provide text, raw HTML, or a public URL, and IBM Watson Natural Language Understanding will give you results for the features you request. The service cleans HTML content before analysis by default, so the results can ignore most advertisements and other unwanted content.</p> <p>Natural Language Understanding has the following features:</p> <ul> <li>Concepts</li> <li>Entities</li> <li>Keywords</li> <li>Categories</li> <li>Sentiment</li> <li>Emotion</li> <li>Relations</li> <li>Semantic Roles</li> </ul> <p>The following example demonstrates how to use the service:</p> <pre class="highlight swift"><code><span class="kd">import</span> <span class="kt">NaturalLanguageUnderstandingV1</span> <span class="k">let</span> <span class="nv">username</span> <span class="o">=</span> <span class="s">"your-username-here"</span> <span class="k">let</span> <span class="nv">password</span> <span class="o">=</span> <span class="s">"your-password-here"</span> <span class="k">let</span> <span class="nv">version</span> <span class="o">=</span> <span class="s">"yyyy-mm-dd"</span> <span class="c1">// use today's date for the most recent version</span> <span class="k">let</span> <span class="nv">naturalLanguageUnderstanding</span> <span class="o">=</span> <span class="kt">NaturalLanguageUnderstanding</span><span class="p">(</span><span class="nv">username</span><span class="p">:</span> <span class="n">username</span><span class="p">,</span> <span class="nv">password</span><span class="p">:</span> <span class="n">password</span><span class="p">,</span> <span class="nv">version</span><span class="p">:</span> <span class="n">version</span><span class="p">)</span> <span class="k">let</span> <span class="nv">features</span> <span class="o">=</span> <span class="kt">Features</span><span class="p">(</span><span class="nv">concepts</span><span class="p">:</span> <span class="kt">ConceptsOptions</span><span class="p">(</span><span class="nv">limit</span><span class="p">:</span> <span class="mi">5</span><span class="p">))</span> <span class="k">let</span> <span class="nv">parameters</span> <span class="o">=</span> <span class="kt">Parameters</span><span class="p">(</span><span class="nv">features</span><span class="p">:</span> <span class="n">features</span><span class="p">,</span> <span class="nv">text</span><span class="p">:</span> <span class="s">"your-text-here"</span><span class="p">)</span> <span class="k">let</span> <span class="nv">failure</span> <span class="o">=</span> <span class="p">{</span> <span class="p">(</span><span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">)</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">error</span><span class="p">)</span> <span class="p">}</span> <span class="n">naturalLanguageUnderstanding</span><span class="o">.</span><span class="nf">analyze</span><span class="p">(</span><span class="nv">parameters</span><span class="p">:</span> <span class="n">parameters</span><span class="p">,</span> <span class="nv">failure</span><span class="p">:</span> <span class="n">failure</span><span class="p">)</span> <span class="p">{</span> <span class="n">results</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">results</span><span class="p">)</span> <span class="p">}</span> </code></pre> <h4 id='500-errors' class='heading'>500 errors</h4> <p>Note that <strong>you are required to include at least one feature in your request.</strong> You will receive a 500 error if you do not include any features in your request.</p> <p>The following links provide more information about the Natural Language Understanding service:</p> <ul> <li><a href="https://www.ibm.com/watson/services/natural-language-understanding/">IBM Watson Natural Language Understanding - Service Page</a></li> <li><a href="https://console.bluemix.net/docs/services/natural-language-understanding/index.html">IBM Watson Natural Language Understanding - Documentation</a></li> <li><a href="https://natural-language-understanding-demo.ng.bluemix.net/">IBM Watson Natural Language Understanding - Demo</a></li> </ul> <h2 id='personality-insights' class='heading'>Personality Insights</h2> <p>The IBM Watson Personality Insights service enables applications to derive insights from social media, enterprise data, or other digital communications. The service uses linguistic analytics to infer personality and social characteristics, including Big Five, Needs, and Values, from text.</p> <p>The following example demonstrates how to use the Personality Insights service:</p> <pre class="highlight swift"><code><span class="kd">import</span> <span class="kt">PersonalityInsightsV3</span> <span class="k">let</span> <span class="nv">username</span> <span class="o">=</span> <span class="s">"your-username-here"</span> <span class="k">let</span> <span class="nv">password</span> <span class="o">=</span> <span class="s">"your-password-here"</span> <span class="k">let</span> <span class="nv">version</span> <span class="o">=</span> <span class="s">"yyyy-mm-dd"</span> <span class="c1">// use today's date for the most recent version</span> <span class="k">let</span> <span class="nv">personalityInsights</span> <span class="o">=</span> <span class="kt">PersonalityInsights</span><span class="p">(</span><span class="nv">username</span><span class="p">:</span> <span class="n">username</span><span class="p">,</span> <span class="nv">password</span><span class="p">:</span> <span class="n">password</span><span class="p">,</span> <span class="nv">version</span><span class="p">:</span> <span class="n">version</span><span class="p">)</span> <span class="k">let</span> <span class="nv">failure</span> <span class="o">=</span> <span class="p">{</span> <span class="p">(</span><span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">)</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">error</span><span class="p">)</span> <span class="p">}</span> <span class="n">personalityInsights</span><span class="o">.</span><span class="nf">profile</span><span class="p">(</span><span class="nv">text</span><span class="p">:</span> <span class="s">"your-input-text"</span><span class="p">,</span> <span class="nv">failure</span><span class="p">:</span> <span class="n">failure</span><span class="p">)</span> <span class="p">{</span> <span class="n">profile</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">profile</span><span class="p">)</span> <span class="p">}</span> </code></pre> <p>The following links provide more information about the Personality Insights service:</p> <ul> <li><a href="https://www.ibm.com/watson/services/personality-insights/">IBM Watson Personality Insights - Service Page</a></li> <li><a href="https://console.bluemix.net/docs/services/personality-insights/index.html">IBM Watson Personality Insights - Documentation</a></li> <li><a href="https://personality-insights-demo.ng.bluemix.net/">IBM Watson Personality Insights - Demo</a></li> </ul> <h2 id='speech-to-text' class='heading'>Speech to Text</h2> <p>The IBM Watson Speech to Text service enables you to add speech transcription capabilities to your application. It uses machine intelligence to combine information about grammar and language structure to generate an accurate transcription. Transcriptions are supported for various audio formats and languages.</p> <p>The <code>SpeechToText</code> class is the SDK&rsquo;s primary interface for performing speech recognition requests. It supports the transcription of audio files, audio data, and streaming microphone data. Advanced users, however, may instead wish to use the <code>SpeechToTextSession</code> class that exposes more control over the WebSockets session.</p> <p>Please be sure to include both <code>SpeechToTextV1.framework</code> and <code>Starscream.framework</code> in your application. Starscream is a recursive dependency that adds support for WebSockets sessions.</p> <p>Beginning with iOS 10+, any application that accesses the microphone must include the <code>NSMicrophoneUsageDescription</code> key in the app&rsquo;s <code>Info.plist</code> file. Otherwise, the app will crash. Find more information about this <a href="https://forums.developer.apple.com/thread/61521">here</a>.</p> <h4 id='recognition-request-settings' class='heading'>Recognition Request Settings</h4> <p>The <code>RecognitionSettings</code> class is used to define the audio format and behavior of a recognition request. These settings are transmitted to the service when <a href="https://console.bluemix.net/docs/services/speech-to-text/websockets.html#WSstart">initating a request</a>.</p> <p>The following example demonstrates how to define a recognition request that transcribes WAV audio data with interim results:</p> <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">settings</span> <span class="o">=</span> <span class="kt">RecognitionSettings</span><span class="p">(</span><span class="nv">contentType</span><span class="p">:</span> <span class="s">"audio/wav"</span><span class="p">)</span> <span class="n">settings</span><span class="o">.</span><span class="n">interimResults</span> <span class="o">=</span> <span class="kc">true</span> </code></pre> <p>See the <a href="http://watson-developer-cloud.github.io/swift-sdk/services/SpeechToTextV1/Structs/RecognitionSettings.html">class documentation</a> or <a href="https://console.bluemix.net/docs/services/speech-to-text/index.html">service documentation</a> for more information about the available settings.</p> <h4 id='microphone-audio-and-compression' class='heading'>Microphone Audio and Compression</h4> <p>The Speech to Text framework makes it easy to perform speech recognition with microphone audio. The framework internally manages the microphone, starting and stopping it with various function calls (such as <code>recognizeMicrophone(settings:model:customizationID:learningOptOut:compress:failure:success)</code> and <code>stopRecognizeMicrophone()</code> or <code>startMicrophone(compress:)</code> and <code>stopMicrophone()</code>).</p> <p>There are two different ways that your app can determine when to stop the microphone:</p> <ul> <li><p>User Interaction: Your app could rely on user input to stop the microphone. For example, you could use a button to start/stop transcribing, or you could require users to press-and-hold a button to start/stop transcribing.</p></li> <li><p>Final Result: Each transcription result has a <code>final</code> property that is <code>true</code> when the audio stream is complete or a timeout has occurred. By watching for the <code>final</code> property, your app can stop the microphone after determining when the user has finished speaking.</p></li> </ul> <p>To reduce latency and bandwidth, the microphone audio is compressed to OggOpus format by default. To disable compression, set the <code>compress</code> parameter to <code>false</code>.</p> <p>It&rsquo;s important to specify the correct audio format for recognition requests that use the microphone:</p> <pre class="highlight swift"><code><span class="c1">// compressed microphone audio uses the opus format</span> <span class="k">let</span> <span class="nv">settings</span> <span class="o">=</span> <span class="kt">RecognitionSettings</span><span class="p">(</span><span class="nv">contentType</span><span class="p">:</span> <span class="s">"audio/ogg;codecs=opus"</span><span class="p">)</span> <span class="c1">// uncompressed microphone audio uses a 16-bit mono PCM format at 16 kHz</span> <span class="k">let</span> <span class="nv">settings</span> <span class="o">=</span> <span class="kt">RecognitionSettings</span><span class="p">(</span><span class="nv">contentType</span><span class="p">:</span> <span class="s">"audio/l16;rate=16000;channels=1"</span><span class="p">)</span> </code></pre> <h4 id='recognition-results-accumulator' class='heading'>Recognition Results Accumulator</h4> <p>The Speech to Text service may not always return the entire transcription in a single response. Instead, the transcription may be streamed over multiple responses, each with a chunk of the overall results. This is especially common for long audio files, since the entire transcription may contain a significant amount of text.</p> <p>To help combine multiple responses, the Swift SDK provides a <code>SpeechRecognitionResultsAccumulator</code> object. The accumulator tracks results as they are added and maintains several useful instance variables: - <code>results</code>: A list of all accumulated recognition results. - <code>speakerLabels</code>: A list of all accumulated speaker labels. - <code>bestTranscript</code>: A concatenation of transcripts with the greatest confidence.</p> <p>To use the accumulator, initialize an instance of the object then add results as you receive them:</p> <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">accumulator</span> <span class="o">=</span> <span class="kt">SpeechRecognitionResultsAccumulator</span><span class="p">()</span> <span class="n">accumulator</span><span class="o">.</span><span class="nf">add</span><span class="p">(</span><span class="nv">results</span><span class="p">:</span> <span class="n">results</span><span class="p">)</span> <span class="nf">print</span><span class="p">(</span><span class="n">accumulator</span><span class="o">.</span><span class="n">bestTranscript</span><span class="p">)</span> </code></pre> <h4 id='transcribe-recorded-audio' class='heading'>Transcribe Recorded Audio</h4> <p>The following example demonstrates how to use the Speech to Text service to transcribe a WAV audio file.</p> <pre class="highlight swift"><code><span class="kd">import</span> <span class="kt">SpeechToTextV1</span> <span class="k">let</span> <span class="nv">username</span> <span class="o">=</span> <span class="s">"your-username-here"</span> <span class="k">let</span> <span class="nv">password</span> <span class="o">=</span> <span class="s">"your-password-here"</span> <span class="k">let</span> <span class="nv">speechToText</span> <span class="o">=</span> <span class="kt">SpeechToText</span><span class="p">(</span><span class="nv">username</span><span class="p">:</span> <span class="n">username</span><span class="p">,</span> <span class="nv">password</span><span class="p">:</span> <span class="n">password</span><span class="p">)</span> <span class="k">var</span> <span class="nv">accumulator</span> <span class="o">=</span> <span class="kt">SpeechRecognitionResultsAccumulator</span><span class="p">()</span> <span class="k">let</span> <span class="nv">audio</span> <span class="o">=</span> <span class="kt">Bundle</span><span class="o">.</span><span class="n">main</span><span class="o">.</span><span class="nf">url</span><span class="p">(</span><span class="nv">forResource</span><span class="p">:</span> <span class="s">"filename"</span><span class="p">,</span> <span class="nv">withExtension</span><span class="p">:</span> <span class="s">"wav"</span><span class="p">)</span><span class="o">!</span> <span class="k">var</span> <span class="nv">settings</span> <span class="o">=</span> <span class="kt">RecognitionSettings</span><span class="p">(</span><span class="nv">contentType</span><span class="p">:</span> <span class="s">"audio/wav"</span><span class="p">)</span> <span class="n">settings</span><span class="o">.</span><span class="n">interimResults</span> <span class="o">=</span> <span class="kc">true</span> <span class="k">let</span> <span class="nv">failure</span> <span class="o">=</span> <span class="p">{</span> <span class="p">(</span><span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">)</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">error</span><span class="p">)</span> <span class="p">}</span> <span class="n">speechToText</span><span class="o">.</span><span class="nf">recognize</span><span class="p">(</span><span class="n">audio</span><span class="p">,</span> <span class="nv">settings</span><span class="p">:</span> <span class="n">settings</span><span class="p">,</span> <span class="nv">failure</span><span class="p">:</span> <span class="n">failure</span><span class="p">)</span> <span class="p">{</span> <span class="n">results</span> <span class="k">in</span> <span class="n">accumulator</span><span class="o">.</span><span class="nf">add</span><span class="p">(</span><span class="nv">results</span><span class="p">:</span> <span class="n">results</span><span class="p">)</span> <span class="nf">print</span><span class="p">(</span><span class="n">accumulator</span><span class="o">.</span><span class="n">bestTranscript</span><span class="p">)</span> <span class="p">}</span> </code></pre> <h4 id='transcribe-microphone-audio' class='heading'>Transcribe Microphone Audio</h4> <p>Audio can be streamed from the microphone to the Speech to Text service for real-time transcriptions. The following example demonstrates how to use the Speech to Text service to transcribe microphone audio:</p> <pre class="highlight swift"><code><span class="kd">import</span> <span class="kt">SpeechToTextV1</span> <span class="k">let</span> <span class="nv">username</span> <span class="o">=</span> <span class="s">"your-username-here"</span> <span class="k">let</span> <span class="nv">password</span> <span class="o">=</span> <span class="s">"your-password-here"</span> <span class="k">let</span> <span class="nv">speechToText</span> <span class="o">=</span> <span class="kt">SpeechToText</span><span class="p">(</span><span class="nv">username</span><span class="p">:</span> <span class="n">username</span><span class="p">,</span> <span class="nv">password</span><span class="p">:</span> <span class="n">password</span><span class="p">)</span> <span class="k">var</span> <span class="nv">accumulator</span> <span class="o">=</span> <span class="kt">SpeechRecognitionResultsAccumulator</span><span class="p">()</span> <span class="kd">func</span> <span class="nf">startStreaming</span><span class="p">()</span> <span class="p">{</span> <span class="k">var</span> <span class="nv">settings</span> <span class="o">=</span> <span class="kt">RecognitionSettings</span><span class="p">(</span><span class="nv">contentType</span><span class="p">:</span> <span class="s">"audio/ogg;codecs=opus"</span><span class="p">)</span> <span class="n">settings</span><span class="o">.</span><span class="n">interimResults</span> <span class="o">=</span> <span class="kc">true</span> <span class="k">let</span> <span class="nv">failure</span> <span class="o">=</span> <span class="p">{</span> <span class="p">(</span><span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">)</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">error</span><span class="p">)</span> <span class="p">}</span> <span class="n">speechToText</span><span class="o">.</span><span class="nf">recognizeMicrophone</span><span class="p">(</span><span class="nv">settings</span><span class="p">:</span> <span class="n">settings</span><span class="p">,</span> <span class="nv">failure</span><span class="p">:</span> <span class="n">failure</span><span class="p">)</span> <span class="p">{</span> <span class="n">results</span> <span class="k">in</span> <span class="n">accumulator</span><span class="o">.</span><span class="nf">add</span><span class="p">(</span><span class="nv">results</span><span class="p">:</span> <span class="n">results</span><span class="p">)</span> <span class="nf">print</span><span class="p">(</span><span class="n">accumulator</span><span class="o">.</span><span class="n">bestTranscript</span><span class="p">)</span> <span class="p">}</span> <span class="p">}</span> <span class="kd">func</span> <span class="nf">stopStreaming</span><span class="p">()</span> <span class="p">{</span> <span class="n">speechToText</span><span class="o">.</span><span class="nf">stopRecognizeMicrophone</span><span class="p">()</span> <span class="p">}</span> </code></pre> <h4 id='session-management-and-advanced-features' class='heading'>Session Management and Advanced Features</h4> <p>Advanced users may want more customizability than provided by the <code>SpeechToText</code> class. The <code>SpeechToTextSession</code> class exposes more control over the WebSockets connection and also includes several advanced features for accessing the microphone. The <code>SpeechToTextSession</code> class also allows users more control over the AVAudioSession shared instance. Before using <code>SpeechToTextSession</code>, it&rsquo;s helpful to be familiar with the <a href="https://console.bluemix.net/docs/services/speech-to-text/websockets.html">Speech to Text WebSocket interface</a>.</p> <p>The following steps describe how to execute a recognition request with <code>SpeechToTextSession</code>:</p> <ol> <li>Connect: Invoke <code>connect()</code> to connect to the service.</li> <li>Start Recognition Request: Invoke <code>startRequest(settings:)</code> to start a recognition request.</li> <li>Send Audio: Invoke <code>recognize(audio:)</code> or <code>startMicrophone(compress:)</code>/<code>stopMicrophone()</code> to send audio to the service.</li> <li>Stop Recognition Request: Invoke <code>stopRequest()</code> to end the recognition request. If the recognition request is already stopped, then sending a stop message will have no effect.</li> <li>Disconnect: Invoke <code>disconnect()</code> to wait for any remaining results to be received and then disconnect from the service.</li> </ol> <p>All text and data messages sent by <code>SpeechToTextSession</code> are queued, with the exception of <code>connect()</code> which immediately connects to the server. The queue ensures that the messages are sent in-order and also buffers messages while waiting for a connection to be established. This behavior is generally transparent.</p> <p>A <code>SpeechToTextSession</code> also provides several (optional) callbacks. The callbacks can be used to learn about the state of the session or access microphone data.</p> <ul> <li><code>onConnect</code>: Invoked when the session connects to the Speech to Text service.</li> <li><code>onMicrophoneData</code>: Invoked with microphone audio when a recording audio queue buffer has been filled. If microphone audio is being compressed, then the audio data is in OggOpus format. If uncompressed, then the audio data is in 16-bit PCM format at 16 kHz.</li> <li><code>onPowerData</code>: Invoked every 0.025s when recording with the average dB power of the microphone.</li> <li><code>onResults</code>: Invoked when transcription results are received for a recognition request.</li> <li><code>onError</code>: Invoked when an error or warning occurs.</li> <li><code>onDisconnect</code>: Invoked when the session disconnects from the Speech to Text service.</li> </ul> <p>Note that the <code>AVAudioSession.sharedInstance()</code> must be configured to allow microphone access when using <code>SpeechToTextSession</code>. This allows users to set a particular configuration for the <code>AVAudioSession</code>. An example configuration is shown in the code below.</p> <p>The following example demonstrates how to use <code>SpeechToTextSession</code> to transcribe microphone audio:</p> <pre class="highlight swift"><code><span class="kd">import</span> <span class="kt">SpeechToTextV1</span> <span class="k">let</span> <span class="nv">username</span> <span class="o">=</span> <span class="s">"your-username-here"</span> <span class="k">let</span> <span class="nv">password</span> <span class="o">=</span> <span class="s">"your-password-here"</span> <span class="k">let</span> <span class="nv">speechToTextSession</span> <span class="o">=</span> <span class="kt">SpeechToTextSession</span><span class="p">(</span><span class="nv">username</span><span class="p">:</span> <span class="n">username</span><span class="p">,</span> <span class="nv">password</span><span class="p">:</span> <span class="n">password</span><span class="p">)</span> <span class="k">var</span> <span class="nv">accumulator</span> <span class="o">=</span> <span class="kt">SpeechRecognitionResultsAccumulator</span><span class="p">()</span> <span class="k">do</span> <span class="p">{</span> <span class="k">let</span> <span class="nv">session</span> <span class="o">=</span> <span class="kt">AVAudioSession</span><span class="o">.</span><span class="nf">sharedInstance</span><span class="p">()</span> <span class="k">try</span> <span class="n">session</span><span class="o">.</span><span class="nf">setActive</span><span class="p">(</span><span class="kc">true</span><span class="p">)</span> <span class="k">try</span> <span class="n">session</span><span class="o">.</span><span class="nf">setCategory</span><span class="p">(</span><span class="kt">AVAudioSessionCategoryPlayAndRecord</span><span class="p">,</span> <span class="nv">with</span><span class="p">:</span> <span class="p">[</span><span class="o">.</span><span class="n">mixWithOthers</span><span class="p">,</span> <span class="o">.</span><span class="n">defaultToSpeaker</span><span class="p">])</span> <span class="p">}</span> <span class="k">catch</span> <span class="p">{</span> <span class="nf">print</span><span class="p">(</span><span class="n">error</span><span class="o">.</span><span class="n">localizedDescription</span><span class="p">)</span> <span class="p">}</span> <span class="kd">func</span> <span class="nf">startStreaming</span><span class="p">()</span> <span class="p">{</span> <span class="c1">// define callbacks</span> <span class="n">speechToTextSession</span><span class="o">.</span><span class="n">onConnect</span> <span class="o">=</span> <span class="p">{</span> <span class="nf">print</span><span class="p">(</span><span class="s">"connected"</span><span class="p">)</span> <span class="p">}</span> <span class="n">speechToTextSession</span><span class="o">.</span><span class="n">onDisconnect</span> <span class="o">=</span> <span class="p">{</span> <span class="nf">print</span><span class="p">(</span><span class="s">"disconnected"</span><span class="p">)</span> <span class="p">}</span> <span class="n">speechToTextSession</span><span class="o">.</span><span class="n">onError</span> <span class="o">=</span> <span class="p">{</span> <span class="n">error</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">error</span><span class="p">)</span> <span class="p">}</span> <span class="n">speechToTextSession</span><span class="o">.</span><span class="n">onPowerData</span> <span class="o">=</span> <span class="p">{</span> <span class="n">decibels</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">decibels</span><span class="p">)</span> <span class="p">}</span> <span class="n">speechToTextSession</span><span class="o">.</span><span class="n">onMicrophoneData</span> <span class="o">=</span> <span class="p">{</span> <span class="n">data</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="s">"received data"</span><span class="p">)</span> <span class="p">}</span> <span class="n">speechToTextSession</span><span class="o">.</span><span class="n">onResults</span> <span class="o">=</span> <span class="p">{</span> <span class="n">results</span> <span class="k">in</span> <span class="n">accumulator</span><span class="o">.</span><span class="nf">add</span><span class="p">(</span><span class="nv">results</span><span class="p">:</span> <span class="n">results</span><span class="p">)</span> <span class="nf">print</span><span class="p">(</span><span class="n">accumulator</span><span class="o">.</span><span class="n">bestTranscript</span><span class="p">)</span> <span class="p">}</span> <span class="c1">// define recognition request settings</span> <span class="k">var</span> <span class="nv">settings</span> <span class="o">=</span> <span class="kt">RecognitionSettings</span><span class="p">(</span><span class="nv">contentType</span><span class="p">:</span> <span class="s">"audio/ogg;codecs=opus"</span><span class="p">)</span> <span class="n">settings</span><span class="o">.</span><span class="n">interimResults</span> <span class="o">=</span> <span class="kc">true</span> <span class="c1">// start streaming microphone audio for transcription</span> <span class="n">speechToTextSession</span><span class="o">.</span><span class="nf">connect</span><span class="p">()</span> <span class="n">speechToTextSession</span><span class="o">.</span><span class="nf">startRequest</span><span class="p">(</span><span class="nv">settings</span><span class="p">:</span> <span class="n">settings</span><span class="p">)</span> <span class="n">speechToTextSession</span><span class="o">.</span><span class="nf">startMicrophone</span><span class="p">()</span> <span class="p">}</span> <span class="kd">func</span> <span class="nf">stopStreaming</span><span class="p">()</span> <span class="p">{</span> <span class="n">speechToTextSession</span><span class="o">.</span><span class="nf">stopMicrophone</span><span class="p">()</span> <span class="n">speechToTextSession</span><span class="o">.</span><span class="nf">stopRequest</span><span class="p">()</span> <span class="n">speechToTextSession</span><span class="o">.</span><span class="nf">disconnect</span><span class="p">()</span> <span class="p">}</span> </code></pre> <h4 id='customization' class='heading'>Customization</h4> <p>There are a number of ways that Speech to Text can be customized to suit your particular application. For example, you can define custom words or upload audio to train an acoustic model. For more information, refer to the <a href="https://console.bluemix.net/docs/services/speech-to-text/index.html">service documentation</a> or <a href="http://watson-developer-cloud.github.io/swift-sdk/swift-api/services/SpeechToTextV1/Classes/SpeechToText.html">API documentation</a>.</p> <h4 id='additional-information' class='heading'>Additional Information</h4> <p>The following links provide more information about the IBM Speech to Text service:</p> <ul> <li><a href="https://www.ibm.com/watson/services/speech-to-text/">IBM Watson Speech to Text - Service Page</a></li> <li><a href="https://console.bluemix.net/docs/services/speech-to-text/index.html">IBM Watson Speech to Text - Documentation</a></li> <li><a href="https://speech-to-text-demo.ng.bluemix.net/">IBM Watson Speech to Text - Demo</a></li> </ul> <h2 id='text-to-speech' class='heading'>Text to Speech</h2> <p>The IBM Watson Text to Speech service synthesizes natural-sounding speech from input text in a variety of languages and voices that speak with appropriate cadence and intonation.</p> <p>The following example demonstrates how to use the Text to Speech service:</p> <pre class="highlight swift"><code><span class="kd">import</span> <span class="kt">TextToSpeechV1</span> <span class="kd">import</span> <span class="kt">AVFoundation</span> <span class="k">let</span> <span class="nv">username</span> <span class="o">=</span> <span class="s">"your-username-here"</span> <span class="k">let</span> <span class="nv">password</span> <span class="o">=</span> <span class="s">"your-password-here"</span> <span class="k">let</span> <span class="nv">textToSpeech</span> <span class="o">=</span> <span class="kt">TextToSpeech</span><span class="p">(</span><span class="nv">username</span><span class="p">:</span> <span class="n">username</span><span class="p">,</span> <span class="nv">password</span><span class="p">:</span> <span class="n">password</span><span class="p">)</span> <span class="c1">// The AVAudioPlayer object will stop playing if it falls out-of-scope.</span> <span class="c1">// Therefore, to prevent it from falling out-of-scope we declare it as</span> <span class="c1">// a property outside the completion handler where it will be played.</span> <span class="k">var</span> <span class="nv">audioPlayer</span> <span class="o">=</span> <span class="kt">AVAudioPlayer</span><span class="p">()</span> <span class="k">let</span> <span class="nv">text</span> <span class="o">=</span> <span class="s">"your-text-here"</span> <span class="k">let</span> <span class="nv">accept</span> <span class="o">=</span> <span class="s">"audio/wav"</span> <span class="k">let</span> <span class="nv">failure</span> <span class="o">=</span> <span class="p">{</span> <span class="p">(</span><span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">)</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">error</span><span class="p">)</span> <span class="p">}</span> <span class="n">textToSpeech</span><span class="o">.</span><span class="nf">synthesize</span><span class="p">(</span><span class="nv">text</span><span class="p">:</span> <span class="n">text</span><span class="p">,</span> <span class="nv">accept</span><span class="p">:</span> <span class="n">accept</span><span class="p">,</span> <span class="nv">failure</span><span class="p">:</span> <span class="n">failure</span><span class="p">)</span> <span class="p">{</span> <span class="n">data</span> <span class="k">in</span> <span class="n">audioPlayer</span> <span class="o">=</span> <span class="k">try!</span> <span class="kt">AVAudioPlayer</span><span class="p">(</span><span class="nv">data</span><span class="p">:</span> <span class="n">data</span><span class="p">)</span> <span class="n">audioPlayer</span><span class="o">.</span><span class="nf">prepareToPlay</span><span class="p">()</span> <span class="n">audioPlayer</span><span class="o">.</span><span class="nf">play</span><span class="p">()</span> <span class="p">}</span> </code></pre> <p>The Text to Speech service supports a number of <a href="https://console.bluemix.net/docs/services/text-to-speech/http.html#voices">voices</a> for different genders, languages, and dialects. The following example demonstrates how to use the Text to Speech service with a particular voice:</p> <pre class="highlight swift"><code><span class="kd">import</span> <span class="kt">TextToSpeechV1</span> <span class="k">let</span> <span class="nv">username</span> <span class="o">=</span> <span class="s">"your-username-here"</span> <span class="k">let</span> <span class="nv">password</span> <span class="o">=</span> <span class="s">"your-password-here"</span> <span class="k">let</span> <span class="nv">textToSpeech</span> <span class="o">=</span> <span class="kt">TextToSpeech</span><span class="p">(</span><span class="nv">username</span><span class="p">:</span> <span class="n">username</span><span class="p">,</span> <span class="nv">password</span><span class="p">:</span> <span class="n">password</span><span class="p">)</span> <span class="c1">// The AVAudioPlayer object will stop playing if it falls out-of-scope.</span> <span class="c1">// Therefore, to prevent it from falling out-of-scope we declare it as</span> <span class="c1">// a property outside the completion handler where it will be played.</span> <span class="k">var</span> <span class="nv">audioPlayer</span> <span class="o">=</span> <span class="kt">AVAudioPlayer</span><span class="p">()</span> <span class="k">let</span> <span class="nv">text</span> <span class="o">=</span> <span class="s">"your-text-here"</span> <span class="k">let</span> <span class="nv">accept</span> <span class="o">=</span> <span class="s">"audio/wav"</span> <span class="k">let</span> <span class="nv">voice</span> <span class="o">=</span> <span class="s">"en-US_LisaVoice"</span> <span class="k">let</span> <span class="nv">failure</span> <span class="o">=</span> <span class="p">{</span> <span class="p">(</span><span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">)</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">error</span><span class="p">)</span> <span class="p">}</span> <span class="n">textToSpeech</span><span class="o">.</span><span class="nf">synthesize</span><span class="p">(</span><span class="nv">text</span><span class="p">:</span> <span class="n">text</span><span class="p">,</span> <span class="nv">accept</span><span class="p">:</span> <span class="n">accept</span><span class="p">,</span> <span class="nv">voice</span><span class="p">:</span> <span class="n">voice</span><span class="p">,</span> <span class="nv">failure</span><span class="p">:</span> <span class="n">failure</span><span class="p">)</span> <span class="p">{</span> <span class="n">data</span> <span class="k">in</span> <span class="n">audioPlayer</span> <span class="o">=</span> <span class="k">try!</span> <span class="kt">AVAudioPlayer</span><span class="p">(</span><span class="nv">data</span><span class="p">:</span> <span class="n">data</span><span class="p">)</span> <span class="n">audioPlayer</span><span class="o">.</span><span class="nf">prepareToPlay</span><span class="p">()</span> <span class="n">audioPlayer</span><span class="o">.</span><span class="nf">play</span><span class="p">()</span> <span class="p">}</span> </code></pre> <p>The following links provide more information about the IBM Text To Speech service:</p> <ul> <li><a href="https://www.ibm.com/watson/services/text-to-speech/">IBM Watson Text To Speech - Service Page</a></li> <li><a href="https://console.bluemix.net/docs/services/text-to-speech/index.html">IBM Watson Text To Speech - Documentation</a></li> <li><a href="https://text-to-speech-demo.ng.bluemix.net/">IBM Watson Text To Speech - Demo</a></li> </ul> <h2 id='tone-analyzer' class='heading'>Tone Analyzer</h2> <p>The IBM Watson Tone Analyzer service can be used to discover, understand, and revise the language tones in text. The service uses linguistic analysis to detect three types of tones from written text: emotions, social tendencies, and writing style.</p> <p>Emotions identified include things like anger, fear, joy, sadness, and disgust. Identified social tendencies include things from the Big Five personality traits used by some psychologists. These include openness, conscientiousness, extraversion, agreeableness, and emotional range. Identified writing styles include confident, analytical, and tentative.</p> <p>The following example demonstrates how to use the Tone Analyzer service:</p> <pre class="highlight swift"><code><span class="kd">import</span> <span class="kt">ToneAnalyzerV3</span> <span class="k">let</span> <span class="nv">username</span> <span class="o">=</span> <span class="s">"your-username-here"</span> <span class="k">let</span> <span class="nv">password</span> <span class="o">=</span> <span class="s">"your-password-here"</span> <span class="k">let</span> <span class="nv">version</span> <span class="o">=</span> <span class="s">"YYYY-MM-DD"</span> <span class="c1">// use today's date for the most recent version</span> <span class="k">let</span> <span class="nv">toneAnalyzer</span> <span class="o">=</span> <span class="kt">ToneAnalyzer</span><span class="p">(</span><span class="nv">username</span><span class="p">:</span> <span class="n">username</span><span class="p">,</span> <span class="nv">password</span><span class="p">:</span> <span class="n">password</span><span class="p">,</span> <span class="nv">version</span><span class="p">:</span> <span class="n">version</span><span class="p">)</span> <span class="k">let</span> <span class="nv">toneInput</span> <span class="o">=</span> <span class="kt">ToneInput</span><span class="p">(</span><span class="nv">text</span><span class="p">:</span> <span class="s">"your-input-text"</span><span class="p">)</span> <span class="k">let</span> <span class="nv">failure</span> <span class="o">=</span> <span class="p">{</span> <span class="p">(</span><span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">)</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">error</span><span class="p">)</span> <span class="p">}</span> <span class="n">toneAnalyzer</span><span class="o">.</span><span class="nf">tone</span><span class="p">(</span><span class="nv">toneInput</span><span class="p">:</span> <span class="n">toneInput</span><span class="p">,</span> <span class="nv">contentType</span><span class="p">:</span> <span class="s">"plain/text"</span><span class="p">,</span> <span class="nv">failure</span><span class="p">:</span> <span class="n">failure</span><span class="p">)</span> <span class="p">{</span> <span class="n">tones</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">tones</span><span class="p">)</span> <span class="p">}</span> </code></pre> <p>The following links provide more information about the IBM Watson Tone Analyzer service:</p> <ul> <li><a href="https://www.ibm.com/watson/services/tone-analyzer/">IBM Watson Tone Analyzer - Service Page</a></li> <li><a href="https://console.bluemix.net/docs/services/tone-analyzer/index.html">IBM Watson Tone Analyzer - Documentation</a></li> <li><a href="https://tone-analyzer-demo.ng.bluemix.net/">IBM Watson Tone Analyzer - Demo</a></li> </ul> <h2 id='visual-recognition' class='heading'>Visual Recognition</h2> <p>The IBM Watson Visual Recognition service uses deep learning algorithms to analyze images (.jpg or .png) for scenes, objects, faces, text, and other content, and return keywords that provide information about that content. The service comes with a set of built-in classes so that you can analyze images with high accuracy right out of the box. You can also train custom classifiers to create specialized classes.</p> <p>The following example demonstrates how to use the Visual Recognition service:</p> <pre class="highlight swift"><code><span class="kd">import</span> <span class="kt">VisualRecognitionV3</span> <span class="k">let</span> <span class="nv">apiKey</span> <span class="o">=</span> <span class="s">"your-apikey-here"</span> <span class="k">let</span> <span class="nv">version</span> <span class="o">=</span> <span class="s">"YYYY-MM-DD"</span> <span class="c1">// use today's date for the most recent version</span> <span class="k">let</span> <span class="nv">visualRecognition</span> <span class="o">=</span> <span class="kt">VisualRecognition</span><span class="p">(</span><span class="nv">apiKey</span><span class="p">:</span> <span class="n">apiKey</span><span class="p">,</span> <span class="nv">version</span><span class="p">:</span> <span class="n">version</span><span class="p">)</span> <span class="k">let</span> <span class="nv">url</span> <span class="o">=</span> <span class="s">"your-image-url"</span> <span class="k">let</span> <span class="nv">failure</span> <span class="o">=</span> <span class="p">{</span> <span class="p">(</span><span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">)</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">error</span><span class="p">)</span> <span class="p">}</span> <span class="n">visualRecognition</span><span class="o">.</span><span class="nf">classify</span><span class="p">(</span><span class="nv">image</span><span class="p">:</span> <span class="n">url</span><span class="p">,</span> <span class="nv">failure</span><span class="p">:</span> <span class="n">failure</span><span class="p">)</span> <span class="p">{</span> <span class="n">classifiedImages</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">classifiedImages</span><span class="p">)</span> <span class="p">}</span> </code></pre> <h3 id='using-core-ml' class='heading'>Using Core ML</h3> <p>The Watson Swift SDK supports offline image classification using Apple Core ML. Classifiers must be trained or updated with the <code>coreMLEnabled</code> flag set to true. Once the classifier&rsquo;s <code>coreMLStatus</code> is <code>ready</code> then a Core ML model is available to download and use for offline classification. </p> <p>Once the Core ML model is in the device&rsquo;s file system, images can be classified offline, directly on the device.</p> <pre class="highlight swift"><code><span class="k">let</span> <span class="nv">classifierID</span> <span class="o">=</span> <span class="s">"your-classifier-id"</span> <span class="k">let</span> <span class="nv">failure</span> <span class="o">=</span> <span class="p">{</span> <span class="p">(</span><span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">)</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">error</span><span class="p">)</span> <span class="p">}</span> <span class="k">let</span> <span class="nv">image</span> <span class="o">=</span> <span class="kt">UIImage</span><span class="p">(</span><span class="nv">named</span><span class="p">:</span> <span class="s">"your-image-filename"</span><span class="p">)</span> <span class="n">visualRecognition</span><span class="o">.</span><span class="nf">classifyWithLocalModel</span><span class="p">(</span><span class="nv">image</span><span class="p">:</span> <span class="n">image</span><span class="p">,</span> <span class="nv">classifierIDs</span><span class="p">:</span> <span class="p">[</span><span class="n">classifierID</span><span class="p">],</span> <span class="nv">failure</span><span class="p">:</span> <span class="n">failure</span><span class="p">)</span> <span class="p">{</span> <span class="n">classifiedImages</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">classifiedImages</span><span class="p">)</span> <span class="p">}</span> </code></pre> <p>The local Core ML model can be updated as needed.</p> <pre class="highlight swift"><code><span class="k">let</span> <span class="nv">classifierID</span> <span class="o">=</span> <span class="s">"your-classifier-id"</span> <span class="k">let</span> <span class="nv">failure</span> <span class="o">=</span> <span class="p">{</span> <span class="p">(</span><span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">)</span> <span class="k">in</span> <span class="nf">print</span><span class="p">(</span><span class="n">error</span><span class="p">)</span> <span class="p">}</span> <span class="n">visualRecognition</span><span class="o">.</span><span class="nf">updateLocalModel</span><span class="p">(</span><span class="nv">classifierID</span><span class="p">:</span> <span class="n">classifierID</span><span class="p">,</span> <span class="nv">failure</span><span class="p">:</span> <span class="n">failure</span><span class="p">)</span> <span class="p">{</span> <span class="nf">print</span><span class="p">(</span><span class="s">"model updated"</span><span class="p">)</span> <span class="p">}</span> </code></pre> <p>The following example demonstrates how to list the Core ML models that are stored in the filesystem and available for offline use:</p> <pre class="highlight swift"><code><span class="k">let</span> <span class="nv">localModels</span> <span class="o">=</span> <span class="k">try!</span> <span class="n">visualRecognition</span><span class="o">.</span><span class="nf">listLocalModels</span><span class="p">()</span> <span class="nf">print</span><span class="p">(</span><span class="n">localModels</span><span class="p">)</span> </code></pre> <p>If you would prefer to bypass <code>classifyWithLocalModel</code> and construct your own Core ML classification request, then you can retrieve a Core ML model from the local filesystem with the following example.</p> <pre class="highlight swift"><code><span class="k">let</span> <span class="nv">classifierID</span> <span class="o">=</span> <span class="s">"your-classifier-id"</span> <span class="k">let</span> <span class="nv">localModel</span> <span class="o">=</span> <span class="k">try!</span> <span class="n">visualRecognition</span><span class="o">.</span><span class="nf">getLocalModel</span><span class="p">(</span><span class="nv">classifierID</span><span class="p">:</span> <span class="n">classifierID</span><span class="p">)</span> <span class="nf">print</span><span class="p">(</span><span class="n">localModel</span><span class="p">)</span> </code></pre> <p>The following example demonstrates how to delete a local Core ML model from the filesystem. This saves space when the model is no longer needed.</p> <pre class="highlight swift"><code><span class="k">let</span> <span class="nv">classifierID</span> <span class="o">=</span> <span class="s">"your-classifier-id"</span> <span class="n">visualRecognition</span><span class="o">.</span><span class="nf">deleteLocalModel</span><span class="p">(</span><span class="nv">classifierID</span><span class="p">:</span> <span class="n">classifierID</span><span class="p">)</span> </code></pre> <h4 id='bundling-a-model-directly-with-your-application' class='heading'>Bundling a model directly with your application</h4> <p>You may also choose to include a Core ML model with your application, enabling images to be classified offline without having to download a model first. To include a model, add it to your application bundle following the naming convention [classifier_id].mlmodel. This will enable the SDK to locate the model when using any function that accepts a classifierID argument.</p> <p>The following links provide more information about the IBM Watson Visual Recognition service:</p> <ul> <li><a href="https://www.ibm.com/watson/services/visual-recognition/">IBM Watson Visual Recognition - Service Page</a></li> <li><a href="https://console.bluemix.net/docs/services/visual-recognition/index.html">IBM Watson Visual Recognition - Documentation</a></li> <li><a href="https://visual-recognition-demo.ng.bluemix.net/">IBM Watson Visual Recognition - Demo</a></li> </ul> </section> </section> <section id="footer"> <p>&copy; 2018 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2018-05-18)</p> <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.3</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p> </section> </article> </div> </body> </div> </html>
ArnavChawla/InteliChat
Carthage/Checkouts/swift-sdk/docs/swift-api/services/NaturalLanguageClassifierV1/index.html
HTML
mit
95,734
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>index</title> <link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css"> <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> <link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> <link rel="shortcut icon" type="image/png" href="../assets/favicon.png"> <script src="http://yui.yahooapis.com/combo?3.9.1/build/yui/yui-min.js"></script> </head> <body class="yui3-skin-sam"> <div id="doc"> <div id="hd" class="yui3-g header"> <div class="yui3-u-3-4"> <h1><img src="../assets/css/logo.png" title=""></h1> </div> <div class="yui3-u-1-4 version"> <em>API Docs for: </em> </div> </div> <div id="bd" class="yui3-g"> <div class="yui3-u-1-4"> <div id="docs-sidebar" class="sidebar apidocs"> <div id="api-list"> <h2 class="off-left">APIs</h2> <div id="api-tabview" class="tabview"> <ul class="tabs"> <li><a href="#api-classes">Classes</a></li> <li><a href="#api-modules">Modules</a></li> </ul> <div id="api-tabview-filter"> <input type="search" id="api-filter" placeholder="Type to filter APIs"> </div> <div id="api-tabview-panel"> <ul id="api-classes" class="apis classes"> <li><a href="../classes/fan1xia.Failed.html">fan1xia.Failed</a></li> <li><a href="../classes/fan1xia.Failed.prototype.html">fan1xia.Failed.prototype</a></li> <li><a href="../classes/fan1xia.Index.html">fan1xia.Index</a></li> <li><a href="../classes/fan1xia.Index.prototype.html">fan1xia.Index.prototype</a></li> <li><a href="../classes/fan1xia.model.Canvas.html">fan1xia.model.Canvas</a></li> <li><a href="../classes/fan1xia.model.Canvas.prototype.html">fan1xia.model.Canvas.prototype</a></li> <li><a href="../classes/fan1xia.model.Images.html">fan1xia.model.Images</a></li> <li><a href="../classes/fan1xia.model.Images.prototype.html">fan1xia.model.Images.prototype</a></li> <li><a href="../classes/fan1xia.model.Score.html">fan1xia.model.Score</a></li> <li><a href="../classes/fan1xia.model.Score.prototype.html">fan1xia.model.Score.prototype</a></li> <li><a href="../classes/fan1xia.model.StorageModel.html">fan1xia.model.StorageModel</a></li> <li><a href="../classes/fan1xia.model.StorageModel.prototype.html">fan1xia.model.StorageModel.prototype</a></li> <li><a href="../classes/fan1xia.model.Store.html">fan1xia.model.Store</a></li> <li><a href="../classes/fan1xia.model.Store.prototype.html">fan1xia.model.Store.prototype</a></li> <li><a href="../classes/fan1xia.model.Timer.html">fan1xia.model.Timer</a></li> <li><a href="../classes/fan1xia.model.Timer.prototype.html">fan1xia.model.Timer.prototype</a></li> <li><a href="../classes/fan1xia.Success.html">fan1xia.Success</a></li> <li><a href="../classes/fan1xia.Success.prototype.html">fan1xia.Success.prototype</a></li> </ul> <ul id="api-modules" class="apis modules"> <li><a href="../modules/canvasModel.html">canvasModel</a></li> <li><a href="../modules/imagesModel.html">imagesModel</a></li> <li><a href="../modules/index.html">index</a></li> <li><a href="../modules/storageModel.html">storageModel</a></li> </ul> </div> </div> </div> </div> </div> <div class="yui3-u-3-4"> <div id="api-options"> Show: <label for="api-show-inherited"> <input type="checkbox" id="api-show-inherited" checked> Inherited </label> <label for="api-show-protected"> <input type="checkbox" id="api-show-protected"> Protected </label> <label for="api-show-private"> <input type="checkbox" id="api-show-private"> Private </label> <label for="api-show-deprecated"> <input type="checkbox" id="api-show-deprecated"> Deprecated </label> </div> <div class="apidocs"> <div id="docs-main"> <div class="content"> <h1>index Module</h1> <div class="box clearfix meta"> <div class="foundat"> Defined in: <a href="../files/index.js.html#l248"><code>index.js:248</code></a> </div> </div> <div class="box intro"> <p>Index js主页js</p> </div> <div class="yui3-g"> <div class="yui3-u-1-2"> <p>This module provides the following classes:</p> <ul class="module-classes"> <li class="module-class"> <a href="../classes/fan1xia.Failed.html"> fan1xia.Failed </a> </li> <li class="module-class"> <a href="../classes/fan1xia.Failed.prototype.html"> fan1xia.Failed.prototype </a> </li> <li class="module-class"> <a href="../classes/fan1xia.Index.html"> fan1xia.Index </a> </li> <li class="module-class"> <a href="../classes/fan1xia.Index.prototype.html"> fan1xia.Index.prototype </a> </li> <li class="module-class"> <a href="../classes/fan1xia.Success.html"> fan1xia.Success </a> </li> <li class="module-class"> <a href="../classes/fan1xia.Success.prototype.html"> fan1xia.Success.prototype </a> </li> </ul> </div> <div class="yui3-u-1-2"> </div> </div> </div> </div> </div> </div> </div> </div> <script src="../assets/vendor/prettify/prettify-min.js"></script> <script>prettyPrint();</script> <script src="../assets/js/yui-prettify.js"></script> <script src="../assets/../api.js"></script> <script src="../assets/js/api-filter.js"></script> <script src="../assets/js/api-list.js"></script> <script src="../assets/js/api-search.js"></script> <script src="../assets/js/apidocs.js"></script> </body> </html>
wangd1230/2017gcqp
js/out/modules/index.html
HTML
mit
7,270
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _reactIconBase = require('react-icon-base'); var _reactIconBase2 = _interopRequireDefault(_reactIconBase); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var MdLocalRestaurant = function MdLocalRestaurant(props) { return _react2.default.createElement( _reactIconBase2.default, _extends({ viewBox: '0 0 40 40' }, props), _react2.default.createElement( 'g', null, _react2.default.createElement('path', { d: 'm24.8 19.2l-2.5 2.4 11.5 11.5-2.3 2.4-11.5-11.5-11.5 11.5-2.3-2.4 16.2-16.2q-0.9-1.9-0.3-4.4t2.7-4.5q2.4-2.4 5.4-2.7t4.7 1.4 1.5 4.8-2.8 5.5q-2 1.9-4.5 2.5t-4.3-0.3z m-11.3 3.1l-7-7.1q-2-1.9-2-4.7t2-4.6l11.7 11.6z' }) ) ); }; exports.default = MdLocalRestaurant; module.exports = exports['default'];
bairrada97/festival
node_modules/react-icons/lib/md/local-restaurant.js
JavaScript
mit
1,259
/** * Copyright Marc J. Schmidt. See the LICENSE file at the top-level * directory of this distribution and at * https://github.com/marcj/css-element-queries/blob/master/LICENSE. */ ; (function() { /** * Class for dimension change detection. * * @param {Element|Element[]|Elements|jQuery} element * @param {Function} callback * * @constructor */ this.ResizeSensor = function(element, callback) { /** * * @constructor */ function EventQueue() { this.q = []; this.add = function(ev) { this.q.push(ev); }; var i, j; this.call = function() { for (i = 0, j = this.q.length; i < j; i++) { this.q[i].call(); } }; } /** * @param {HTMLElement} element * @param {String} prop * @returns {String|Number} */ function getComputedStyle(element, prop) { if (element.currentStyle) { return element.currentStyle[prop]; } else if (window.getComputedStyle) { return window.getComputedStyle(element, null).getPropertyValue(prop); } else { return element.style[prop]; } } /** * * @param {HTMLElement} element * @param {Function} resized */ function attachResizeEvent(element, resized) { if (!element.resizedAttached) { element.resizedAttached = new EventQueue(); element.resizedAttached.add(resized); } else if (element.resizedAttached) { element.resizedAttached.add(resized); return; } element.resizeSensor = document.createElement('div'); element.resizeSensor.className = 'resize-sensor'; var style = 'position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: scroll; z-index: -1; visibility: hidden;'; var styleChild = 'position: absolute; left: 0; top: 0;'; element.resizeSensor.style.cssText = style; element.resizeSensor.innerHTML = '<div class="resize-sensor-expand" style="' + style + '">' + '<div style="' + styleChild + '"></div>' + '</div>' + '<div class="resize-sensor-shrink" style="' + style + '">' + '<div style="' + styleChild + ' width: 200%; height: 200%"></div>' + '</div>'; element.appendChild(element.resizeSensor); if (!{fixed: 1, absolute: 1}[getComputedStyle(element, 'position')]) { element.style.position = 'relative'; } var expand = element.resizeSensor.childNodes[0]; var expandChild = expand.childNodes[0]; var shrink = element.resizeSensor.childNodes[1]; var shrinkChild = shrink.childNodes[0]; var lastWidth, lastHeight; var reset = function() { expandChild.style.width = expand.offsetWidth + 10 + 'px'; expandChild.style.height = expand.offsetHeight + 10 + 'px'; expand.scrollLeft = expand.scrollWidth; expand.scrollTop = expand.scrollHeight; shrink.scrollLeft = shrink.scrollWidth; shrink.scrollTop = shrink.scrollHeight; lastWidth = element.offsetWidth; lastHeight = element.offsetHeight; }; reset(); var changed = function() { element.resizedAttached.call(); }; var addEvent = function(el, name, cb) { if (el.attachEvent) { el.attachEvent('on' + name, cb); } else { el.addEventListener(name, cb); } }; addEvent(expand, 'scroll', function() { if (element.offsetWidth > lastWidth || element.offsetHeight > lastHeight) { changed(); } reset(); }); addEvent(shrink, 'scroll',function() { if (element.offsetWidth < lastWidth || element.offsetHeight < lastHeight) { changed(); } reset(); }); } if ("[object Array]" === Object.prototype.toString.call(element) || ('undefined' !== typeof jQuery && element instanceof jQuery) //jquery || ('undefined' !== typeof Elements && element instanceof Elements) //mootools ) { var i = 0, j = element.length; for (; i < j; i++) { attachResizeEvent(element[i], callback); } } else { attachResizeEvent(element, callback); } } })();
borgboyone/jquery-ui-table
test/ResizeSensor.js
JavaScript
mit
4,979
// // Created by Andrew Podkovyrin // Copyright © 2019 Dash Core Group. All rights reserved. // // Licensed under the MIT License (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://opensource.org/licenses/MIT // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // #import "DWLockActionButton.h" #import "DWUIKit.h" NS_ASSUME_NONNULL_BEGIN static CGFloat const SPACING = 4.0; @interface DWLockActionButton () @property (readonly, nonatomic, strong) UIImageView *imageView; @property (readonly, nonatomic, strong) UILabel *label; @end @implementation DWLockActionButton - (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { [self lockActionButton_setup]; } return self; } - (nullable instancetype)initWithCoder:(NSCoder *)coder { self = [super initWithCoder:coder]; if (self) { [self lockActionButton_setup]; } return self; } - (void)lockActionButton_setup { self.backgroundColor = [UIColor clearColor]; UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectZero]; imageView.translatesAutoresizingMaskIntoConstraints = NO; imageView.contentMode = UIViewContentModeCenter; [imageView setContentHuggingPriority:UILayoutPriorityDefaultHigh + 1 forAxis:UILayoutConstraintAxisVertical]; _imageView = imageView; UILabel *label = [[UILabel alloc] initWithFrame:CGRectZero]; label.translatesAutoresizingMaskIntoConstraints = NO; label.backgroundColor = self.backgroundColor; label.numberOfLines = 0; label.font = [UIFont dw_fontForTextStyle:UIFontTextStyleCaption1]; label.adjustsFontForContentSizeCategory = YES; label.adjustsFontSizeToFitWidth = YES; label.minimumScaleFactor = 0.5; label.textColor = [UIColor dw_lightTitleColor]; label.textAlignment = NSTextAlignmentCenter; [label setContentCompressionResistancePriority:UILayoutPriorityDefaultHigh + 1 forAxis:UILayoutConstraintAxisVertical]; _label = label; UIStackView *stackView = [[UIStackView alloc] initWithArrangedSubviews:@[ imageView, label ]]; stackView.translatesAutoresizingMaskIntoConstraints = NO; stackView.axis = UILayoutConstraintAxisVertical; stackView.alignment = UIStackViewAlignmentCenter; stackView.spacing = SPACING; stackView.userInteractionEnabled = NO; [self addSubview:stackView]; [NSLayoutConstraint activateConstraints:@[ [stackView.topAnchor constraintEqualToAnchor:self.topAnchor], [stackView.leadingAnchor constraintEqualToAnchor:self.leadingAnchor], [stackView.bottomAnchor constraintEqualToAnchor:self.bottomAnchor], [stackView.trailingAnchor constraintEqualToAnchor:self.trailingAnchor], ]]; } - (nullable UIImage *)image { return self.imageView.image; } - (void)setImage:(nullable UIImage *)image { NSParameterAssert(image); self.imageView.image = image; } - (nullable NSString *)title { return self.label.text; } - (void)setTitle:(nullable NSString *)title { self.label.text = title; } - (void)setEnabled:(BOOL)enabled { [super setEnabled:enabled]; self.alpha = enabled ? 1.0 : 0.5; } - (void)setHighlighted:(BOOL)highlighted { [super setHighlighted:highlighted]; [UIView animateWithDuration:0.075 delay:0.0 options:UIViewAnimationCurveEaseOut | UIViewAnimationOptionBeginFromCurrentState animations:^{ self.alpha = highlighted ? 0.5 : 1.0; } completion:nil]; } @end NS_ASSUME_NONNULL_END
QuantumExplorer/breadwallet
DashWallet/Sources/UI/LockScreen/Views/DWLockActionButton.m
Matlab
mit
4,061
conf_manila_conf = """[DEFAULT] enabled_share_backends = generic enabled_share_protocols = NFS,CIFS default_share_type = default_share_type rootwrap_config = /etc/manila/rootwrap.conf auth_strategy = keystone my_ip = {{ my_ip }} # # From oslo.messaging # # Size of RPC connection pool. (integer value) # Deprecated group/name - [DEFAULT]/rpc_conn_pool_size #rpc_conn_pool_size = 30 # ZeroMQ bind address. Should be a wildcard (*), an ethernet # interface, or IP. The "host" option should point or resolve to this # address. (string value) #rpc_zmq_bind_address = * # MatchMaker driver. (string value) # Allowed values: redis, dummy #rpc_zmq_matchmaker = redis # Type of concurrency used. Either "native" or "eventlet" (string # value) #rpc_zmq_concurrency = eventlet # Number of ZeroMQ contexts, defaults to 1. (integer value) #rpc_zmq_contexts = 1 # Maximum number of ingress messages to locally buffer per topic. # Default is unlimited. (integer value) #rpc_zmq_topic_backlog = <None> # Directory for holding IPC sockets. (string value) #rpc_zmq_ipc_dir = /var/run/openstack # Name of this node. Must be a valid hostname, FQDN, or IP address. # Must match "host" option, if running Nova. (string value) #rpc_zmq_host = localhost # Seconds to wait before a cast expires (TTL). The default value of -1 # specifies an infinite linger period. The value of 0 specifies no # linger period. Pending messages shall be discarded immediately when # the socket is closed. Only supported by impl_zmq. (integer value) #rpc_cast_timeout = -1 # The default number of seconds that poll should wait. Poll raises # timeout exception when timeout expired. (integer value) #rpc_poll_timeout = 1 # Expiration timeout in seconds of a name service record about # existing target ( < 0 means no timeout). (integer value) #zmq_target_expire = 120 # Use PUB/SUB pattern for fanout methods. PUB/SUB always uses proxy. # (boolean value) #use_pub_sub = true # Minimal port number for random ports range. (port value) # Minimum value: 0 # Maximum value: 65535 #rpc_zmq_min_port = 49152 # Maximal port number for random ports range. (integer value) # Minimum value: 1 # Maximum value: 65536 #rpc_zmq_max_port = 65536 # Number of retries to find free port number before fail with # ZMQBindError. (integer value) #rpc_zmq_bind_port_retries = 100 # Size of executor thread pool. (integer value) # Deprecated group/name - [DEFAULT]/rpc_thread_pool_size #executor_thread_pool_size = 64 # Seconds to wait for a response from a call. (integer value) #rpc_response_timeout = 60 # A URL representing the messaging driver to use and its full # configuration. If not set, we fall back to the rpc_backend option # and driver specific configuration. (string value) #transport_url = <None> # The messaging driver to use, defaults to rabbit. Other drivers # include amqp and zmq. (string value) rpc_backend = rabbit # The default exchange under which topics are scoped. May be # overridden by an exchange name specified in the transport_url # option. (string value) #control_exchange = openstack [cors] # # From oslo.middleware.cors # # Indicate whether this resource may be shared with the domain # received in the requests "origin" header. (list value) #allowed_origin = <None> # Indicate that the actual request can include user credentials # (boolean value) #allow_credentials = true # Indicate which headers are safe to expose to the API. Defaults to # HTTP Simple Headers. (list value) #expose_headers = Content-Type,Cache-Control,Content-Language,Expires,Last-Modified,Pragma # Maximum cache age of CORS preflight requests. (integer value) #max_age = 3600 # Indicate which methods can be used during the actual request. (list # value) #allow_methods = GET,POST,PUT,DELETE,OPTIONS # Indicate which header field names may be used during the actual # request. (list value) #allow_headers = Content-Type,Cache-Control,Content-Language,Expires,Last-Modified,Pragma [cors.subdomain] # # From oslo.middleware.cors # # Indicate whether this resource may be shared with the domain # received in the requests "origin" header. (list value) #allowed_origin = <None> # Indicate that the actual request can include user credentials # (boolean value) #allow_credentials = true # Indicate which headers are safe to expose to the API. Defaults to # HTTP Simple Headers. (list value) #expose_headers = Content-Type,Cache-Control,Content-Language,Expires,Last-Modified,Pragma # Maximum cache age of CORS preflight requests. (integer value) #max_age = 3600 # Indicate which methods can be used during the actual request. (list # value) #allow_methods = GET,POST,PUT,DELETE,OPTIONS # Indicate which header field names may be used during the actual # request. (list value) #allow_headers = Content-Type,Cache-Control,Content-Language,Expires,Last-Modified,Pragma [database] # # From oslo.db # # The file name to use with SQLite. (string value) # Deprecated group/name - [DEFAULT]/sqlite_db #sqlite_db = oslo.sqlite # If True, SQLite uses synchronous mode. (boolean value) # Deprecated group/name - [DEFAULT]/sqlite_synchronous #sqlite_synchronous = true # The back end to use for the database. (string value) # Deprecated group/name - [DEFAULT]/db_backend #backend = sqlalchemy # The SQLAlchemy connection string to use to connect to the database. # (string value) # Deprecated group/name - [DEFAULT]/sql_connection # Deprecated group/name - [DATABASE]/sql_connection # Deprecated group/name - [sql]/connection connection = {{ connection }} # The SQLAlchemy connection string to use to connect to the slave # database. (string value) #slave_connection = <None> # The SQL mode to be used for MySQL sessions. This option, including # the default, overrides any server-set SQL mode. To use whatever SQL # mode is set by the server configuration, set this to no value. # Example: mysql_sql_mode= (string value) #mysql_sql_mode = TRADITIONAL # Timeout before idle SQL connections are reaped. (integer value) # Deprecated group/name - [DEFAULT]/sql_idle_timeout # Deprecated group/name - [DATABASE]/sql_idle_timeout # Deprecated group/name - [sql]/idle_timeout #idle_timeout = 3600 # Minimum number of SQL connections to keep open in a pool. (integer # value) # Deprecated group/name - [DEFAULT]/sql_min_pool_size # Deprecated group/name - [DATABASE]/sql_min_pool_size #min_pool_size = 1 # Maximum number of SQL connections to keep open in a pool. (integer # value) # Deprecated group/name - [DEFAULT]/sql_max_pool_size # Deprecated group/name - [DATABASE]/sql_max_pool_size #max_pool_size = <None> # Maximum number of database connection retries during startup. Set to # -1 to specify an infinite retry count. (integer value) # Deprecated group/name - [DEFAULT]/sql_max_retries # Deprecated group/name - [DATABASE]/sql_max_retries #max_retries = 10 # Interval between retries of opening a SQL connection. (integer # value) # Deprecated group/name - [DEFAULT]/sql_retry_interval # Deprecated group/name - [DATABASE]/reconnect_interval #retry_interval = 10 # If set, use this value for max_overflow with SQLAlchemy. (integer # value) # Deprecated group/name - [DEFAULT]/sql_max_overflow # Deprecated group/name - [DATABASE]/sqlalchemy_max_overflow #max_overflow = 50 # Verbosity of SQL debugging information: 0=None, 100=Everything. # (integer value) # Deprecated group/name - [DEFAULT]/sql_connection_debug #connection_debug = 0 # Add Python stack traces to SQL as comment strings. (boolean value) # Deprecated group/name - [DEFAULT]/sql_connection_trace #connection_trace = false # If set, use this value for pool_timeout with SQLAlchemy. (integer # value) # Deprecated group/name - [DATABASE]/sqlalchemy_pool_timeout #pool_timeout = <None> # Enable the experimental use of database reconnect on connection # lost. (boolean value) #use_db_reconnect = false # Seconds between retries of a database transaction. (integer value) #db_retry_interval = 1 # If True, increases the interval between retries of a database # operation up to db_max_retry_interval. (boolean value) #db_inc_retry_interval = true # If db_inc_retry_interval is set, the maximum seconds between retries # of a database operation. (integer value) #db_max_retry_interval = 10 # Maximum retries in case of connection error or deadlock error before # error is raised. Set to -1 to specify an infinite retry count. # (integer value) #db_max_retries = 20 # # From oslo.db.concurrency # # Enable the experimental use of thread pooling for all DB API calls # (boolean value) # Deprecated group/name - [DEFAULT]/dbapi_use_tpool #use_tpool = false [keystone_authtoken] # # From keystonemiddleware.auth_token # # Complete public Identity API endpoint. (string value) auth_uri = {{ auth_uri }} auth_url = {{ auth_url }} # API version of the admin Identity API endpoint. (string value) #auth_version = <None> # Do not handle authorization requests within the middleware, but # delegate the authorization decision to downstream WSGI components. # (boolean value) #delay_auth_decision = false # Request timeout value for communicating with Identity API server. # (integer value) #http_connect_timeout = <None> # How many times are we trying to reconnect when communicating with # Identity API Server. (integer value) #http_request_max_retries = 3 # Env key for the swift cache. (string value) #cache = <None> # Required if identity server requires client certificate (string # value) #certfile = <None> # Required if identity server requires client certificate (string # value) #keyfile = <None> # A PEM encoded Certificate Authority to use when verifying HTTPs # connections. Defaults to system CAs. (string value) #cafile = <None> # Verify HTTPS connections. (boolean value) #insecure = false # The region in which the identity server can be found. (string value) #region_name = <None> # Directory used to cache files related to PKI tokens. (string value) #signing_dir = <None> # Optionally specify a list of memcached server(s) to use for caching. # If left undefined, tokens will instead be cached in-process. (list # value) # Deprecated group/name - [DEFAULT]/memcache_servers memcached_servers = {{ memcached_servers }} # In order to prevent excessive effort spent validating tokens, the # middleware caches previously-seen tokens for a configurable duration # (in seconds). Set to -1 to disable caching completely. (integer # value) #token_cache_time = 300 # Determines the frequency at which the list of revoked tokens is # retrieved from the Identity service (in seconds). A high number of # revocation events combined with a low cache duration may # significantly reduce performance. (integer value) #revocation_cache_time = 10 # (Optional) If defined, indicate whether token data should be # authenticated or authenticated and encrypted. If MAC, token data is # authenticated (with HMAC) in the cache. If ENCRYPT, token data is # encrypted and authenticated in the cache. If the value is not one of # these options or empty, auth_token will raise an exception on # initialization. (string value) # Allowed values: None, MAC, ENCRYPT #memcache_security_strategy = None # (Optional, mandatory if memcache_security_strategy is defined) This # string is used for key derivation. (string value) #memcache_secret_key = <None> # (Optional) Number of seconds memcached server is considered dead # before it is tried again. (integer value) #memcache_pool_dead_retry = 300 # (Optional) Maximum total number of open connections to every # memcached server. (integer value) #memcache_pool_maxsize = 10 # (Optional) Socket timeout in seconds for communicating with a # memcached server. (integer value) #memcache_pool_socket_timeout = 3 # (Optional) Number of seconds a connection to memcached is held # unused in the pool before it is closed. (integer value) #memcache_pool_unused_timeout = 60 # (Optional) Number of seconds that an operation will wait to get a # memcached client connection from the pool. (integer value) #memcache_pool_conn_get_timeout = 10 # (Optional) Use the advanced (eventlet safe) memcached client pool. # The advanced pool will only work under python 2.x. (boolean value) #memcache_use_advanced_pool = false # (Optional) Indicate whether to set the X-Service-Catalog header. If # False, middleware will not ask for service catalog on token # validation and will not set the X-Service-Catalog header. (boolean # value) #include_service_catalog = true # Used to control the use and type of token binding. Can be set to: # "disabled" to not check token binding. "permissive" (default) to # validate binding information if the bind type is of a form known to # the server and ignore it if not. "strict" like "permissive" but if # the bind type is unknown the token will be rejected. "required" any # form of token binding is needed to be allowed. Finally the name of a # binding method that must be present in tokens. (string value) #enforce_token_bind = permissive # If true, the revocation list will be checked for cached tokens. This # requires that PKI tokens are configured on the identity server. # (boolean value) #check_revocations_for_cached = false # Hash algorithms to use for hashing PKI tokens. This may be a single # algorithm or multiple. The algorithms are those supported by Python # standard hashlib.new(). The hashes will be tried in the order given, # so put the preferred one first for performance. The result of the # first hash will be stored in the cache. This will typically be set # to multiple values only while migrating from a less secure algorithm # to a more secure one. Once all the old tokens are expired this # option should be set to a single value for better performance. (list # value) #hash_algorithms = md5 # Prefix to prepend at the beginning of the path. Deprecated, use # identity_uri. (string value) #auth_admin_prefix = # Host providing the admin Identity API endpoint. Deprecated, use # identity_uri. (string value) #auth_host = 127.0.0.1 # Port of the admin Identity API endpoint. Deprecated, use # identity_uri. (integer value) #auth_port = 35357 # Protocol of the admin Identity API endpoint. Deprecated, use # identity_uri. (string value) # Allowed values: http, https #auth_protocol = https # Complete admin Identity API endpoint. This should specify the # unversioned root endpoint e.g. https://localhost:35357/ (string # value) #identity_uri = <None> # This option is deprecated and may be removed in a future release. # Single shared secret with the Keystone configuration used for # bootstrapping a Keystone installation, or otherwise bypassing the # normal authentication process. This option should not be used, use # `admin_user` and `admin_password` instead. (string value) #admin_token = <None> # Service username. (string value) #admin_user = <None> # Service user password. (string value) #admin_password = <None> # Service tenant name. (string value) #admin_tenant_name = admin # Authentication type to load (unknown value) # Deprecated group/name - [DEFAULT]/auth_plugin auth_type = password # Config Section from which to load plugin specific options (unknown # value) #auth_section = <None> project_domain_name = default user_domain_name = default project_name = service username = manila password = {{ manila_pass }} [matchmaker_redis] # # From oslo.messaging # # Host to locate redis. (string value) #host = 127.0.0.1 # Use this port to connect to redis host. (port value) # Minimum value: 0 # Maximum value: 65535 #port = 6379 # Password for Redis server (optional). (string value) #password = # List of Redis Sentinel hosts (fault tolerance mode) e.g. # [host:port, host1:port ... ] (list value) #sentinel_hosts = # Redis replica set name. (string value) #sentinel_group_name = oslo-messaging-zeromq # Time in ms to wait between connection attempts. (integer value) #wait_timeout = 500 # Time in ms to wait before the transaction is killed. (integer value) #check_timeout = 20000 # Timeout in ms on blocking socket operations (integer value) #socket_timeout = 1000 [oslo_messaging_amqp] # # From oslo.messaging # # address prefix used when sending to a specific server (string value) # Deprecated group/name - [amqp1]/server_request_prefix #server_request_prefix = exclusive # address prefix used when broadcasting to all servers (string value) # Deprecated group/name - [amqp1]/broadcast_prefix #broadcast_prefix = broadcast # address prefix when sending to any server in group (string value) # Deprecated group/name - [amqp1]/group_request_prefix #group_request_prefix = unicast # Name for the AMQP container (string value) # Deprecated group/name - [amqp1]/container_name #container_name = <None> # Timeout for inactive connections (in seconds) (integer value) # Deprecated group/name - [amqp1]/idle_timeout #idle_timeout = 0 # Debug: dump AMQP frames to stdout (boolean value) # Deprecated group/name - [amqp1]/trace #trace = false # CA certificate PEM file to verify server certificate (string value) # Deprecated group/name - [amqp1]/ssl_ca_file #ssl_ca_file = # Identifying certificate PEM file to present to clients (string # value) # Deprecated group/name - [amqp1]/ssl_cert_file #ssl_cert_file = # Private key PEM file used to sign cert_file certificate (string # value) # Deprecated group/name - [amqp1]/ssl_key_file #ssl_key_file = # Password for decrypting ssl_key_file (if encrypted) (string value) # Deprecated group/name - [amqp1]/ssl_key_password #ssl_key_password = <None> # Accept clients using either SSL or plain TCP (boolean value) # Deprecated group/name - [amqp1]/allow_insecure_clients #allow_insecure_clients = false # Space separated list of acceptable SASL mechanisms (string value) # Deprecated group/name - [amqp1]/sasl_mechanisms #sasl_mechanisms = # Path to directory that contains the SASL configuration (string # value) # Deprecated group/name - [amqp1]/sasl_config_dir #sasl_config_dir = # Name of configuration file (without .conf suffix) (string value) # Deprecated group/name - [amqp1]/sasl_config_name #sasl_config_name = # User name for message broker authentication (string value) # Deprecated group/name - [amqp1]/username #username = # Password for message broker authentication (string value) # Deprecated group/name - [amqp1]/password #password = [oslo_messaging_notifications] # # From oslo.messaging # # The Drivers(s) to handle sending notifications. Possible values are # messaging, messagingv2, routing, log, test, noop (multi valued) # Deprecated group/name - [DEFAULT]/notification_driver #driver = # A URL representing the messaging driver to use for notifications. If # not set, we fall back to the same configuration used for RPC. # (string value) # Deprecated group/name - [DEFAULT]/notification_transport_url #transport_url = <None> # AMQP topic used for OpenStack notifications. (list value) # Deprecated group/name - [rpc_notifier2]/topics # Deprecated group/name - [DEFAULT]/notification_topics #topics = notifications [oslo_messaging_rabbit] # # From oslo.messaging # # Use durable queues in AMQP. (boolean value) # Deprecated group/name - [DEFAULT]/amqp_durable_queues # Deprecated group/name - [DEFAULT]/rabbit_durable_queues #amqp_durable_queues = false # Auto-delete queues in AMQP. (boolean value) # Deprecated group/name - [DEFAULT]/amqp_auto_delete #amqp_auto_delete = false # SSL version to use (valid only if SSL enabled). Valid values are # TLSv1 and SSLv23. SSLv2, SSLv3, TLSv1_1, and TLSv1_2 may be # available on some distributions. (string value) # Deprecated group/name - [DEFAULT]/kombu_ssl_version #kombu_ssl_version = # SSL key file (valid only if SSL enabled). (string value) # Deprecated group/name - [DEFAULT]/kombu_ssl_keyfile #kombu_ssl_keyfile = # SSL cert file (valid only if SSL enabled). (string value) # Deprecated group/name - [DEFAULT]/kombu_ssl_certfile #kombu_ssl_certfile = # SSL certification authority file (valid only if SSL enabled). # (string value) # Deprecated group/name - [DEFAULT]/kombu_ssl_ca_certs #kombu_ssl_ca_certs = # How long to wait before reconnecting in response to an AMQP consumer # cancel notification. (floating point value) # Deprecated group/name - [DEFAULT]/kombu_reconnect_delay #kombu_reconnect_delay = 1.0 # EXPERIMENTAL: Possible values are: gzip, bz2. If not set compression # will not be used. This option may notbe available in future # versions. (string value) #kombu_compression = <None> # How long to wait a missing client beforce abandoning to send it its # replies. This value should not be longer than rpc_response_timeout. # (integer value) # Deprecated group/name - [DEFAULT]/kombu_reconnect_timeout #kombu_missing_consumer_retry_timeout = 60 # Determines how the next RabbitMQ node is chosen in case the one we # are currently connected to becomes unavailable. Takes effect only if # more than one RabbitMQ node is provided in config. (string value) # Allowed values: round-robin, shuffle #kombu_failover_strategy = round-robin # The RabbitMQ broker address where a single node is used. (string # value) # Deprecated group/name - [DEFAULT]/rabbit_host #rabbit_host = localhost # The RabbitMQ broker port where a single node is used. (port value) # Minimum value: 0 # Maximum value: 65535 # Deprecated group/name - [DEFAULT]/rabbit_port #rabbit_port = 5672 # RabbitMQ HA cluster host:port pairs. (list value) # Deprecated group/name - [DEFAULT]/rabbit_hosts #rabbit_hosts = $rabbit_host:$rabbit_port rabbit_hosts = {{ rabbit_hosts }} # Connect over SSL for RabbitMQ. (boolean value) # Deprecated group/name - [DEFAULT]/rabbit_use_ssl #rabbit_use_ssl = false # The RabbitMQ userid. (string value) # Deprecated group/name - [DEFAULT]/rabbit_userid rabbit_userid = {{ rabbit_userid }} # The RabbitMQ password. (string value) # Deprecated group/name - [DEFAULT]/rabbit_password rabbit_password = {{ rabbit_password }} # The RabbitMQ login method. (string value) # Deprecated group/name - [DEFAULT]/rabbit_login_method #rabbit_login_method = AMQPLAIN # The RabbitMQ virtual host. (string value) # Deprecated group/name - [DEFAULT]/rabbit_virtual_host #rabbit_virtual_host = / # How frequently to retry connecting with RabbitMQ. (integer value) #rabbit_retry_interval = 1 # How long to backoff for between retries when connecting to RabbitMQ. # (integer value) # Deprecated group/name - [DEFAULT]/rabbit_retry_backoff #rabbit_retry_backoff = 2 # Maximum interval of RabbitMQ connection retries. Default is 30 # seconds. (integer value) #rabbit_interval_max = 30 # Maximum number of RabbitMQ connection retries. Default is 0 # (infinite retry count). (integer value) # Deprecated group/name - [DEFAULT]/rabbit_max_retries #rabbit_max_retries = 0 # Try to use HA queues in RabbitMQ (x-ha-policy: all). If you change # this option, you must wipe the RabbitMQ database. In RabbitMQ 3.0, # queue mirroring is no longer controlled by the x-ha-policy argument # when declaring a queue. If you just want to make sure that all # queues (except those with auto-generated names) are mirrored across # all nodes, run: "rabbitmqctl set_policy HA '^(?!amq\.).*' '{"ha- # mode": "all"}' " (boolean value) # Deprecated group/name - [DEFAULT]/rabbit_ha_queues #rabbit_ha_queues = false # Positive integer representing duration in seconds for queue TTL # (x-expires). Queues which are unused for the duration of the TTL are # automatically deleted. The parameter affects only reply and fanout # queues. (integer value) # Minimum value: 1 #rabbit_transient_queues_ttl = 1800 # Specifies the number of messages to prefetch. Setting to zero allows # unlimited messages. (integer value) #rabbit_qos_prefetch_count = 0 # Number of seconds after which the Rabbit broker is considered down # if heartbeat's keep-alive fails (0 disable the heartbeat). # EXPERIMENTAL (integer value) #heartbeat_timeout_threshold = 60 # How often times during the heartbeat_timeout_threshold we check the # heartbeat. (integer value) #heartbeat_rate = 2 # Deprecated, use rpc_backend=kombu+memory or rpc_backend=fake # (boolean value) # Deprecated group/name - [DEFAULT]/fake_rabbit #fake_rabbit = false # Maximum number of channels to allow (integer value) #channel_max = <None> # The maximum byte size for an AMQP frame (integer value) #frame_max = <None> # How often to send heartbeats for consumer's connections (integer # value) #heartbeat_interval = 1 # Enable SSL (boolean value) #ssl = <None> # Arguments passed to ssl.wrap_socket (dict value) #ssl_options = <None> # Set socket timeout in seconds for connection's socket (floating # point value) #socket_timeout = 0.25 # Set TCP_USER_TIMEOUT in seconds for connection's socket (floating # point value) #tcp_user_timeout = 0.25 # Set delay for reconnection to some host which has connection error # (floating point value) #host_connection_reconnect_delay = 0.25 # Maximum number of connections to keep queued. (integer value) #pool_max_size = 10 # Maximum number of connections to create above `pool_max_size`. # (integer value) #pool_max_overflow = 0 # Default number of seconds to wait for a connections to available # (integer value) #pool_timeout = 30 # Lifetime of a connection (since creation) in seconds or None for no # recycling. Expired connections are closed on acquire. (integer # value) #pool_recycle = 600 # Threshold at which inactive (since release) connections are # considered stale in seconds or None for no staleness. Stale # connections are closed on acquire. (integer value) #pool_stale = 60 # Persist notification messages. (boolean value) #notification_persistence = false # Exchange name for for sending notifications (string value) #default_notification_exchange = ${control_exchange}_notification # Max number of not acknowledged message which RabbitMQ can send to # notification listener. (integer value) #notification_listener_prefetch_count = 100 # Reconnecting retry count in case of connectivity problem during # sending notification, -1 means infinite retry. (integer value) #default_notification_retry_attempts = -1 # Reconnecting retry delay in case of connectivity problem during # sending notification message (floating point value) #notification_retry_delay = 0.25 # Time to live for rpc queues without consumers in seconds. (integer # value) #rpc_queue_expiration = 60 # Exchange name for sending RPC messages (string value) #default_rpc_exchange = ${control_exchange}_rpc # Exchange name for receiving RPC replies (string value) #rpc_reply_exchange = ${control_exchange}_rpc_reply # Max number of not acknowledged message which RabbitMQ can send to # rpc listener. (integer value) #rpc_listener_prefetch_count = 100 # Max number of not acknowledged message which RabbitMQ can send to # rpc reply listener. (integer value) #rpc_reply_listener_prefetch_count = 100 # Reconnecting retry count in case of connectivity problem during # sending reply. -1 means infinite retry during rpc_timeout (integer # value) #rpc_reply_retry_attempts = -1 # Reconnecting retry delay in case of connectivity problem during # sending reply. (floating point value) #rpc_reply_retry_delay = 0.25 # Reconnecting retry count in case of connectivity problem during # sending RPC message, -1 means infinite retry. If actual retry # attempts in not 0 the rpc request could be processed more then one # time (integer value) #default_rpc_retry_attempts = -1 # Reconnecting retry delay in case of connectivity problem during # sending RPC message (floating point value) #rpc_retry_delay = 0.25 [oslo_concurrency] lock_path = /var/lib/manila/tmp [neutron] url = {{ neutron_endpoint }} auth_uri = {{ auth_uri }} auth_url = {{ auth_url }} memcached_servers = {{ memcached_servers }} auth_type = password project_domain_name = default user_domain_name = default region_name = RegionOne project_name = service username = neutron password = {{ neutron_pass }} [nova] auth_uri = {{ auth_uri }} auth_url = {{ auth_url }} memcached_servers = {{ memcached_servers }} auth_type = password project_domain_name = default user_domain_name = default region_name = RegionOne project_name = service username = nova password = {{ nova_pass }} [cinder] auth_uri = {{ auth_uri }} auth_url = {{ auth_url }} memcached_servers = {{ memcached_servers }} auth_type = password project_domain_name = default user_domain_name = default region_name = RegionOne project_name = service username = cinder password = {{ cinder_pass }} [generic] share_backend_name = generic share_driver = manila.share.drivers.generic.GenericShareDriver driver_handles_share_servers = True service_instance_flavor_id = 100 service_image_name = manila-service-image service_instance_user = manila service_instance_password = manila interface_driver = manila.network.linux.interface.BridgeInterfaceDriver """
jiasir/playback
playback/templates/manila_conf_for_share.py
Python
mit
28,793
/* * Copyright (c) 2016 Razeware LLC * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ import Foundation struct NetworkSimulator { static func asyncLoadDataAtURL(_ url: URL, completion: @escaping ((_ data: Data?) -> ())) { DispatchQueue.global(qos: .default).async { let data = syncLoadDataAtURL(url) DispatchQueue.main.async { completion(data) } } } static func syncLoadDataAtURL(_ url: URL) -> Data? { // Wait somewhere between 0 and 3 seconds let randomWaitingTime = arc4random_uniform(2 * 1000000) usleep(randomWaitingTime) return (try? Data(contentsOf: url)) } }
ihomway/RayWenderlichCourses
iOS Concurrency with GCD and Operations/Dependencies Challenge/Dependencies Challenge/Dependencies Challenge/NetworkSimulator.swift
Swift
mit
1,641
// // OCHamcrest - HCHasCount.m // Copyright 2013 hamcrest.org. See LICENSE.txt // // Created by: Jon Reid, http://qualitycoding.org/ // Docs: http://hamcrest.github.com/OCHamcrest/ // Source: https://github.com/hamcrest/OCHamcrest // #import "HCHasCount.h" #import "HCDescription.h" #import "HCIsEqualToNumber.h" @implementation HCHasCount + (id)hasCount:(id<HCMatcher>)matcher { return [[self alloc] initWithCount:matcher]; } - (id)initWithCount:(id<HCMatcher>)matcher { self = [super init]; if (self) countMatcher = matcher; return self; } - (BOOL)matches:(id)item { if (![item respondsToSelector:@selector(count)]) return NO; NSNumber *count = @([item count]); return [countMatcher matches:count]; } - (void)describeMismatchOf:(id)item to:(id<HCDescription>)mismatchDescription { [mismatchDescription appendText:@"was "]; if ([item respondsToSelector:@selector(count)]) { [[[mismatchDescription appendText:@"count of "] appendDescriptionOf:@([item count])] appendText:@" with "]; } [mismatchDescription appendDescriptionOf:item]; } - (void)describeTo:(id<HCDescription>)description { [[description appendText:@"a collection with count of "] appendDescriptionOf:countMatcher]; } @end #pragma mark - id<HCMatcher> HC_hasCount(id<HCMatcher> matcher) { return [HCHasCount hasCount:matcher]; } id<HCMatcher> HC_hasCountOf(NSUInteger value) { return HC_hasCount(HC_equalToUnsignedInteger(value)); }
blazingcloud/sealant
Testable/Pods/OCHamcrest/Source/Library/Collection/HCHasCount.m
Matlab
mit
1,567
using System; namespace GenFx.Wpf { /// <summary> /// Represents the UI context for executing a <see cref="GenFx.GeneticAlgorithm"/>. /// </summary> public class ExecutionContext : ObservableObject { private ExecutionState executionState = ExecutionState.Idle; private Exception? algorithmException; /// <summary> /// Gets the <see cref="GenFx.GeneticAlgorithm"/> associated with this context. /// </summary> public GeneticAlgorithm GeneticAlgorithm { get; } /// <summary> /// Gets the <see cref="UI.ExecutionState"/> of the <see cref="GeneticAlgorithm"/>. /// </summary> public ExecutionState ExecutionState { get { return this.executionState; } internal set { this.SetProperty(ref this.executionState, value); if (this.ExecutionState == ExecutionState.Idle) { this.AlgorithmException = null; } } } /// <summary> /// Gets the exception that was thrown, if any, while attempting to execute the <see cref="GeneticAlgorithm"/>. /// </summary> public Exception? AlgorithmException { get { return this.algorithmException; } internal set { this.SetProperty(ref this.algorithmException, value); } } /// <summary> /// Initializes the state of this class. /// </summary> /// <param name="algorithm">The <see cref="GenFx.GeneticAlgorithm"/> associated with this context.</param> public ExecutionContext(GeneticAlgorithm algorithm) { this.GeneticAlgorithm = algorithm; } } }
mthalman/GenFx.NET
src/GenFx.Wpf/ExecutionContext.cs
C#
mit
1,766
/* * The MIT License (MIT) * * Copyright (c) <2015> <Stephan Gatzka> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #define BOOST_TEST_DYN_LINK #define BOOST_TEST_MAIN #define BOOST_TEST_MODULE state #include <boost/test/unit_test.hpp> #include <list> #include "compiler.h" #include "element.h" #include "json/cJSON.h" #include "parse.h" #include "peer.h" #include "router.h" #include "table.h" static char send_buffer[100000]; static std::list<struct io_event *> timer_evs; extern "C" { cjet_ssize_t socket_read(socket_type sock, void *buf, size_t count) { (void)sock; (void)count; uint64_t number_of_timeouts = 1; ::memcpy(buf, &number_of_timeouts, sizeof(number_of_timeouts)); return 8; } int socket_close(socket_type sock) { (void)sock; return 0; } } int send_message(const struct peer *p, char *rendered, size_t len) { (void)p; memcpy(send_buffer, rendered, len); return 0; } static struct element *get_state(const char *path) { return (struct element *)element_table_get(path); } static cJSON *parse_send_buffer(void) { char *read_ptr = send_buffer; const char *end_parse; cJSON *root = cJSON_ParseWithOpts(read_ptr, &end_parse, 0); return root; } static cJSON *create_response_from_message(const cJSON *routed_message) { const cJSON *id = cJSON_GetObjectItem(routed_message, "id"); cJSON *duplicated_id = cJSON_Duplicate(id, 1); cJSON *response = cJSON_CreateObject(); cJSON_AddItemToObject(response, "id", duplicated_id); cJSON *result = cJSON_CreateString(""); cJSON_AddItemToObject(response, "result", result); return response; } static cJSON *create_set_request(const char *request_id, const char *path) { cJSON *set_request = cJSON_CreateObject(); cJSON_AddStringToObject(set_request, "method", "set"); if (request_id != NULL) { cJSON_AddStringToObject(set_request, "id", request_id); } cJSON *params = cJSON_CreateObject(); cJSON_AddStringToObject(params, "path", path); cJSON *new_value = cJSON_CreateNumber(4321); cJSON_AddItemToObject(params, "value", new_value); cJSON_AddItemToObject(set_request, "params", params); return set_request; } static cJSON *create_set_request_with_timeout(const char *request_id, const char *path, double timeout_s) { cJSON *set_request = create_set_request(request_id, path); cJSON *params = cJSON_GetObjectItem(set_request, "params"); cJSON_AddNumberToObject(params, "timeout", timeout_s); return set_request; } static cJSON *get_result_from_response(const cJSON *response) { cJSON *result = cJSON_GetObjectItem(response, "result"); if (result != NULL) { return result; } const cJSON *error = cJSON_GetObjectItem(response, "error"); if (error != NULL) { return result; } return NULL; } static enum eventloop_return fake_add(const void *this_ptr, const struct io_event *ev) { (void)this_ptr; timer_evs.push_back((struct io_event *)ev); return EL_CONTINUE_LOOP; } static void fake_remove(void *this_ptr, const struct io_event *ev) { (void)this_ptr; (void)ev; timer_evs.remove((struct io_event *)ev); return; } static struct eventloop loop; struct F { F() { timer_evs.clear(); loop.this_ptr = NULL; loop.init = NULL; loop.destroy = NULL; loop.run = NULL; loop.add = fake_add; loop.remove = fake_remove; init_parser(); element_hashtable_create(); init_peer(&p, false, &loop); p.send_message = send_message; init_peer(&owner_peer, false, &loop); owner_peer.send_message = send_message; init_peer(&set_peer, false, &loop); set_peer.send_message = send_message; } ~F() { free_peer_resources(&set_peer); free_peer_resources(&owner_peer); free_peer_resources(&p); element_hashtable_delete(); } struct peer p; struct peer owner_peer; struct peer set_peer; }; static void check_response(cJSON *json, const char *id) { cJSON *response_id = cJSON_GetObjectItem(json, "id"); BOOST_CHECK((response_id != NULL) && (response_id->type == cJSON_String) && (strcmp(response_id->valuestring, id) == 0)); cJSON *result = cJSON_GetObjectItem(json, "result"); BOOST_CHECK(result != NULL); } static void check_internal_error(const cJSON *response) { const cJSON *error = cJSON_GetObjectItem(response, "error"); cJSON *code = cJSON_GetObjectItem(error, "code"); if (code != NULL) { BOOST_CHECK(code->type == cJSON_Number); BOOST_CHECK(code->valueint == -32603); } else { BOOST_FAIL("No code object!"); } cJSON *message = cJSON_GetObjectItem(error, "message"); if (message != NULL) { BOOST_CHECK(message->type == cJSON_String); BOOST_CHECK(strcmp(message->valuestring, "Internal error") == 0); } else { BOOST_FAIL("No message object!"); } } static void check_invalid_params(const cJSON *response) { const cJSON *error = cJSON_GetObjectItem(response, "error"); const cJSON *code = cJSON_GetObjectItem(error, "code"); if (code != NULL) { BOOST_CHECK(code->type == cJSON_Number); BOOST_CHECK(code->valueint == -32602); } else { BOOST_FAIL("No code object!"); } const cJSON *message = cJSON_GetObjectItem(error, "message"); if (message != NULL) { BOOST_CHECK(message->type == cJSON_String); BOOST_CHECK(strcmp(message->valuestring, "Invalid params") == 0); } else { BOOST_FAIL("No message object!"); } } static cJSON *create_add(const char *path) { cJSON *params = cJSON_CreateObject(); BOOST_REQUIRE(params != NULL); cJSON_AddStringToObject(params, "path", path); cJSON_AddItemToObject(params, "value", cJSON_CreateNumber(1234)); cJSON *root = cJSON_CreateObject(); cJSON_AddItemToObject(root, "params", params); cJSON_AddStringToObject(root, "id", "add_request_1"); cJSON_AddStringToObject(root, "method", "add"); return root; } static cJSON *create_add_method(const char *path) { cJSON *params = cJSON_CreateObject(); BOOST_REQUIRE(params != NULL); cJSON_AddStringToObject(params, "path", path); cJSON *root = cJSON_CreateObject(); cJSON_AddItemToObject(root, "params", params); cJSON_AddStringToObject(root, "id", "add_request_1"); cJSON_AddStringToObject(root, "method", "add"); return root; } static cJSON *create_change(const char *path) { cJSON *params = cJSON_CreateObject(); BOOST_REQUIRE(params != NULL); cJSON_AddStringToObject(params, "path", path); cJSON_AddItemToObject(params, "value", cJSON_CreateNumber(4321)); cJSON *root = cJSON_CreateObject(); cJSON_AddItemToObject(root, "params", params); cJSON_AddStringToObject(root, "id", "change_request_1"); cJSON_AddStringToObject(root, "method", "change"); return root; } static bool response_is_error(const cJSON *response) { const cJSON *error = cJSON_GetObjectItem(response, "error"); return (error != NULL); } BOOST_FIXTURE_TEST_CASE(add_state_existing_method, F) { const char path[] = "/foo/bar/"; cJSON *request = create_add(path); cJSON *response = add_element_to_peer(&owner_peer, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(response); response = add_element_to_peer(&owner_peer, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); check_invalid_params(response); cJSON_Delete(response); cJSON_Delete(request); } BOOST_FIXTURE_TEST_CASE(add_state, F) { const char path[] = "/foo/bar/"; cJSON *request = create_add(path); cJSON *params = cJSON_GetObjectItem(request, "params"); cJSON *json_path = cJSON_GetObjectItem(params, "path"); cJSON *value = cJSON_GetObjectItem(params, "value"); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(response); struct element *e = get_state(json_path->valuestring); BOOST_CHECK(e->value->valueint == value->valueint); cJSON_Delete(request); } BOOST_FIXTURE_TEST_CASE(add_duplicate_state, F) { const char path[] = "/foo/bar/"; cJSON *request = create_add(path); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(response); response = add_element_to_peer(&p, request); BOOST_REQUIRE(response != NULL); check_invalid_params(response); cJSON_Delete(response); cJSON_Delete(request); } BOOST_FIXTURE_TEST_CASE(delete_single_state, F) { const char path[] = "/foo/bar/"; cJSON *request = create_add(path); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(response); response = remove_element_from_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "remove_element_from_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "remove_element_from_peer() failed!"); cJSON_Delete(request); cJSON_Delete(response); } BOOST_FIXTURE_TEST_CASE(delete_nonexisting_state, F) { const char path[] = "/foo/bar/"; cJSON *request = create_add(path); cJSON *response = remove_element_from_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "remove_element_from_peer() had no response!"); BOOST_CHECK_MESSAGE(response_is_error(response), "removing non-existant state did not fail!"); cJSON_Delete(request); cJSON_Delete(response); } BOOST_FIXTURE_TEST_CASE(double_free_state, F) { const char path[] = "/foo/bar/"; cJSON *request = create_add(path); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(response); response = remove_element_from_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "remove_element_from_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "removing state failed!"); cJSON_Delete(response); response = remove_element_from_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "remove_element_from_peer() had no response!"); BOOST_CHECK_MESSAGE(response_is_error(response), "double free of state did not fail!"); cJSON_Delete(request); cJSON_Delete(response); } BOOST_FIXTURE_TEST_CASE(change, F) { const char path[] = "/foo/bar/"; cJSON *request = create_add(path); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(response); cJSON_Delete(request); request = create_change(path); cJSON *params = cJSON_GetObjectItem(request, "params"); cJSON *json_path = cJSON_GetObjectItem(params, "path"); cJSON *new_value = cJSON_GetObjectItem(params, "value"); response = change_state(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "change_state() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "change_state() failed!"); struct element *e = get_state(json_path->valuestring); BOOST_CHECK(e->value->valueint == new_value->valueint); cJSON_Delete(request); cJSON_Delete(response); } BOOST_FIXTURE_TEST_CASE(change_no_params, F) { const char path[] = "/foo/bar/"; cJSON *request = create_add(path); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(response); cJSON_Delete(request); request = cJSON_CreateObject(); cJSON_AddStringToObject(request, "id", "change_request_1"); cJSON_AddStringToObject(request, "method", "change"); response = change_state(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "change_state() had no response!"); BOOST_CHECK_MESSAGE(response_is_error(response), "change_state() with no params did not fail!"); cJSON_Delete(request); cJSON_Delete(response); } BOOST_FIXTURE_TEST_CASE(change_not_by_owner, F) { const char path[] = "/foo/bar/"; cJSON *request = create_add(path); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(response); cJSON_Delete(request); request = create_change(path); response = change_state(&set_peer, request); BOOST_REQUIRE_MESSAGE(response != NULL, "change_state() had no response!"); BOOST_CHECK_MESSAGE(response_is_error(response), "non-owner change did not fail!"); cJSON_Delete(response); cJSON_Delete(request); } BOOST_FIXTURE_TEST_CASE(change_wrong_path, F) { const char path[] = "/foo/bar/"; cJSON *request = create_add(path); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(response); cJSON_Delete(request); request = create_change("/bar/foo/"); response = change_state(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "change_state() had no response!"); BOOST_CHECK_MESSAGE(response_is_error(response), "wrong path change did not fail!"); check_invalid_params(response); cJSON_Delete(response); cJSON_Delete(request); } BOOST_FIXTURE_TEST_CASE(change_on_method, F) { const char path[] = "/foo/bar/"; cJSON *request = create_add_method(path); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(response); cJSON_Delete(request); request = create_change(path); response = change_state(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "change_state() had no response!"); check_invalid_params(response); cJSON_Delete(response); cJSON_Delete(request); } BOOST_FIXTURE_TEST_CASE(set_on_method, F) { const char path[] = "/foo/bar"; cJSON *request = create_add_method(path); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(response); cJSON_Delete(request); cJSON *set_request = create_set_request("request1", path); response = set_or_call(&set_peer, set_request, STATE); cJSON_Delete(set_request); BOOST_REQUIRE_MESSAGE(response != NULL, "change_state() had no response!"); check_invalid_params(response); cJSON_Delete(response); } BOOST_FIXTURE_TEST_CASE(set_on_fetchonly, F) { const char path[] = "/foo/bar"; cJSON *request = create_add(path); cJSON *params = cJSON_GetObjectItem(request, "params"); cJSON_AddItemToObject(params, "fetchOnly", cJSON_CreateTrue()); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(response); cJSON_Delete(request); cJSON *set_request = create_set_request("request1", path); response = set_or_call(&set_peer, set_request, STATE); cJSON_Delete(set_request); BOOST_REQUIRE_MESSAGE(response != NULL, "set_or_call() had no response!"); check_invalid_params(response); cJSON_Delete(response); } BOOST_FIXTURE_TEST_CASE(set, F) { const char path[] = "/foo/bar/"; cJSON *request = create_add(path); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(response); cJSON_Delete(request); cJSON *set_request = create_set_request("request1", path); response = set_or_call(&set_peer, set_request, STATE); cJSON_Delete(set_request); BOOST_CHECK_MESSAGE(response == NULL, "There must be no response when calling set/call"); BOOST_CHECK_MESSAGE(timer_evs.size() == 1, "No timer_ev was registered!"); cJSON *routed_message = parse_send_buffer(); response = create_response_from_message(routed_message); cJSON *result = get_result_from_response(response); int ret = handle_routing_response(response, result, "result", &p); BOOST_CHECK(ret == 0); BOOST_CHECK_MESSAGE(timer_evs.size() == 0, "timer_ev was not deregistered!"); cJSON_Delete(routed_message); cJSON_Delete(response); } BOOST_FIXTURE_TEST_CASE(set_with_correct_timeout, F) { double timeout_s = 2.22; const char path[] = "/foo/bar/"; cJSON *request = create_add(path); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(response); cJSON_Delete(request); cJSON *set_request = create_set_request_with_timeout("request1", path, timeout_s); response = set_or_call(&set_peer, set_request, STATE); cJSON_Delete(set_request); BOOST_CHECK_MESSAGE(response == NULL, "There must be no response when calling set/call"); BOOST_CHECK_MESSAGE(timer_evs.size() == 1, "No timer_ev was registered!"); cJSON *routed_message = parse_send_buffer(); response = create_response_from_message(routed_message); cJSON *result = get_result_from_response(response); int ret = handle_routing_response(response, result, "result", &p); BOOST_CHECK(ret == 0); BOOST_CHECK_MESSAGE(timer_evs.size() == 0, "timer_ev was not deregistered!"); cJSON_Delete(routed_message); cJSON_Delete(response); } BOOST_FIXTURE_TEST_CASE(set_with_negative_timeout, F) { double timeout_s = -2.22; const char path[] = "/foo/bar/"; cJSON *request = create_add(path); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(response); cJSON_Delete(request); cJSON *set_request = create_set_request_with_timeout("request1", path, timeout_s); response = set_or_call(&set_peer, set_request, STATE); BOOST_REQUIRE_MESSAGE(response != NULL, "set_or_call() had no response!"); check_invalid_params(response); cJSON_Delete(set_request); cJSON_Delete(response); BOOST_CHECK_MESSAGE(response != NULL, "no error object created for set request with negative timeout"); BOOST_CHECK_MESSAGE(timer_evs.size() == 0, "timer_ev was registered for set request with negative timeout!"); } BOOST_FIXTURE_TEST_CASE(set_with_illegal_timeout_object, F) { const char path[] = "/foo/bar/"; cJSON *request = create_add(path); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(response); cJSON_Delete(request); cJSON *set_request = create_set_request("request1", path); cJSON *params = cJSON_GetObjectItem(set_request, "params"); cJSON_AddStringToObject(params, "timeout", "hello"); response = set_or_call(&set_peer, set_request, STATE); BOOST_REQUIRE_MESSAGE(response != NULL, "set_or_call() had no response!"); check_invalid_params(response); cJSON_Delete(set_request); BOOST_CHECK_MESSAGE((response != NULL) && (response_is_error(response)), "no error object created for set request with negative timeout"); BOOST_CHECK_MESSAGE(timer_evs.size() == 0, "timer_ev was registered for set request with illegal timeout object!"); cJSON_Delete(response); } BOOST_FIXTURE_TEST_CASE(set_wrong_path, F) { const char path[] = "/foo/bar/"; cJSON *request = create_add(path); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(response); cJSON_Delete(request); const char set_path[] = "/bar/foo/"; cJSON *set_request = create_set_request("request1", set_path); response = set_or_call(&set_peer, set_request, STATE); cJSON_Delete(set_request); BOOST_CHECK_MESSAGE((response != NULL) && (response_is_error(response)), "no error object created for set request with negative timeout"); cJSON_Delete(response); } BOOST_FIXTURE_TEST_CASE(set_without_id_without_response, F) { const char path[] = "/foo/bar/"; cJSON *request = create_add(path); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(request); cJSON_Delete(response); cJSON *set_request = create_set_request(NULL, path); response = set_or_call(&set_peer, set_request, STATE); cJSON_Delete(set_request); BOOST_CHECK_MESSAGE(response == NULL, "There must be no response when calling set/call"); cJSON_Delete(response); } BOOST_FIXTURE_TEST_CASE(set_wrong_id_type, F) { const char path[] = "/foo/bar/"; cJSON *request = create_add(path); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(request); cJSON_Delete(response); cJSON *set_request = cJSON_CreateObject(); cJSON_AddStringToObject(set_request, "method", "set"); cJSON_AddTrueToObject(set_request, "id"); cJSON *params = cJSON_CreateObject(); cJSON_AddStringToObject(params, "path", path); cJSON *new_value = cJSON_CreateNumber(4321); cJSON_AddItemToObject(params, "value", new_value); cJSON_AddItemToObject(set_request, "params", params); response = set_or_call(&set_peer, set_request, STATE); cJSON_Delete(set_request); BOOST_CHECK_MESSAGE(response == NULL, "Got response despite wrong request id type!"); cJSON_Delete(response); } BOOST_FIXTURE_TEST_CASE(set_without_id_with_response, F) { const char path[] = "/foo/bar/"; cJSON *request = create_add(path); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(response); cJSON_Delete(request); cJSON *set_request = create_set_request(NULL, path); response = set_or_call(&set_peer, set_request, STATE); cJSON_Delete(set_request); BOOST_CHECK_MESSAGE(response == NULL, "There must be no response when calling set/call"); cJSON *routed_message = parse_send_buffer(); response = create_response_from_message(routed_message); cJSON *result = get_result_from_response(response); int ret = handle_routing_response(response, result, "result", &p); BOOST_CHECK(ret == 0); cJSON_Delete(routed_message); cJSON_Delete(response); } BOOST_FIXTURE_TEST_CASE(set_with_timeout_before_response, F) { const char path[] = "/foo/bar/"; cJSON *request = create_add(path); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(response); cJSON_Delete(request); cJSON *set_request = create_set_request("request1", path); response = set_or_call(&set_peer, set_request, STATE); cJSON_Delete(set_request); BOOST_CHECK_MESSAGE(response == NULL, "There must be no response when calling set/call"); cJSON *routed_message = parse_send_buffer(); response = create_response_from_message(routed_message); cJSON *result = get_result_from_response(response); BOOST_REQUIRE_MESSAGE(timer_evs.size() == 1, "No timer ev was registered!"); struct io_event *timer_ev = timer_evs.front(); enum eventloop_return el_ret = timer_ev->read_function(timer_ev); BOOST_CHECK_MESSAGE(el_ret == EL_CONTINUE_LOOP, "timer read function did not returned EL_CONTINUE_LOOP"); BOOST_REQUIRE_MESSAGE(timer_evs.size() == 0, "timer was not remove from eventloop!"); cJSON *error_message = parse_send_buffer(); BOOST_REQUIRE_MESSAGE(error_message != NULL, "Error message does not contain an error object!"); check_internal_error(error_message); cJSON_Delete(error_message); int ret = handle_routing_response(response, result, "result", &p); BOOST_CHECK_MESSAGE(ret == 0, "Response after timeout not silently ignored!"); cJSON_Delete(routed_message); cJSON_Delete(response); } BOOST_FIXTURE_TEST_CASE(set_with_timeout_after_response, F) { const char path[] = "/foo/bar/"; const char request_id[] = "request1"; cJSON *request = create_add(path); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(response); cJSON_Delete(request); cJSON *set_request = create_set_request(request_id, path); response = set_or_call(&set_peer, set_request, STATE); cJSON_Delete(set_request); BOOST_CHECK_MESSAGE(response == NULL, "There must be no response when calling set/call"); cJSON *routed_message = parse_send_buffer(); response = create_response_from_message(routed_message); cJSON *result = get_result_from_response(response); cJSON_Delete(routed_message); int ret = handle_routing_response(response, result, "result", &p); BOOST_CHECK_MESSAGE(ret == 0, "Response after timeout not silently ignored!"); cJSON_Delete(response); cJSON *error_message = parse_send_buffer(); BOOST_REQUIRE_MESSAGE(error_message != NULL, "Error message does not contain an error object!"); check_response(error_message, request_id); cJSON_Delete(error_message); //BOOST_REQUIRE_MESSAGE(timer_evs.size() == 1, "No timer ev was registered!"); //struct io_event *timer_ev = timer_evs.front(); //enum eventloop_return el_ret = timer_ev->read_function(timer_ev); //BOOST_CHECK_MESSAGE(el_ret == EL_CONTINUE_LOOP, "timer read function did not returned EL_CONTINUE_LOOP"); //BOOST_REQUIRE_MESSAGE(timer_evs.size() == 0, "timer was not remove from eventloop!"); //cJSON *error_message = parse_send_buffer(); //BOOST_REQUIRE_MESSAGE(error_message != NULL, "Error message does not contain an error object!"); //check_internal_error(error_message); //cJSON_Delete(error_message); } BOOST_FIXTURE_TEST_CASE(set_with_destroy_before_response, F) { struct peer setter_peer; init_peer(&setter_peer, false, &loop); setter_peer.send_message = send_message; const char path[] = "/foo/bar/"; cJSON *request = create_add(path); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(response); cJSON_Delete(request); cJSON *set_request = create_set_request("request1", path); response = set_or_call(&setter_peer, set_request, STATE); cJSON_Delete(set_request); BOOST_CHECK_MESSAGE(response == NULL, "There must be no response when calling set/call"); cJSON *routed_message = parse_send_buffer(); response = create_response_from_message(routed_message); cJSON *result = get_result_from_response(response); free_peer_resources(&setter_peer); int ret = handle_routing_response(response, result, "result", &p); BOOST_CHECK_MESSAGE(ret == 0, "Response after timeout/destroy not silently ignored!"); cJSON_Delete(routed_message); cJSON_Delete(response); } BOOST_FIXTURE_TEST_CASE(second_set_before_first_response, F) { double timeout_s = 2.22; const char path[] = "/foo/bar/"; cJSON *request = create_add(path); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(response); cJSON_Delete(request); cJSON *set_request1 = create_set_request_with_timeout("request1", path, timeout_s); response = set_or_call(&set_peer, set_request1, STATE); cJSON_Delete(set_request1); BOOST_CHECK_MESSAGE(response == NULL, "There must be no response when calling set/call"); cJSON *routed_message1 = parse_send_buffer(); cJSON *response1 = create_response_from_message(routed_message1); cJSON *result1 = get_result_from_response(response1); cJSON *set_request2 = create_set_request_with_timeout("request2", path, timeout_s); response = set_or_call(&set_peer, set_request2, STATE); cJSON_Delete(set_request2); BOOST_CHECK_MESSAGE(response == NULL, "There must be no response when calling set/call"); cJSON *routed_message2 = parse_send_buffer(); cJSON *response2 = create_response_from_message(routed_message1); cJSON *result2 = get_result_from_response(response1); int ret = handle_routing_response(response1, result1, "result", &p); BOOST_CHECK(ret == 0); cJSON_Delete(routed_message1); cJSON_Delete(response1); ret = handle_routing_response(response2, result2, "result", &p); BOOST_CHECK(ret == 0); cJSON_Delete(routed_message2); cJSON_Delete(response2); } BOOST_FIXTURE_TEST_CASE(two_sets_with_first_timeout, F) { double timeout_s = 2.22; const char path[] = "/foo/bar/"; cJSON *request = create_add(path); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(response); cJSON_Delete(request); cJSON *set_request1 = create_set_request_with_timeout("request1", path, timeout_s); response = set_or_call(&set_peer, set_request1, STATE); cJSON_Delete(set_request1); BOOST_CHECK_MESSAGE(response == NULL, "There must be no response when calling set/call"); cJSON *routed_message1 = parse_send_buffer(); cJSON *response1 = create_response_from_message(routed_message1); cJSON *result1 = get_result_from_response(response1); BOOST_REQUIRE_MESSAGE(timer_evs.size() == 1, "No timer ev was registered!"); struct io_event *timer_ev = timer_evs.front(); enum eventloop_return el_ret = timer_ev->read_function(timer_ev); BOOST_CHECK_MESSAGE(el_ret == EL_CONTINUE_LOOP, "timer read function did not returned EL_CONTINUE_LOOP"); BOOST_REQUIRE_MESSAGE(timer_evs.size() == 0, "timer was not remove from eventloop!"); cJSON *error_message = parse_send_buffer(); BOOST_REQUIRE_MESSAGE(error_message != NULL, "Error message does not contain an error object!"); check_internal_error(error_message); cJSON_Delete(error_message); cJSON *set_request2 = create_set_request_with_timeout("request2", path, timeout_s); response = set_or_call(&set_peer, set_request2, STATE); cJSON_Delete(set_request2); BOOST_CHECK_MESSAGE(response == NULL, "There must be no response when calling set/call"); cJSON *routed_message2 = parse_send_buffer(); cJSON *response2 = create_response_from_message(routed_message1); cJSON *result2 = get_result_from_response(response1); int ret = handle_routing_response(response1, result1, "result", &p); BOOST_CHECK_MESSAGE(ret == 0, "Response after timeout not silently ignored!"); cJSON_Delete(routed_message1); cJSON_Delete(response1); ret = handle_routing_response(response2, result2, "result", &p); BOOST_CHECK(ret == 0); cJSON_Delete(routed_message2); cJSON_Delete(response2); } BOOST_FIXTURE_TEST_CASE(two_sets_all_timeout, F) { double timeout_s = 2.22; const char path[] = "/foo/bar/"; cJSON *request = create_add(path); cJSON *response = add_element_to_peer(&p, request); BOOST_REQUIRE_MESSAGE(response != NULL, "add_element_to_peer() had no response!"); BOOST_CHECK_MESSAGE(!response_is_error(response), "add_element_to_peer() failed!"); cJSON_Delete(response); cJSON_Delete(request); cJSON *set_request1 = create_set_request_with_timeout("request1", path, timeout_s); response = set_or_call(&set_peer, set_request1, STATE); cJSON_Delete(set_request1); BOOST_CHECK_MESSAGE(response == NULL, "There must be no response when calling set/call"); cJSON *routed_message1 = parse_send_buffer(); cJSON *response1 = create_response_from_message(routed_message1); cJSON *result1 = get_result_from_response(response1); cJSON *set_request2 = create_set_request_with_timeout("request2", path, timeout_s); response = set_or_call(&set_peer, set_request2, STATE); cJSON_Delete(set_request2); BOOST_CHECK_MESSAGE(response == NULL, "There must be no response when calling set/call"); cJSON *routed_message2 = parse_send_buffer(); cJSON *response2 = create_response_from_message(routed_message1); cJSON *result2 = get_result_from_response(response1); BOOST_REQUIRE_MESSAGE(timer_evs.size() == 2, "No timer ev was registered!"); struct io_event *timer_ev = timer_evs.front(); enum eventloop_return el_ret = timer_ev->read_function(timer_ev); BOOST_CHECK_MESSAGE(el_ret == EL_CONTINUE_LOOP, "timer read function did not returned EL_CONTINUE_LOOP"); BOOST_REQUIRE_MESSAGE(timer_evs.size() == 1, "timer was not remove from eventloop!"); cJSON *error_message = parse_send_buffer(); BOOST_REQUIRE_MESSAGE(error_message != NULL, "Error message does not contain an error object!"); check_internal_error(error_message); cJSON_Delete(error_message); timer_ev = timer_evs.front(); el_ret = timer_ev->read_function(timer_ev); BOOST_CHECK_MESSAGE(el_ret == EL_CONTINUE_LOOP, "timer read function did not returned EL_CONTINUE_LOOP"); BOOST_REQUIRE_MESSAGE(timer_evs.size() == 0, "timer was not remove from eventloop!"); error_message = parse_send_buffer(); BOOST_REQUIRE_MESSAGE(error_message != NULL, "Error message does not contain an error object!"); check_internal_error(error_message); cJSON_Delete(error_message); int ret = handle_routing_response(response1, result1, "result", &p); BOOST_CHECK_MESSAGE(ret == 0, "Response after timeout not silently ignored!"); cJSON_Delete(routed_message1); cJSON_Delete(response1); ret = handle_routing_response(response2, result2, "result", &p); BOOST_CHECK(ret == 0); cJSON_Delete(routed_message2); cJSON_Delete(response2); }
gatzka/cjet
src/tests/state_test.cpp
C++
mit
35,492
/* Copyright (c) 2007 Scott Lembcke * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include <stdlib.h> #include <stdio.h> #include <math.h> #include "chipmunk.h" #include "drawSpace.h" #include "ChipmunkDemo.h" cpSpace *space; cpBody *staticBody; typedef struct OneWayPlatform { cpVect n; // direction objects may pass through cpArray *passThruList; // list of objects passing through } OneWayPlatform; static OneWayPlatform platformInstance; static int preSolve(cpArbiter *arb, cpSpace *space, void *ignore) { CP_ARBITER_GET_SHAPES(arb, a, b); OneWayPlatform *platform = (OneWayPlatform *)a->data; if(cpvdot(cpArbiterGetNormal(arb, 0), platform->n) < 0){ cpArbiterIgnore(arb); return 0; } return 1; } static void update(int ticks) { int steps = 1; cpFloat dt = 1.0f/60.0f/(cpFloat)steps; for(int i=0; i<steps; i++){ cpSpaceStep(space, dt); } } static cpSpace * init(void) { staticBody = cpBodyNew(INFINITY, INFINITY); cpResetShapeIdCounter(); space = cpSpaceNew(); space->iterations = 10; space->gravity = cpv(0, -100); cpBody *body; cpShape *shape; // Create segments around the edge of the screen. shape = cpSpaceAddStaticShape(space, cpSegmentShapeNew(staticBody, cpv(-320,-240), cpv(-320,240), 0.0f)); shape->e = 1.0f; shape->u = 1.0f; shape->layers = NOT_GRABABLE_MASK; shape = cpSpaceAddStaticShape(space, cpSegmentShapeNew(staticBody, cpv(320,-240), cpv(320,240), 0.0f)); shape->e = 1.0f; shape->u = 1.0f; shape->layers = NOT_GRABABLE_MASK; shape = cpSpaceAddStaticShape(space, cpSegmentShapeNew(staticBody, cpv(-320,-240), cpv(320,-240), 0.0f)); shape->e = 1.0f; shape->u = 1.0f; shape->layers = NOT_GRABABLE_MASK; // Add our one way segment shape = cpSpaceAddStaticShape(space, cpSegmentShapeNew(staticBody, cpv(-160,-100), cpv(160,-100), 10.0f)); shape->e = 1.0f; shape->u = 1.0f; shape->collision_type = 1; shape->layers = NOT_GRABABLE_MASK; // We'll use the data pointer for the OneWayPlatform struct platformInstance.n = cpv(0, 1); // let objects pass upwards platformInstance.passThruList = cpArrayNew(0); shape->data = &platformInstance; // Add a ball to make things more interesting cpFloat radius = 15.0f; body = cpSpaceAddBody(space, cpBodyNew(10.0f, cpMomentForCircle(10.0f, 0.0f, radius, cpvzero))); body->p = cpv(0, -200); body->v = cpv(0, 170); shape = cpSpaceAddShape(space, cpCircleShapeNew(body, radius, cpvzero)); shape->e = 0.0f; shape->u = 0.9f; shape->collision_type = 2; cpSpaceAddCollisionHandler(space, 1, 2, NULL, preSolve, NULL, NULL, NULL); return space; } static void destroy(void) { cpBodyFree(staticBody); cpSpaceFreeChildren(space); cpSpaceFree(space); cpArrayFree(platformInstance.passThruList); } const chipmunkDemo OneWay = { "One Way Platforms", NULL, init, update, destroy, };
tonetheman/chipmunk-test
Demo/OneWay.c
C
mit
3,862
<?php namespace php_active_record; class ADWDataConnector { // const DUMP_URL = "/Users/pleary/Downloads/datasets/adw_new.txt"; const DUMP_URL = "/Users/eolit/Sites/cp/ADW/adw_new.txt"; public function __construct($resource_id) { $this->resource_id = $resource_id; $this->taxon_ids = array(); } public function build_archive() { $this->path_to_archive_directory = CONTENT_RESOURCE_LOCAL_PATH . "/$this->resource_id/"; $this->archive_builder = new \eol_schema\ContentArchiveBuilder(array('directory_path' => $this->path_to_archive_directory)); $this->taxon_ids = array(); $this->occurrence_ids = array(); $in_quote = null; $current_line = null; $this->column_labels = array(); $this->column_indices = array(); foreach(new FileIterator(self::DUMP_URL) as $line_number => $line) { if($line_number == 0) { $this->column_labels = explode("\t", $line); foreach($this->column_labels as $k => $v) $this->column_indices[$v] = $k; continue; } if($in_quote) $current_line .= ";$line"; else $current_line = $line; if(preg_match("/\"[^\t\"]+$/", $line)) { $in_quote = true; continue; }elseif($in_quote && !preg_match("/^[^\t]+\"/", $line)) continue; $in_quote = false; $line_data = explode("\t", str_replace("\"", "", $current_line)); $column_count = count($line_data); if($column_count != 23) { echo "Line $line_number :: There was a problem with this line. Column count $column_count should be 23 (is $column_count)\n"; print_r($line_data); return; } $this->process_line_data($line_data); } $this->archive_builder->finalize(true); } public function process_line_data($line_data) { $taxon = $this->add_taxon($line_data[$this->column_indices['Species']], $line_data[$this->column_indices['Order']]); $this->add_boolean_types($line_data, $taxon); $this->add_numeric_types($line_data, $taxon); $this->add_string_types($line_data, $taxon); $this->add_predators($line_data, $taxon); } private function add_taxon($taxon_name, $order = null) { $taxon_id = md5($taxon_name); if(isset($this->taxon_ids[$taxon_id])) return $this->taxon_ids[$taxon_id]; $t = new \eol_schema\Taxon(); $t->taxonID = $taxon_id; $t->scientificName = $taxon_name; $t->order = $order; $this->archive_builder->write_object_to_file($t); $this->taxon_ids[$taxon_id] = $t; return $t; } private function add_occurrence($taxon, $identification_string) { $occurrence_id = md5($taxon->taxonID . 'occurrence' . $identification_string); if(isset($this->occurrence_ids[$occurrence_id])) return $this->occurrence_ids[$occurrence_id]; $o = new \eol_schema\Occurrence(); $o->occurrenceID = $occurrence_id; $o->taxonID = $taxon->taxonID; $m->measurementOfTaxon = 'true'; $this->archive_builder->write_object_to_file($o); $this->occurrence_ids[$occurrence_id] = $o; return $o; } private function add_boolean_types($line_data, $taxon) { $boolean_types = array('Holarctic', 'Cosmopolitan', 'Island endemic'); foreach($boolean_types as $label) { if($v = trim($line_data[$this->column_indices[$label]])) { $m = new \eol_schema\MeasurementOrFact(); $occurrence = $this->add_occurrence($taxon, $label); $m->occurrenceID = $occurrence->occurrenceID; $m->measurementOfTaxon = 'true'; $m->measurementType = "http://adw.org/". SparqlClient::to_underscore($label); $m->measurementValue = "true"; $this->archive_builder->write_object_to_file($m); } } } private function add_numeric_types($line_data, $taxon) { $numeric_types = array('Depth - average - m', 'Depth - extreme low - m', 'Depth - extreme high - m', 'Mass - average - g', 'Mass - extreme high - g', 'Mass - extreme low - g', 'Length - average - mm', 'Length - extreme high - mm', 'Length - extreme low - mm'); foreach($numeric_types as $label) { if($v = trim($line_data[$this->column_indices[$label]])) { if(!is_numeric($v)) continue; $this_label = $label; $unit_of_measure = null; if(preg_match("/^(.*) - (.+)$/", $label, $arr)) { $this_label = $arr[1]; $unit_of_measure = "http://adw.org/". SparqlClient::to_underscore(str_replace("/", "_", $arr[2])); } $m = new \eol_schema\MeasurementOrFact(); $occurrence = $this->add_occurrence($taxon, 'numeric'); $m->occurrenceID = $occurrence->occurrenceID; $m->measurementOfTaxon = 'true'; $m->measurementType = "http://adw.org/". SparqlClient::to_underscore(str_replace(" - ", " ", $this_label)); $m->measurementValue = $v; $m->measurementUnit = $unit_of_measure; $this->archive_builder->write_object_to_file($m); } } } private function add_string_types($line_data, $taxon) { $string_types = array('Biogeographic Regions', 'Aquatic Biomes', 'Wetlands', 'Other Habitat Features', 'Primary Diet', 'Animal Foods', 'Plant Foods', 'Other Foods'); foreach($string_types as $label) { if($v = trim($line_data[$this->column_indices[$label]])) { $values = explode(";", $v); foreach($values as $value) { $value = trim($value); $this_label = $label; $m = new \eol_schema\MeasurementOrFact(); $m->measurementOfTaxon = 'true'; if($this_label == 'Biogeographic Regions') { $qualification = null; if(preg_match("/^(.+) :: (.+)$/", $value, $arr)) { $value = $arr[1]; $qualification = $arr[2]; } $this_label = trim("$qualification range"); }elseif($this_label == 'Primary Diet') { if(preg_match("/ :: (.+)$/", $value, $arr)) $value = $arr[1]; } $occurrence = $this->add_occurrence($taxon, $value); $m->occurrenceID = $occurrence->occurrenceID; $m->measurementType = "http://adw.org/". SparqlClient::to_underscore($this_label); $m->measurementValue = "http://adw.org/". SparqlClient::to_underscore($value); $this->archive_builder->write_object_to_file($m); } } } } private function add_predators($line_data, $taxon) { if($v = trim($line_data[$this->column_indices['Known Predators']])) { $values = explode(";", $v); foreach($values as $key => $value) { $taxon_name = null; if(preg_match("/\(([A-Z][a-z]+( [a-z]+)?)\)/", trim($value), $arr)) $taxon_name = $arr[1]; elseif(preg_match("/(^| )([A-Z][a-z]+ [a-z]+)\)?$/", trim($value), $arr)) $taxon_name = $arr[2]; elseif(preg_match("/^([A-Z][a-z]+ [a-z]+) \(/", trim($value), $arr)) $taxon_name = $arr[1]; else continue; $occurrence = $this->add_occurrence($taxon, $taxon_name); $related_taxon = $this->add_taxon($taxon_name); $related_occurrence = $this->add_occurrence($related_taxon, $taxon->scientificName); $a = new \eol_schema\Association(); $a->occurrenceID = $occurrence->occurrenceID; $a->associationType = "http://adw.org/hasPredator"; $a->targetOccurrenceID = $related_occurrence->occurrenceID; $this->archive_builder->write_object_to_file($a); } } } } ?>
EOL/eol_php_code
lib/connectors/ADWDataConnector.php
PHP
mit
8,578
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\FrameworkBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\DefinitionDecorator; use Symfony\Component\DependencyInjection\Exception\LogicException; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; use Symfony\Component\Config\Resource\FileResource; use Symfony\Component\Config\Resource\DirectoryResource; use Symfony\Component\Finder\Finder; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\Config\FileLocator; use Symfony\Component\Validator\Validation; /** * FrameworkExtension. * * @author Fabien Potencier <fabien@symfony.com> * @author Jeremy Mikola <jmikola@gmail.com> */ class FrameworkExtension extends Extension { private $formConfigEnabled = false; private $sessionConfigEnabled = false; /** * Responds to the app.config configuration parameter. * * @param array $configs * @param ContainerBuilder $container * * @throws LogicException */ public function load(array $configs, ContainerBuilder $container) { $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); $loader->load('web.xml'); $loader->load('services.xml'); $loader->load('fragment_renderer.xml'); // A translator must always be registered (as support is included by // default in the Form component). If disabled, an identity translator // will be used and everything will still work as expected. $loader->load('translation.xml'); // Property access is used by both the Form and the Validator component $loader->load('property_access.xml'); $configuration = $this->getConfiguration($configs, $container); $config = $this->processConfiguration($configuration, $configs); if (isset($config['secret'])) { $container->setParameter('kernel.secret', $config['secret']); } $container->setParameter('kernel.http_method_override', $config['http_method_override']); $container->setParameter('kernel.trusted_hosts', $config['trusted_hosts']); $container->setParameter('kernel.trusted_proxies', $config['trusted_proxies']); $container->setParameter('kernel.default_locale', $config['default_locale']); if (!empty($config['test'])) { $loader->load('test.xml'); } if (isset($config['session'])) { $this->sessionConfigEnabled = true; $this->registerSessionConfiguration($config['session'], $container, $loader); } if (isset($config['request'])) { $this->registerRequestConfiguration($config['request'], $container, $loader); } $loader->load('security.xml'); if ($this->isConfigEnabled($container, $config['form'])) { $this->formConfigEnabled = true; $this->registerFormConfiguration($config, $container, $loader); $config['validation']['enabled'] = true; if (!class_exists('Symfony\Component\Validator\Validation')) { throw new LogicException('The Validator component is required to use the Form component.'); } if ($this->isConfigEnabled($container, $config['form']['csrf_protection'])) { $config['csrf_protection']['enabled'] = true; } } $this->registerSecurityCsrfConfiguration($config['csrf_protection'], $container, $loader); if (isset($config['assets'])) { $this->registerAssetsConfiguration($config['assets'], $container, $loader); } if (isset($config['templating'])) { $this->registerTemplatingConfiguration($config['templating'], $config['ide'], $container, $loader); } $this->registerValidationConfiguration($config['validation'], $container, $loader); $this->registerEsiConfiguration($config['esi'], $container, $loader); $this->registerSsiConfiguration($config['ssi'], $container, $loader); $this->registerFragmentsConfiguration($config['fragments'], $container, $loader); $this->registerProfilerConfiguration($config['profiler'], $container, $loader); $this->registerTranslatorConfiguration($config['translator'], $container); if (isset($config['router'])) { $this->registerRouterConfiguration($config['router'], $container, $loader); } $this->registerAnnotationsConfiguration($config['annotations'], $container, $loader); $this->registerPropertyAccessConfiguration($config['property_access'], $container); if (isset($config['serializer']) && $config['serializer']['enabled']) { $loader->load('serializer.xml'); } $loader->load('debug_prod.xml'); $definition = $container->findDefinition('debug.debug_handlers_listener'); if ($container->hasParameter('templating.helper.code.file_link_format')) { $definition->replaceArgument(5, '%templating.helper.code.file_link_format%'); } if ($container->getParameter('kernel.debug')) { $loader->load('debug.xml'); $definition = $container->findDefinition('http_kernel'); $definition->replaceArgument(2, new Reference('debug.controller_resolver')); // replace the regular event_dispatcher service with the debug one $definition = $container->findDefinition('event_dispatcher'); $definition->setPublic(false); $container->setDefinition('debug.event_dispatcher.parent', $definition); $container->setAlias('event_dispatcher', 'debug.event_dispatcher'); } else { $definition->replaceArgument(2, E_COMPILE_ERROR | E_PARSE | E_ERROR | E_CORE_ERROR); } $this->addClassesToCompile(array( 'Symfony\\Component\\Config\\FileLocator', 'Symfony\\Component\\Debug\\ErrorHandler', 'Symfony\\Component\\EventDispatcher\\Event', 'Symfony\\Component\\EventDispatcher\\ContainerAwareEventDispatcher', 'Symfony\\Component\\HttpKernel\\EventListener\\ResponseListener', 'Symfony\\Component\\HttpKernel\\EventListener\\RouterListener', 'Symfony\\Component\\HttpKernel\\Controller\\ControllerResolver', 'Symfony\\Component\\HttpKernel\\Event\\KernelEvent', 'Symfony\\Component\\HttpKernel\\Event\\FilterControllerEvent', 'Symfony\\Component\\HttpKernel\\Event\\FilterResponseEvent', 'Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent', 'Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent', 'Symfony\\Component\\HttpKernel\\Event\\GetResponseForExceptionEvent', 'Symfony\\Component\\HttpKernel\\KernelEvents', 'Symfony\\Component\\HttpKernel\\Config\\FileLocator', 'Symfony\\Bundle\\FrameworkBundle\\Controller\\ControllerNameParser', 'Symfony\\Bundle\\FrameworkBundle\\Controller\\ControllerResolver', // Cannot be included because annotations will parse the big compiled class file // 'Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller', )); } /** * {@inheritdoc} */ public function getConfiguration(array $config, ContainerBuilder $container) { return new Configuration($container->getParameter('kernel.debug')); } /** * Loads Form configuration. * * @param array $config A configuration array * @param ContainerBuilder $container A ContainerBuilder instance * @param XmlFileLoader $loader An XmlFileLoader instance * * @throws \LogicException */ private function registerFormConfiguration($config, ContainerBuilder $container, XmlFileLoader $loader) { $loader->load('form.xml'); if (null === $config['form']['csrf_protection']['enabled']) { $config['form']['csrf_protection']['enabled'] = $config['csrf_protection']['enabled']; } if ($this->isConfigEnabled($container, $config['form']['csrf_protection'])) { $loader->load('form_csrf.xml'); $container->setParameter('form.type_extension.csrf.enabled', true); if (null !== $config['form']['csrf_protection']['field_name']) { $container->setParameter('form.type_extension.csrf.field_name', $config['form']['csrf_protection']['field_name']); } else { $container->setParameter('form.type_extension.csrf.field_name', $config['csrf_protection']['field_name']); } } else { $container->setParameter('form.type_extension.csrf.enabled', false); } } /** * Loads the ESI configuration. * * @param array $config An ESI configuration array * @param ContainerBuilder $container A ContainerBuilder instance * @param XmlFileLoader $loader An XmlFileLoader instance */ private function registerEsiConfiguration(array $config, ContainerBuilder $container, XmlFileLoader $loader) { if (!$this->isConfigEnabled($container, $config)) { return; } $loader->load('esi.xml'); } /** * Loads the SSI configuration. * * @param array $config An SSI configuration array * @param ContainerBuilder $container A ContainerBuilder instance * @param XmlFileLoader $loader An XmlFileLoader instance */ private function registerSsiConfiguration(array $config, ContainerBuilder $container, XmlFileLoader $loader) { if (!$this->isConfigEnabled($container, $config)) { return; } $loader->load('ssi.xml'); } /** * Loads the fragments configuration. * * @param array $config A fragments configuration array * @param ContainerBuilder $container A ContainerBuilder instance * @param XmlFileLoader $loader An XmlFileLoader instance */ private function registerFragmentsConfiguration(array $config, ContainerBuilder $container, XmlFileLoader $loader) { if (!$this->isConfigEnabled($container, $config)) { return; } $loader->load('fragment_listener.xml'); $container->setParameter('fragment.path', $config['path']); } /** * Loads the profiler configuration. * * @param array $config A profiler configuration array * @param ContainerBuilder $container A ContainerBuilder instance * @param XmlFileLoader $loader An XmlFileLoader instance * * @throws \LogicException */ private function registerProfilerConfiguration(array $config, ContainerBuilder $container, XmlFileLoader $loader) { if (!$this->isConfigEnabled($container, $config)) { // this is needed for the WebProfiler to work even if the profiler is disabled $container->setParameter('data_collector.templates', array()); return; } $loader->load('profiling.xml'); $loader->load('collectors.xml'); if (true === $this->formConfigEnabled) { $loader->load('form_debug.xml'); } $container->setParameter('profiler_listener.only_exceptions', $config['only_exceptions']); $container->setParameter('profiler_listener.only_master_requests', $config['only_master_requests']); // Choose storage class based on the DSN $supported = array( 'sqlite' => 'Symfony\Component\HttpKernel\Profiler\SqliteProfilerStorage', 'mysql' => 'Symfony\Component\HttpKernel\Profiler\MysqlProfilerStorage', 'file' => 'Symfony\Component\HttpKernel\Profiler\FileProfilerStorage', 'mongodb' => 'Symfony\Component\HttpKernel\Profiler\MongoDbProfilerStorage', 'memcache' => 'Symfony\Component\HttpKernel\Profiler\MemcacheProfilerStorage', 'memcached' => 'Symfony\Component\HttpKernel\Profiler\MemcachedProfilerStorage', 'redis' => 'Symfony\Component\HttpKernel\Profiler\RedisProfilerStorage', ); list($class) = explode(':', $config['dsn'], 2); if (!isset($supported[$class])) { throw new \LogicException(sprintf('Driver "%s" is not supported for the profiler.', $class)); } $container->setParameter('profiler.storage.dsn', $config['dsn']); $container->setParameter('profiler.storage.username', $config['username']); $container->setParameter('profiler.storage.password', $config['password']); $container->setParameter('profiler.storage.lifetime', $config['lifetime']); $container->getDefinition('profiler.storage')->setClass($supported[$class]); if (isset($config['matcher'])) { if (isset($config['matcher']['service'])) { $container->setAlias('profiler.request_matcher', $config['matcher']['service']); } elseif (isset($config['matcher']['ip']) || isset($config['matcher']['path']) || isset($config['matcher']['ips'])) { $definition = $container->register('profiler.request_matcher', 'Symfony\\Component\\HttpFoundation\\RequestMatcher'); $definition->setPublic(false); if (isset($config['matcher']['ip'])) { $definition->addMethodCall('matchIp', array($config['matcher']['ip'])); } if (isset($config['matcher']['ips'])) { $definition->addMethodCall('matchIps', array($config['matcher']['ips'])); } if (isset($config['matcher']['path'])) { $definition->addMethodCall('matchPath', array($config['matcher']['path'])); } } } if (!$config['collect']) { $container->getDefinition('profiler')->addMethodCall('disable', array()); } } /** * Loads the router configuration. * * @param array $config A router configuration array * @param ContainerBuilder $container A ContainerBuilder instance * @param XmlFileLoader $loader An XmlFileLoader instance */ private function registerRouterConfiguration(array $config, ContainerBuilder $container, XmlFileLoader $loader) { $loader->load('routing.xml'); $container->setParameter('router.resource', $config['resource']); $container->setParameter('router.cache_class_prefix', $container->getParameter('kernel.name').ucfirst($container->getParameter('kernel.environment'))); $router = $container->findDefinition('router.default'); $argument = $router->getArgument(2); $argument['strict_requirements'] = $config['strict_requirements']; if (isset($config['type'])) { $argument['resource_type'] = $config['type']; } $router->replaceArgument(2, $argument); $container->setParameter('request_listener.http_port', $config['http_port']); $container->setParameter('request_listener.https_port', $config['https_port']); $this->addClassesToCompile(array( 'Symfony\\Component\\Routing\\Generator\\UrlGenerator', 'Symfony\\Component\\Routing\\RequestContext', 'Symfony\\Component\\Routing\\Router', 'Symfony\\Bundle\\FrameworkBundle\\Routing\\RedirectableUrlMatcher', $container->findDefinition('router.default')->getClass(), )); } /** * Loads the session configuration. * * @param array $config A session configuration array * @param ContainerBuilder $container A ContainerBuilder instance * @param XmlFileLoader $loader An XmlFileLoader instance */ private function registerSessionConfiguration(array $config, ContainerBuilder $container, XmlFileLoader $loader) { $loader->load('session.xml'); // session storage $container->setAlias('session.storage', $config['storage_id']); $options = array(); foreach (array('name', 'cookie_lifetime', 'cookie_path', 'cookie_domain', 'cookie_secure', 'cookie_httponly', 'gc_maxlifetime', 'gc_probability', 'gc_divisor') as $key) { if (isset($config[$key])) { $options[$key] = $config[$key]; } } $container->setParameter('session.storage.options', $options); // session handler (the internal callback registered with PHP session management) if (null === $config['handler_id']) { // Set the handler class to be null $container->getDefinition('session.storage.native')->replaceArgument(1, null); $container->getDefinition('session.storage.php_bridge')->replaceArgument(0, null); } else { $handlerId = $config['handler_id']; if ($config['metadata_update_threshold'] > 0) { $container->getDefinition('session.handler.write_check')->addArgument(new Reference($handlerId)); $handlerId = 'session.handler.write_check'; } $container->setAlias('session.handler', $handlerId); } $container->setParameter('session.save_path', $config['save_path']); $this->addClassesToCompile(array( 'Symfony\\Bundle\\FrameworkBundle\\EventListener\\SessionListener', 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\NativeSessionStorage', 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\PhpBridgeSessionStorage', 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\NativeFileSessionHandler', 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\Proxy\\AbstractProxy', 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\Proxy\\SessionHandlerProxy', $container->getDefinition('session')->getClass(), )); if ($container->hasDefinition($config['storage_id'])) { $this->addClassesToCompile(array( $container->findDefinition('session.storage')->getClass(), )); } $container->setParameter('session.metadata.update_threshold', $config['metadata_update_threshold']); } /** * Loads the request configuration. * * @param array $config A session configuration array * @param ContainerBuilder $container A ContainerBuilder instance * @param XmlFileLoader $loader An XmlFileLoader instance */ private function registerRequestConfiguration(array $config, ContainerBuilder $container, XmlFileLoader $loader) { if ($config['formats']) { $loader->load('request.xml'); $container ->getDefinition('request.add_request_formats_listener') ->replaceArgument(0, $config['formats']) ; } } /** * Loads the templating configuration. * * @param array $config A templating configuration array * @param string $ide * @param ContainerBuilder $container A ContainerBuilder instance * @param XmlFileLoader $loader An XmlFileLoader instance */ private function registerTemplatingConfiguration(array $config, $ide, ContainerBuilder $container, XmlFileLoader $loader) { $loader->load('templating.xml'); $links = array( 'textmate' => 'txmt://open?url=file://%%f&line=%%l', 'macvim' => 'mvim://open?url=file://%%f&line=%%l', 'emacs' => 'emacs://open?url=file://%%f&line=%%l', 'sublime' => 'subl://open?url=file://%%f&line=%%l', ); $container->setParameter('templating.helper.code.file_link_format', isset($links[$ide]) ? $links[$ide] : $ide); $container->setParameter('fragment.renderer.hinclude.global_template', $config['hinclude_default_template']); if ($container->getParameter('kernel.debug')) { $logger = new Reference('logger', ContainerInterface::IGNORE_ON_INVALID_REFERENCE); $container->getDefinition('templating.loader.cache') ->addTag('monolog.logger', array('channel' => 'templating')) ->addMethodCall('setLogger', array($logger)); $container->getDefinition('templating.loader.chain') ->addTag('monolog.logger', array('channel' => 'templating')) ->addMethodCall('setLogger', array($logger)); } if (!empty($config['loaders'])) { $loaders = array_map(function ($loader) { return new Reference($loader); }, $config['loaders']); // Use a delegation unless only a single loader was registered if (1 === count($loaders)) { $container->setAlias('templating.loader', (string) reset($loaders)); } else { $container->getDefinition('templating.loader.chain')->addArgument($loaders); $container->setAlias('templating.loader', 'templating.loader.chain'); } } $container->setParameter('templating.loader.cache.path', null); if (isset($config['cache'])) { // Wrap the existing loader with cache (must happen after loaders are registered) $container->setDefinition('templating.loader.wrapped', $container->findDefinition('templating.loader')); $loaderCache = $container->getDefinition('templating.loader.cache'); $container->setParameter('templating.loader.cache.path', $config['cache']); $container->setDefinition('templating.loader', $loaderCache); } $this->addClassesToCompile(array( 'Symfony\\Bundle\\FrameworkBundle\\Templating\\GlobalVariables', 'Symfony\\Bundle\\FrameworkBundle\\Templating\\TemplateReference', 'Symfony\\Bundle\\FrameworkBundle\\Templating\\TemplateNameParser', $container->findDefinition('templating.locator')->getClass(), )); $container->setParameter('templating.engines', $config['engines']); $engines = array_map(function ($engine) { return new Reference('templating.engine.'.$engine); }, $config['engines']); // Use a delegation unless only a single engine was registered if (1 === count($engines)) { $container->setAlias('templating', (string) reset($engines)); } else { foreach ($engines as $engine) { $container->getDefinition('templating.engine.delegating')->addMethodCall('addEngine', array($engine)); } $container->setAlias('templating', 'templating.engine.delegating'); } $container->getDefinition('fragment.renderer.hinclude') ->addTag('kernel.fragment_renderer', array('alias' => 'hinclude')) ->replaceArgument(0, new Reference('templating')) ; // configure the PHP engine if needed if (in_array('php', $config['engines'], true)) { $loader->load('templating_php.xml'); $container->setParameter('templating.helper.form.resources', $config['form']['resources']); if ($container->getParameter('kernel.debug')) { $loader->load('templating_debug.xml'); $container->setDefinition('templating.engine.php', $container->findDefinition('debug.templating.engine.php')); $container->setAlias('debug.templating.engine.php', 'templating.engine.php'); } $this->addClassesToCompile(array( 'Symfony\\Component\\Templating\\Storage\\FileStorage', 'Symfony\\Bundle\\FrameworkBundle\\Templating\\PhpEngine', 'Symfony\\Bundle\\FrameworkBundle\\Templating\\Loader\\FilesystemLoader', )); } } /** * Loads the assets configuration. * * @param array $config A assets configuration array * @param ContainerBuilder $container A ContainerBuilder instance * @param XmlFileLoader $loader An XmlFileLoader instance */ private function registerAssetsConfiguration(array $config, ContainerBuilder $container, XmlFileLoader $loader) { $loader->load('assets.xml'); $defaultVersion = $this->createVersion($container, $config['version'], $config['version_format'], '_default'); $defaultPackage = $this->createPackageDefinition($config['base_path'], $config['base_urls'], $defaultVersion); $container->setDefinition('assets._default_package', $defaultPackage); $namedPackages = array(); foreach ($config['packages'] as $name => $package) { if (null === $package['version']) { $version = $defaultVersion; } else { $format = $package['version_format'] ?: $config['version_format']; $version = $this->createVersion($container, $package['version'], $format, $name); } $container->setDefinition('assets._package_'.$name, $this->createPackageDefinition($package['base_path'], $package['base_urls'], $version)); $namedPackages[$name] = new Reference('assets._package_'.$name); } $container->getDefinition('assets.packages') ->replaceArgument(0, new Reference('assets._default_package')) ->replaceArgument(1, $namedPackages) ; } /** * Returns a definition for an asset package. */ private function createPackageDefinition($basePath, array $baseUrls, Reference $version) { if ($basePath && $baseUrls) { throw new \LogicException('An asset package cannot have base URLs and base paths.'); } if (!$baseUrls) { $package = new DefinitionDecorator('assets.path_package'); return $package ->setPublic(false) ->replaceArgument(0, $basePath) ->replaceArgument(1, $version) ; } $package = new DefinitionDecorator('assets.url_package'); return $package ->setPublic(false) ->replaceArgument(0, $baseUrls) ->replaceArgument(1, $version) ; } private function createVersion(ContainerBuilder $container, $version, $format, $name) { if (null === $version) { return new Reference('assets.empty_version_strategy'); } $def = new DefinitionDecorator('assets.static_version_strategy'); $def ->replaceArgument(0, $version) ->replaceArgument(1, $format) ; $container->setDefinition('assets._version_'.$name, $def); return new Reference('assets._version_'.$name); } /** * Loads the translator configuration. * * @param array $config A translator configuration array * @param ContainerBuilder $container A ContainerBuilder instance */ private function registerTranslatorConfiguration(array $config, ContainerBuilder $container) { if (!$this->isConfigEnabled($container, $config)) { return; } // Use the "real" translator instead of the identity default $container->setAlias('translator', 'translator.default'); $translator = $container->findDefinition('translator.default'); $translator->addMethodCall('setFallbackLocales', array($config['fallbacks'])); $container->setParameter('translator.logging', $config['logging']); // Discover translation directories $dirs = array(); if (class_exists('Symfony\Component\Validator\Validation')) { $r = new \ReflectionClass('Symfony\Component\Validator\Validation'); $dirs[] = dirname($r->getFilename()).'/Resources/translations'; } if (class_exists('Symfony\Component\Form\Form')) { $r = new \ReflectionClass('Symfony\Component\Form\Form'); $dirs[] = dirname($r->getFilename()).'/Resources/translations'; } if (class_exists('Symfony\Component\Security\Core\Exception\AuthenticationException')) { $r = new \ReflectionClass('Symfony\Component\Security\Core\Exception\AuthenticationException'); $dirs[] = dirname($r->getFilename()).'/../Resources/translations'; } $overridePath = $container->getParameter('kernel.root_dir').'/Resources/%s/translations'; foreach ($container->getParameter('kernel.bundles') as $bundle => $class) { $reflection = new \ReflectionClass($class); if (is_dir($dir = dirname($reflection->getFilename()).'/Resources/translations')) { $dirs[] = $dir; } if (is_dir($dir = sprintf($overridePath, $bundle))) { $dirs[] = $dir; } } if (is_dir($dir = $container->getParameter('kernel.root_dir').'/Resources/translations')) { $dirs[] = $dir; } // Register translation resources if ($dirs) { foreach ($dirs as $dir) { $container->addResource(new DirectoryResource($dir)); } $files = array(); $finder = Finder::create() ->files() ->filter(function (\SplFileInfo $file) { return 2 === substr_count($file->getBasename(), '.') && preg_match('/\.\w+$/', $file->getBasename()); }) ->in($dirs) ; foreach ($finder as $file) { list($domain, $locale, $format) = explode('.', $file->getBasename(), 3); if (!isset($files[$locale])) { $files[$locale] = array(); } $files[$locale][] = (string) $file; } $translator->replaceArgument(4, $files); } } /** * Loads the validator configuration. * * @param array $config A validation configuration array * @param ContainerBuilder $container A ContainerBuilder instance * @param XmlFileLoader $loader An XmlFileLoader instance */ private function registerValidationConfiguration(array $config, ContainerBuilder $container, XmlFileLoader $loader) { if (!$this->isConfigEnabled($container, $config)) { return; } $loader->load('validator.xml'); $validatorBuilder = $container->getDefinition('validator.builder'); $container->setParameter('validator.translation_domain', $config['translation_domain']); list($xmlMappings, $yamlMappings) = $this->getValidatorMappingFiles($container); if (count($xmlMappings) > 0) { $validatorBuilder->addMethodCall('addXmlMappings', array($xmlMappings)); } if (count($yamlMappings) > 0) { $validatorBuilder->addMethodCall('addYamlMappings', array($yamlMappings)); } $definition = $container->findDefinition('validator.email'); $definition->replaceArgument(0, $config['strict_email']); if (array_key_exists('enable_annotations', $config) && $config['enable_annotations']) { $validatorBuilder->addMethodCall('enableAnnotationMapping', array(new Reference('annotation_reader'))); } if (array_key_exists('static_method', $config) && $config['static_method']) { foreach ($config['static_method'] as $methodName) { $validatorBuilder->addMethodCall('addMethodMapping', array($methodName)); } } if (isset($config['cache'])) { $container->setParameter( 'validator.mapping.cache.prefix', 'validator_'.hash('sha256', $container->getParameter('kernel.root_dir')) ); $validatorBuilder->addMethodCall('setMetadataCache', array(new Reference($config['cache']))); } if ('2.5' === $config['api']) { $api = Validation::API_VERSION_2_5; } else { // 2.4 is now the same as 2.5 BC $api = Validation::API_VERSION_2_5_BC; // the validation class needs to be changed for BC $container->setParameter('validator.class', 'Symfony\Component\Validator\ValidatorInterface'); } $validatorBuilder->addMethodCall('setApiVersion', array($api)); // You can use this parameter to check the API version in your own // bundle extension classes $container->setParameter('validator.api', $api); } private function getValidatorMappingFiles(ContainerBuilder $container) { $files = array(array(), array()); if (interface_exists('Symfony\Component\Form\FormInterface')) { $reflClass = new \ReflectionClass('Symfony\Component\Form\FormInterface'); $files[0][] = dirname($reflClass->getFileName()).'/Resources/config/validation.xml'; $container->addResource(new FileResource($files[0][0])); } $bundles = $container->getParameter('kernel.bundles'); foreach ($bundles as $bundle) { $reflection = new \ReflectionClass($bundle); $dirname = dirname($reflection->getFilename()); if (is_file($file = $dirname.'/Resources/config/validation.xml')) { $files[0][] = realpath($file); $container->addResource(new FileResource($file)); } if (is_file($file = $dirname.'/Resources/config/validation.yml')) { $files[1][] = realpath($file); $container->addResource(new FileResource($file)); } if (is_dir($dir = $dirname.'/Resources/config/validation')) { foreach (Finder::create()->files()->in($dir)->name('*.xml') as $file) { $files[0][] = $file->getRealpath(); } foreach (Finder::create()->files()->in($dir)->name('*.yml') as $file) { $files[1][] = $file->getRealpath(); } $container->addResource(new DirectoryResource($dir)); } } return $files; } private function registerAnnotationsConfiguration(array $config, ContainerBuilder $container, $loader) { $loader->load('annotations.xml'); if ('file' === $config['cache']) { $cacheDir = $container->getParameterBag()->resolveValue($config['file_cache_dir']); if (!is_dir($cacheDir) && false === @mkdir($cacheDir, 0777, true) && !is_dir($cacheDir)) { throw new \RuntimeException(sprintf('Could not create cache directory "%s".', $cacheDir)); } $container ->getDefinition('annotations.file_cache_reader') ->replaceArgument(1, $cacheDir) ->replaceArgument(2, $config['debug']) ; $container->setAlias('annotation_reader', 'annotations.file_cache_reader'); } elseif ('none' !== $config['cache']) { $container ->getDefinition('annotations.cached_reader') ->replaceArgument(1, new Reference($config['cache'])) ->replaceArgument(2, $config['debug']) ; $container->setAlias('annotation_reader', 'annotations.cached_reader'); } } private function registerPropertyAccessConfiguration(array $config, ContainerBuilder $container) { $container ->getDefinition('property_accessor') ->replaceArgument(0, $config['magic_call']) ->replaceArgument(1, $config['throw_exception_on_invalid_index']) ; } /** * Loads the security configuration. * * @param array $config A CSRF configuration array * @param ContainerBuilder $container A ContainerBuilder instance * @param XmlFileLoader $loader An XmlFileLoader instance * * @throws \LogicException */ private function registerSecurityCsrfConfiguration(array $config, ContainerBuilder $container, XmlFileLoader $loader) { if (!$this->isConfigEnabled($container, $config)) { return; } if (!$this->sessionConfigEnabled) { throw new \LogicException('CSRF protection needs sessions to be enabled.'); } // Enable services for CSRF protection (even without forms) $loader->load('security_csrf.xml'); } /** * Returns the base path for the XSD files. * * @return string The XSD base path */ public function getXsdValidationBasePath() { return __DIR__.'/../Resources/config/schema'; } public function getNamespace() { return 'http://symfony.com/schema/dic/symfony'; } }
vith/symfony
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
PHP
mit
37,393
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.13"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>cpp_redis: cpp_redis::client::command_request Struct Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectlogo"><img alt="Logo" src="cpp_redis_logo.jpg"/></td> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">cpp_redis &#160;<span id="projectnumber">4.0.0</span> </div> <div id="projectbrief">cpp_redis is a C++11 Asynchronous Multi-Platform Lightweight Redis Client, with support for synchronous operations and pipelining.</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.13 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> $(function() { initMenu('',true,false,'search.php','Search'); $(document).ready(function() { init_search(); }); }); </script> <div id="main-nav"></div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespacecpp__redis.html">cpp_redis</a></li><li class="navelem"><a class="el" href="classcpp__redis_1_1client.html">client</a></li><li class="navelem"><a class="el" href="structcpp__redis_1_1client_1_1command__request.html">command_request</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-attribs">Public Attributes</a> &#124; <a href="structcpp__redis_1_1client_1_1command__request-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">cpp_redis::client::command_request Struct Reference</div> </div> </div><!--header--> <div class="contents"> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a> Public Attributes</h2></td></tr> <tr class="memitem:ab39da4631d0385a62d02cf8e123dcb14"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcpp__redis_1_1client_1_1command__request.html#ab39da4631d0385a62d02cf8e123dcb14">command</a></td></tr> <tr class="separator:ab39da4631d0385a62d02cf8e123dcb14"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ac124129fd002703955032bdd8905c387"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcpp__redis_1_1client.html#a061a1140d36d2eaeda82b09a0bb3f9f2">reply_callback_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcpp__redis_1_1client_1_1command__request.html#ac124129fd002703955032bdd8905c387">callback</a></td></tr> <tr class="separator:ac124129fd002703955032bdd8905c387"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>struct to store commands information (command to be sent and callback to be called) </p> </div><h2 class="groupheader">Member Data Documentation</h2> <a id="ac124129fd002703955032bdd8905c387"></a> <h2 class="memtitle"><span class="permalink"><a href="#ac124129fd002703955032bdd8905c387">&#9670;&nbsp;</a></span>callback</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classcpp__redis_1_1client.html#a061a1140d36d2eaeda82b09a0bb3f9f2">reply_callback_t</a> cpp_redis::client::command_request::callback</td> </tr> </table> </div><div class="memdoc"> </div> </div> <a id="ab39da4631d0385a62d02cf8e123dcb14"></a> <h2 class="memtitle"><span class="permalink"><a href="#ab39da4631d0385a62d02cf8e123dcb14">&#9670;&nbsp;</a></span>command</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::vector&lt;std::string&gt; cpp_redis::client::command_request::command</td> </tr> </table> </div><div class="memdoc"> </div> </div> <hr/>The documentation for this struct was generated from the following file:<ul> <li>includes/cpp_redis/core/<a class="el" href="client_8hpp_source.html">client.hpp</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by &#160;<a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.13 </small></address> </body> </html>
eliteYang/cpp_redis
docs/html/structcpp__redis_1_1client_1_1command__request.html
HTML
mit
5,960
// // XLButtonBarView.m // XLPagerTabStrip ( https://github.com/xmartlabs/XLPagerTabStrip ) // // Copyright (c) 2015 Xmartlabs ( http://xmartlabs.com ) // // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. #import "XLButtonBarView.h" @interface XLButtonBarView () @property XLSelectedBarView * selectedBar; @property NSUInteger selectedOptionIndex; @end @implementation XLButtonBarView - (instancetype)initWithCoder:(NSCoder *)coder { self = [super initWithCoder:coder]; if (self) { [self initializeXLButtonBarView]; } return self; } - (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { [self initializeXLButtonBarView]; } return self; } - (instancetype)initWithFrame:(CGRect)frame collectionViewLayout:(UICollectionViewLayout *)layout { self = [super initWithFrame:frame collectionViewLayout:layout]; if (self) { [self initializeXLButtonBarView]; } return self; } -(void)initializeXLButtonBarView { _selectedOptionIndex = 0; _selectedBarHeight = 5; if ([self.selectedBar superview] == nil){ [self addSubview:self.selectedBar]; } } -(void)moveToIndex:(NSUInteger)index animated:(BOOL)animated swipeDirection:(XLPagerTabStripDirection)swipeDirection pagerScroll:(XLPagerScroll)pagerScroll { self.selectedOptionIndex = index; [self updateSelectedBarPositionWithAnimation:animated swipeDirection:swipeDirection pagerScroll:pagerScroll]; } -(void)moveFromIndex:(NSInteger)fromIndex toIndex:(NSInteger)toIndex withProgressPercentage:(CGFloat)progressPercentage pagerScroll:(XLPagerScroll)pagerScroll { // First, calculate and set the frame of the 'selectedBar' self.selectedOptionIndex = (progressPercentage > 0.5 ) ? toIndex : fromIndex; CGRect fromFrame = [self layoutAttributesForItemAtIndexPath:[NSIndexPath indexPathForItem:fromIndex inSection:0]].frame; NSInteger numberOfItems = [self.dataSource collectionView:self numberOfItemsInSection:0]; CGRect toFrame; if (toIndex < 0 || toIndex > numberOfItems - 1){ if (toIndex < 0) { UICollectionViewLayoutAttributes * cellAtts = [self layoutAttributesForItemAtIndexPath:[NSIndexPath indexPathForItem:0 inSection:0]]; toFrame = CGRectOffset(cellAtts.frame, -cellAtts.frame.size.width, 0); } else{ UICollectionViewLayoutAttributes * cellAtts = [self layoutAttributesForItemAtIndexPath:[NSIndexPath indexPathForItem:(numberOfItems - 1) inSection:0]]; toFrame = CGRectOffset(cellAtts.frame, cellAtts.frame.size.width, 0); } } else{ toFrame = [self layoutAttributesForItemAtIndexPath:[NSIndexPath indexPathForItem:toIndex inSection:0]].frame; } CGRect targetFrame = fromFrame; targetFrame.size.height = self.selectedBar.frame.size.height; targetFrame.size.width += (toFrame.size.width - fromFrame.size.width) * progressPercentage; targetFrame.origin.x += (toFrame.origin.x - fromFrame.origin.x) * progressPercentage; self.selectedBar.frame = CGRectMake(targetFrame.origin.x, self.frame.size.height - _selectedBarHeight, targetFrame.size.width, self.selectedBar.frame.size.height); // Next, calculate and set the contentOffset of the UICollectionView // (so it scrolls the selectedBar into the appriopriate place given the self.selectedBarAlignment) float targetContentOffset = 0; // Only bother calculating the contentOffset if there are sufficient tabs that the bar can actually scroll! if (self.contentSize.width > self.frame.size.width) { CGFloat toContentOffset = [self contentOffsetForCellWithFrame:toFrame index:toIndex]; CGFloat fromContentOffset = [self contentOffsetForCellWithFrame:fromFrame index:fromIndex]; targetContentOffset = fromContentOffset + ((toContentOffset - fromContentOffset) * progressPercentage); } // If there is a large difference between the current contentOffset and the contentOffset we're about to set // then the change might be visually jarring so animate it. (This will likely occur if the user manually // scrolled the XLButtonBarView and then subsequently scrolled the UIPageViewController) // Alternatively if the fromIndex and toIndex are the same then this is the last call to this method in the // progression so as a precaution always animate this contentOffest change BOOL animated = (ABS(self.contentOffset.x - targetContentOffset) > 30) || (fromIndex == toIndex); [self setContentOffset:CGPointMake(targetContentOffset, 0) animated:animated]; } -(void)updateSelectedBarPositionWithAnimation:(BOOL)animation swipeDirection:(XLPagerTabStripDirection __unused)swipeDirection pagerScroll:(XLPagerScroll)pagerScroll { CGRect selectedBarFrame = self.selectedBar.frame; NSIndexPath *selectedCellIndexPath = [NSIndexPath indexPathForItem:self.selectedOptionIndex inSection:0]; UICollectionViewLayoutAttributes *attributes = [self layoutAttributesForItemAtIndexPath:selectedCellIndexPath]; CGRect selectedCellFrame = attributes.frame; [self updateContentOffsetAnimated:animation pagerScroll:pagerScroll toFrame:selectedCellFrame toIndex:selectedCellIndexPath.row]; selectedBarFrame.size.width = selectedCellFrame.size.width; selectedBarFrame.origin.x = selectedCellFrame.origin.x; selectedBarFrame.origin.y = self.frame.size.height - _selectedBarHeight; if (animation){ [self.selectedBar layoutIfNeeded]; [UIView animateWithDuration:0.3 animations:^{ [self.selectedBar setFrame:selectedBarFrame]; [self.selectedBar layoutIfNeeded]; }]; } else{ self.selectedBar.frame = selectedBarFrame; } } #pragma mark - Helpers - (void)updateContentOffsetAnimated:(BOOL)animated pagerScroll:(XLPagerScroll)pageScroller toFrame:(CGRect)selectedCellFrame toIndex:(NSUInteger)toIndex { if (pageScroller != XLPagerScrollNO) { if (pageScroller == XLPagerScrollOnlyIfOutOfScreen) { if ((selectedCellFrame.origin.x >= self.contentOffset.x) && (selectedCellFrame.origin.x < (self.contentOffset.x + self.frame.size.width - self.contentInset.left))){ return; } } CGFloat targetContentOffset = 0; // Only bother calculating the contentOffset if there are sufficient tabs that the bar can actually scroll! if (self.contentSize.width > self.frame.size.width) { targetContentOffset = [self contentOffsetForCellWithFrame:selectedCellFrame index:toIndex]; } [self setContentOffset:CGPointMake(targetContentOffset, 0) animated:animated]; } } - (CGFloat)contentOffsetForCellWithFrame:(CGRect)cellFrame index:(NSUInteger)index { UIEdgeInsets sectionInset = ((UICollectionViewFlowLayout *)self.collectionViewLayout).sectionInset; CGFloat alignmentOffset = 0; switch (self.selectedBarAlignment) { case XLSelectedBarAlignmentLeft: { alignmentOffset = sectionInset.left; break; } case XLSelectedBarAlignmentRight: { alignmentOffset = self.frame.size.width - sectionInset.right - cellFrame.size.width; break; } case XLSelectedBarAlignmentCenter: { alignmentOffset = (self.frame.size.width - cellFrame.size.width) * 0.5; break; } case XLSelectedBarAlignmentProgressive: { CGFloat cellHalfWidth = cellFrame.size.width * 0.5; CGFloat leftAlignmentOffest = sectionInset.left + cellHalfWidth; CGFloat rightAlignmentOffset = self.frame.size.width - sectionInset.right - cellHalfWidth; NSInteger numberOfItems = [self.dataSource collectionView:self numberOfItemsInSection:0]; CGFloat progress = index / (CGFloat)(numberOfItems - 1); alignmentOffset = leftAlignmentOffest + ((rightAlignmentOffset - leftAlignmentOffest) * progress) - cellHalfWidth; break; } } CGFloat contentOffset = cellFrame.origin.x - alignmentOffset; // Ensure that the contentOffset wouldn't scroll the UICollectioView passed the beginning contentOffset = MAX(0, contentOffset); // Ensure that the contentOffset wouldn't scroll the UICollectioView passed the end contentOffset = MIN(self.contentSize.width - self.frame.size.width, contentOffset); return contentOffset; } #pragma mark - Properties - (void)setSelectedBarHeight:(CGFloat)selectedBarHeight { _selectedBarHeight = selectedBarHeight; _selectedBar.frame = CGRectMake(_selectedBar.frame.origin.x, self.frame.size.height - _selectedBarHeight, _selectedBar.frame.size.width, _selectedBarHeight); } - (void)setSelectedBarImage:(UIImage *)image { _selectedBar.imageView.image = image; } -(UIView *)selectedBar { if (_selectedBar) return _selectedBar; _selectedBar = [[XLSelectedBarView alloc] initWithFrame:CGRectMake(0, self.frame.size.height - _selectedBarHeight, 0, _selectedBarHeight)]; _selectedBar.layer.zPosition = 9999; _selectedBar.backgroundColor = [UIColor blackColor]; return _selectedBar; } @end
AnthonyMDev/XLPagerTabStrip
XLPagerTabStrip/XL/Views/XLButtonBarView.m
Matlab
mit
10,396
using System; namespace Umbraco.Cms.Core.Collections { /// <summary> /// Represents a composite key of (string, string) for fast dictionaries. /// </summary> /// <remarks> /// <para>The string parts of the key are case-insensitive.</para> /// <para>Null is NOT a valid value for neither parts.</para> /// </remarks> public struct CompositeStringStringKey : IEquatable<CompositeStringStringKey> { private readonly string _key1; private readonly string _key2; /// <summary> /// Initializes a new instance of the <see cref="CompositeStringStringKey"/> struct. /// </summary> public CompositeStringStringKey(string key1, string key2) { _key1 = key1?.ToLowerInvariant() ?? throw new ArgumentNullException(nameof(key1)); _key2 = key2?.ToLowerInvariant() ?? throw new ArgumentNullException(nameof(key2)); } public bool Equals(CompositeStringStringKey other) => _key2 == other._key2 && _key1 == other._key1; public override bool Equals(object obj) => obj is CompositeStringStringKey other && _key2 == other._key2 && _key1 == other._key1; public override int GetHashCode() => _key2.GetHashCode() * 31 + _key1.GetHashCode(); public static bool operator ==(CompositeStringStringKey key1, CompositeStringStringKey key2) => key1._key2 == key2._key2 && key1._key1 == key2._key1; public static bool operator !=(CompositeStringStringKey key1, CompositeStringStringKey key2) => key1._key2 != key2._key2 || key1._key1 != key2._key1; } }
umbraco/Umbraco-CMS
src/Umbraco.Core/Collections/CompositeStringStringKey.cs
C#
mit
1,657
<?php /* * jQuery File Upload Plugin PHP Class * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2010, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ class UploadHandler { protected $options; // PHP File Upload error message codes: // http://php.net/manual/en/features.file-upload.errors.php protected $error_messages = array( 1 => 'The uploaded file exceeds the upload_max_filesize directive in php.ini', 2 => 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form', 3 => 'The uploaded file was only partially uploaded', 4 => 'No file was uploaded', 6 => 'Missing a temporary folder', 7 => 'Failed to write file to disk', 8 => 'A PHP extension stopped the file upload', 'post_max_size' => 'The uploaded file exceeds the post_max_size directive in php.ini', 'max_file_size' => 'File is too big', 'min_file_size' => 'File is too small', 'accept_file_types' => 'Filetype not allowed', 'max_number_of_files' => 'Maximum number of files exceeded', 'max_width' => 'Image exceeds maximum width', 'min_width' => 'Image requires a minimum width', 'max_height' => 'Image exceeds maximum height', 'min_height' => 'Image requires a minimum height', 'abort' => 'File upload aborted', 'image_resize' => 'Failed to resize image' ); protected $image_objects = array(); function __construct($options = null, $initialize = true, $error_messages = null) { $this->response = array(); $this->options = array( 'script_url' => $this->get_full_url().'/'.basename($this->get_server_var('SCRIPT_NAME')), 'upload_dir' => dirname($this->get_server_var('SCRIPT_FILENAME')).'/files/', 'upload_url' => $this->get_full_url().'/files/', 'user_dirs' => false, 'mkdir_mode' => 0755, 'param_name' => 'files', // Set the following option to 'POST', if your server does not support // DELETE requests. This is a parameter sent to the client: 'delete_type' => 'DELETE', 'access_control_allow_origin' => '*', 'access_control_allow_credentials' => false, 'access_control_allow_methods' => array( 'OPTIONS', 'HEAD', 'GET', 'POST', 'PUT', 'PATCH', 'DELETE' ), 'access_control_allow_headers' => array( 'Content-Type', 'Content-Range', 'Content-Disposition' ), // By default, allow redirects to the referer protocol+host: 'redirect_allow_target' => '/^'.preg_quote( parse_url($this->get_server_var('HTTP_REFERER'), PHP_URL_SCHEME) .'://' .parse_url($this->get_server_var('HTTP_REFERER'), PHP_URL_HOST) .'/', // Trailing slash to not match subdomains by mistake '/' // preg_quote delimiter param ).'/', // Enable to provide file downloads via GET requests to the PHP script: // 1. Set to 1 to download files via readfile method through PHP // 2. Set to 2 to send a X-Sendfile header for lighttpd/Apache // 3. Set to 3 to send a X-Accel-Redirect header for nginx // If set to 2 or 3, adjust the upload_url option to the base path of // the redirect parameter, e.g. '/files/'. 'download_via_php' => false, // Read files in chunks to avoid memory limits when download_via_php // is enabled, set to 0 to disable chunked reading of files: 'readfile_chunk_size' => 10 * 1024 * 1024, // 10 MiB // Defines which files can be displayed inline when downloaded: 'inline_file_types' => '/\.(gif|jpe?g|png)$/i', // Defines which files (based on their names) are accepted for upload: 'accept_file_types' => '/.+$/i', // The php.ini settings upload_max_filesize and post_max_size // take precedence over the following max_file_size setting: 'max_file_size' => null, 'min_file_size' => 1, // The maximum number of files for the upload directory: 'max_number_of_files' => null, // Defines which files are handled as image files: 'image_file_types' => '/\.(gif|jpe?g|png)$/i', // Use exif_imagetype on all files to correct file extensions: 'correct_image_extensions' => false, // Image resolution restrictions: 'max_width' => null, 'max_height' => null, 'min_width' => 1, 'min_height' => 1, // Set the following option to false to enable resumable uploads: 'discard_aborted_uploads' => true, // Set to 0 to use the GD library to scale and orient images, // set to 1 to use imagick (if installed, falls back to GD), // set to 2 to use the ImageMagick convert binary directly: 'image_library' => 1, // Uncomment the following to define an array of resource limits // for imagick: /* 'imagick_resource_limits' => array( imagick::RESOURCETYPE_MAP => 32, imagick::RESOURCETYPE_MEMORY => 32 ), */ // Command or path for to the ImageMagick convert binary: 'convert_bin' => 'convert', // Uncomment the following to add parameters in front of each // ImageMagick convert call (the limit constraints seem only // to have an effect if put in front): /* 'convert_params' => '-limit memory 32MiB -limit map 32MiB', */ // Command or path for to the ImageMagick identify binary: 'identify_bin' => 'identify', 'image_versions' => array( // The empty image version key defines options for the original image: '' => array( // Automatically rotate images based on EXIF meta data: 'auto_orient' => true ), // Uncomment the following to create medium sized images: /* 'medium' => array( 'max_width' => 800, 'max_height' => 600 ), */ 'thumbnail' => array( // Uncomment the following to use a defined directory for the thumbnails // instead of a subdirectory based on the version identifier. // Make sure that this directory doesn't allow execution of files if you // don't pose any restrictions on the type of uploaded files, e.g. by // copying the .htaccess file from the files directory for Apache: //'upload_dir' => dirname($this->get_server_var('SCRIPT_FILENAME')).'/thumb/', //'upload_url' => $this->get_full_url().'/thumb/', // Uncomment the following to force the max // dimensions and e.g. create square thumbnails: //'crop' => true, 'max_width' => 80, 'max_height' => 80 ) ), 'print_response' => true ); if ($options) { $this->options = $options + $this->options; } if ($error_messages) { $this->error_messages = $error_messages + $this->error_messages; } if ($initialize) { $this->initialize(); } } protected function initialize() { switch ($this->get_server_var('REQUEST_METHOD')) { case 'OPTIONS': case 'HEAD': $this->head(); break; case 'GET': $this->get($this->options['print_response']); break; case 'PATCH': case 'PUT': case 'POST': $this->post($this->options['print_response']); break; case 'DELETE': $this->delete($this->options['print_response']); break; default: $this->header('HTTP/1.1 405 Method Not Allowed'); } } protected function get_full_url() { $https = !empty($_SERVER['HTTPS']) && strcasecmp($_SERVER['HTTPS'], 'on') === 0 || !empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && strcasecmp($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') === 0; return ($https ? 'https://' : 'http://'). (!empty($_SERVER['REMOTE_USER']) ? $_SERVER['REMOTE_USER'].'@' : ''). (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : ($_SERVER['SERVER_NAME']. ($https && $_SERVER['SERVER_PORT'] === 443 || $_SERVER['SERVER_PORT'] === 80 ? '' : ':'.$_SERVER['SERVER_PORT']))). substr($_SERVER['SCRIPT_NAME'],0, strrpos($_SERVER['SCRIPT_NAME'], '/')); } protected function get_user_id() { @session_start(); return session_id(); } protected function get_user_path() { if ($this->options['user_dirs']) { return $this->get_user_id().'/'; } return ''; } protected function get_upload_path($file_name = null, $version = null) { $file_name = $file_name ? $file_name : ''; if (empty($version)) { $version_path = ''; } else { $version_dir = @$this->options['image_versions'][$version]['upload_dir']; if ($version_dir) { return $version_dir.$this->get_user_path().$file_name; } $version_path = $version.'/'; } return $this->options['upload_dir'].$this->get_user_path() .$version_path.$file_name; } protected function get_query_separator($url) { return strpos($url, '?') === false ? '?' : '&'; } protected function get_download_url($file_name, $version = null, $direct = false) { if (!$direct && $this->options['download_via_php']) { $url = $this->options['script_url'] .$this->get_query_separator($this->options['script_url']) .$this->get_singular_param_name() .'='.rawurlencode($file_name); if ($version) { $url .= '&version='.rawurlencode($version); } return $url.'&download=1'; } if (empty($version)) { $version_path = ''; } else { $version_url = @$this->options['image_versions'][$version]['upload_url']; if ($version_url) { return $version_url.$this->get_user_path().rawurlencode($file_name); } $version_path = rawurlencode($version).'/'; } return $this->options['upload_url'].$this->get_user_path() .$version_path.rawurlencode($file_name); } protected function set_additional_file_properties($file) { $file->deleteUrl = $this->options['script_url'] .$this->get_query_separator($this->options['script_url']) .$this->get_singular_param_name() .'='.rawurlencode($file->name); $file->deleteType = $this->options['delete_type']; if ($file->deleteType !== 'DELETE') { $file->deleteUrl .= '&_method=DELETE'; } if ($this->options['access_control_allow_credentials']) { $file->deleteWithCredentials = true; } } // Fix for overflowing signed 32 bit integers, // works for sizes up to 2^32-1 bytes (4 GiB - 1): protected function fix_integer_overflow($size) { if ($size < 0) { $size += 2.0 * (PHP_INT_MAX + 1); } return $size; } protected function get_file_size($file_path, $clear_stat_cache = false) { if ($clear_stat_cache) { if (version_compare(PHP_VERSION, '5.3.0') >= 0) { clearstatcache(true, $file_path); } else { clearstatcache(); } } return $this->fix_integer_overflow(filesize($file_path)); } protected function is_valid_file_object($file_name) { $file_path = $this->get_upload_path($file_name); if (is_file($file_path) && $file_name[0] !== '.') { return true; } return false; } protected function get_file_object($file_name) { if ($this->is_valid_file_object($file_name)) { $file = new \stdClass(); $file->name = $file_name; $file->size = $this->get_file_size( $this->get_upload_path($file_name) ); $file->url = $this->get_download_url($file->name); foreach($this->options['image_versions'] as $version => $options) { if (!empty($version)) { if (is_file($this->get_upload_path($file_name, $version))) { $file->{$version.'Url'} = $this->get_download_url( $file->name, $version ); } } } $this->set_additional_file_properties($file); return $file; } return null; } protected function get_file_objects($iteration_method = 'get_file_object') { $upload_dir = $this->get_upload_path(); if (!is_dir($upload_dir)) { return array(); } return array_values(array_filter(array_map( array($this, $iteration_method), scandir($upload_dir) ))); } protected function count_file_objects() { return count($this->get_file_objects('is_valid_file_object')); } protected function get_error_message($error) { return isset($this->error_messages[$error]) ? $this->error_messages[$error] : $error; } function get_config_bytes($val) { $val = trim($val); $last = strtolower($val[strlen($val)-1]); switch($last) { case 'g': $val *= 1024; case 'm': $val *= 1024; case 'k': $val *= 1024; } return $this->fix_integer_overflow($val); } protected function validate($uploaded_file, $file, $error, $index) { if ($error) { $file->error = $this->get_error_message($error); return false; } $content_length = $this->fix_integer_overflow( (int)$this->get_server_var('CONTENT_LENGTH') ); $post_max_size = $this->get_config_bytes(ini_get('post_max_size')); if ($post_max_size && ($content_length > $post_max_size)) { $file->error = $this->get_error_message('post_max_size'); return false; } if (!preg_match($this->options['accept_file_types'], $file->name)) { $file->error = $this->get_error_message('accept_file_types'); return false; } if ($uploaded_file && is_uploaded_file($uploaded_file)) { $file_size = $this->get_file_size($uploaded_file); } else { $file_size = $content_length; } if ($this->options['max_file_size'] && ( $file_size > $this->options['max_file_size'] || $file->size > $this->options['max_file_size']) ) { $file->error = $this->get_error_message('max_file_size'); return false; } if ($this->options['min_file_size'] && $file_size < $this->options['min_file_size']) { $file->error = $this->get_error_message('min_file_size'); return false; } if (is_int($this->options['max_number_of_files']) && ($this->count_file_objects() >= $this->options['max_number_of_files']) && // Ignore additional chunks of existing files: !is_file($this->get_upload_path($file->name))) { $file->error = $this->get_error_message('max_number_of_files'); return false; } $max_width = @$this->options['max_width']; $max_height = @$this->options['max_height']; $min_width = @$this->options['min_width']; $min_height = @$this->options['min_height']; if (($max_width || $max_height || $min_width || $min_height) && preg_match($this->options['image_file_types'], $file->name)) { list($img_width, $img_height) = $this->get_image_size($uploaded_file); // If we are auto rotating the image by default, do the checks on // the correct orientation if ( @$this->options['image_versions']['']['auto_orient'] && function_exists('exif_read_data') && ($exif = @exif_read_data($uploaded_file)) && (((int) @$exif['Orientation']) >= 5 ) ) { $tmp = $img_width; $img_width = $img_height; $img_height = $tmp; unset($tmp); } } if (!empty($img_width)) { if ($max_width && $img_width > $max_width) { $file->error = $this->get_error_message('max_width'); return false; } if ($max_height && $img_height > $max_height) { $file->error = $this->get_error_message('max_height'); return false; } if ($min_width && $img_width < $min_width) { $file->error = $this->get_error_message('min_width'); return false; } if ($min_height && $img_height < $min_height) { $file->error = $this->get_error_message('min_height'); return false; } } return true; } protected function upcount_name_callback($matches) { $index = isset($matches[1]) ? ((int)$matches[1]) + 1 : 1; $ext = isset($matches[2]) ? $matches[2] : ''; return ' ('.$index.')'.$ext; } protected function upcount_name($name) { return preg_replace_callback( '/(?:(?: \(([\d]+)\))?(\.[^.]+))?$/', array($this, 'upcount_name_callback'), $name, 1 ); } protected function get_unique_filename($file_path, $name, $size, $type, $error, $index, $content_range) { while(is_dir($this->get_upload_path($name))) { $name = $this->upcount_name($name); } // Keep an existing filename if this is part of a chunked upload: $uploaded_bytes = $this->fix_integer_overflow((int)$content_range[1]); while(is_file($this->get_upload_path($name))) { if ($uploaded_bytes === $this->get_file_size( $this->get_upload_path($name))) { break; } $name = $this->upcount_name($name); } return $name; } protected function fix_file_extension($file_path, $name, $size, $type, $error, $index, $content_range) { // Add missing file extension for known image types: if (strpos($name, '.') === false && preg_match('/^image\/(gif|jpe?g|png)/', $type, $matches)) { $name .= '.'.$matches[1]; } if ($this->options['correct_image_extensions'] && function_exists('exif_imagetype')) { switch(@exif_imagetype($file_path)){ case IMAGETYPE_JPEG: $extensions = array('jpg', 'jpeg'); break; case IMAGETYPE_PNG: $extensions = array('png'); break; case IMAGETYPE_GIF: $extensions = array('gif'); break; } // Adjust incorrect image file extensions: if (!empty($extensions)) { $parts = explode('.', $name); $extIndex = count($parts) - 1; $ext = strtolower(@$parts[$extIndex]); if (!in_array($ext, $extensions)) { $parts[$extIndex] = $extensions[0]; $name = implode('.', $parts); } } } return $name; } protected function trim_file_name($file_path, $name, $size, $type, $error, $index, $content_range) { // Remove path information and dots around the filename, to prevent uploading // into different directories or replacing hidden system files. // Also remove control characters and spaces (\x00..\x20) around the filename: $name = trim(basename(stripslashes($name)), ".\x00..\x20"); // Use a timestamp for empty filenames: if (!$name) { $name = str_replace('.', '-', microtime(true)); } // Gix075 function $name = $this->clean_file_name__custom($name); return $name; } // Gix075 function protected function clean_file_name__custom($filename) { $dangerous_characters = array(" ", '"', "'", "&", "/", "\\", "?", "#"); $pathinfo = pathinfo($filename); $basename = basename($filename,$pathinfo['extension']); $basename = htmlentities($basename, ENT_QUOTES, 'UTF-8'); $basename = preg_replace('~&([a-z]{1,2})(acute|cedil|circ|grave|lig|orn|ring|slash|th|tilde|uml);~i', '$1', $basename); $basename = html_entity_decode($basename, ENT_QUOTES, 'UTF-8'); $basename = preg_replace(array('~[^0-9a-z]~i', '~[ -]+~'), ' ', $basename); $basename = trim($basename, ' -'); $basename = str_replace($dangerous_characters, '_', $basename); $basename = strtolower($basename); return $pathinfo['dirname']."/".$basename.".".$pathinfo['extension']; } // Gix075 function /*protected function sanitize_file_name__custom($filename) { $dangerous_characters = array(" ", '"', "'", "&", "/", "\\", "?", "#"); return str_replace($dangerous_characters, '_', $filename); }*/ protected function get_file_name($file_path, $name, $size, $type, $error, $index, $content_range) { $name = $this->trim_file_name($file_path, $name, $size, $type, $error, $index, $content_range); return $this->get_unique_filename( $file_path, $this->fix_file_extension($file_path, $name, $size, $type, $error, $index, $content_range), $size, $type, $error, $index, $content_range ); } protected function get_scaled_image_file_paths($file_name, $version) { $file_path = $this->get_upload_path($file_name); if (!empty($version)) { $version_dir = $this->get_upload_path(null, $version); if (!is_dir($version_dir)) { mkdir($version_dir, $this->options['mkdir_mode'], true); } $new_file_path = $version_dir.'/'.$file_name; } else { $new_file_path = $file_path; } return array($file_path, $new_file_path); } protected function gd_get_image_object($file_path, $func, $no_cache = false) { if (empty($this->image_objects[$file_path]) || $no_cache) { $this->gd_destroy_image_object($file_path); $this->image_objects[$file_path] = $func($file_path); } return $this->image_objects[$file_path]; } protected function gd_set_image_object($file_path, $image) { $this->gd_destroy_image_object($file_path); $this->image_objects[$file_path] = $image; } protected function gd_destroy_image_object($file_path) { $image = (isset($this->image_objects[$file_path])) ? $this->image_objects[$file_path] : null ; return $image && imagedestroy($image); } protected function gd_imageflip($image, $mode) { if (function_exists('imageflip')) { return imageflip($image, $mode); } $new_width = $src_width = imagesx($image); $new_height = $src_height = imagesy($image); $new_img = imagecreatetruecolor($new_width, $new_height); $src_x = 0; $src_y = 0; switch ($mode) { case '1': // flip on the horizontal axis $src_y = $new_height - 1; $src_height = -$new_height; break; case '2': // flip on the vertical axis $src_x = $new_width - 1; $src_width = -$new_width; break; case '3': // flip on both axes $src_y = $new_height - 1; $src_height = -$new_height; $src_x = $new_width - 1; $src_width = -$new_width; break; default: return $image; } imagecopyresampled( $new_img, $image, 0, 0, $src_x, $src_y, $new_width, $new_height, $src_width, $src_height ); return $new_img; } protected function gd_orient_image($file_path, $src_img) { if (!function_exists('exif_read_data')) { return false; } $exif = @exif_read_data($file_path); if ($exif === false) { return false; } $orientation = (int)@$exif['Orientation']; if ($orientation < 2 || $orientation > 8) { return false; } switch ($orientation) { case 2: $new_img = $this->gd_imageflip( $src_img, defined('IMG_FLIP_VERTICAL') ? IMG_FLIP_VERTICAL : 2 ); break; case 3: $new_img = imagerotate($src_img, 180, 0); break; case 4: $new_img = $this->gd_imageflip( $src_img, defined('IMG_FLIP_HORIZONTAL') ? IMG_FLIP_HORIZONTAL : 1 ); break; case 5: $tmp_img = $this->gd_imageflip( $src_img, defined('IMG_FLIP_HORIZONTAL') ? IMG_FLIP_HORIZONTAL : 1 ); $new_img = imagerotate($tmp_img, 270, 0); imagedestroy($tmp_img); break; case 6: $new_img = imagerotate($src_img, 270, 0); break; case 7: $tmp_img = $this->gd_imageflip( $src_img, defined('IMG_FLIP_VERTICAL') ? IMG_FLIP_VERTICAL : 2 ); $new_img = imagerotate($tmp_img, 270, 0); imagedestroy($tmp_img); break; case 8: $new_img = imagerotate($src_img, 90, 0); break; default: return false; } $this->gd_set_image_object($file_path, $new_img); return true; } protected function gd_create_scaled_image($file_name, $version, $options) { if (!function_exists('imagecreatetruecolor')) { error_log('Function not found: imagecreatetruecolor'); return false; } list($file_path, $new_file_path) = $this->get_scaled_image_file_paths($file_name, $version); $type = strtolower(substr(strrchr($file_name, '.'), 1)); switch ($type) { case 'jpg': case 'jpeg': $src_func = 'imagecreatefromjpeg'; $write_func = 'imagejpeg'; $image_quality = isset($options['jpeg_quality']) ? $options['jpeg_quality'] : 75; break; case 'gif': $src_func = 'imagecreatefromgif'; $write_func = 'imagegif'; $image_quality = null; break; case 'png': $src_func = 'imagecreatefrompng'; $write_func = 'imagepng'; $image_quality = isset($options['png_quality']) ? $options['png_quality'] : 9; break; default: return false; } $src_img = $this->gd_get_image_object( $file_path, $src_func, !empty($options['no_cache']) ); $image_oriented = false; if (!empty($options['auto_orient']) && $this->gd_orient_image( $file_path, $src_img )) { $image_oriented = true; $src_img = $this->gd_get_image_object( $file_path, $src_func ); } $max_width = $img_width = imagesx($src_img); $max_height = $img_height = imagesy($src_img); if (!empty($options['max_width'])) { $max_width = $options['max_width']; } if (!empty($options['max_height'])) { $max_height = $options['max_height']; } $scale = min( $max_width / $img_width, $max_height / $img_height ); if ($scale >= 1) { if ($image_oriented) { return $write_func($src_img, $new_file_path, $image_quality); } if ($file_path !== $new_file_path) { return copy($file_path, $new_file_path); } return true; } if (empty($options['crop'])) { $new_width = $img_width * $scale; $new_height = $img_height * $scale; $dst_x = 0; $dst_y = 0; $new_img = imagecreatetruecolor($new_width, $new_height); } else { if (($img_width / $img_height) >= ($max_width / $max_height)) { $new_width = $img_width / ($img_height / $max_height); $new_height = $max_height; } else { $new_width = $max_width; $new_height = $img_height / ($img_width / $max_width); } $dst_x = 0 - ($new_width - $max_width) / 2; $dst_y = 0 - ($new_height - $max_height) / 2; $new_img = imagecreatetruecolor($max_width, $max_height); } // Handle transparency in GIF and PNG images: switch ($type) { case 'gif': case 'png': imagecolortransparent($new_img, imagecolorallocate($new_img, 0, 0, 0)); case 'png': imagealphablending($new_img, false); imagesavealpha($new_img, true); break; } $success = imagecopyresampled( $new_img, $src_img, $dst_x, $dst_y, 0, 0, $new_width, $new_height, $img_width, $img_height ) && $write_func($new_img, $new_file_path, $image_quality); $this->gd_set_image_object($file_path, $new_img); return $success; } protected function imagick_get_image_object($file_path, $no_cache = false) { if (empty($this->image_objects[$file_path]) || $no_cache) { $this->imagick_destroy_image_object($file_path); $image = new \Imagick(); if (!empty($this->options['imagick_resource_limits'])) { foreach ($this->options['imagick_resource_limits'] as $type => $limit) { $image->setResourceLimit($type, $limit); } } $image->readImage($file_path); $this->image_objects[$file_path] = $image; } return $this->image_objects[$file_path]; } protected function imagick_set_image_object($file_path, $image) { $this->imagick_destroy_image_object($file_path); $this->image_objects[$file_path] = $image; } protected function imagick_destroy_image_object($file_path) { $image = (isset($this->image_objects[$file_path])) ? $this->image_objects[$file_path] : null ; return $image && $image->destroy(); } protected function imagick_orient_image($image) { $orientation = $image->getImageOrientation(); $background = new \ImagickPixel('none'); switch ($orientation) { case \imagick::ORIENTATION_TOPRIGHT: // 2 $image->flopImage(); // horizontal flop around y-axis break; case \imagick::ORIENTATION_BOTTOMRIGHT: // 3 $image->rotateImage($background, 180); break; case \imagick::ORIENTATION_BOTTOMLEFT: // 4 $image->flipImage(); // vertical flip around x-axis break; case \imagick::ORIENTATION_LEFTTOP: // 5 $image->flopImage(); // horizontal flop around y-axis $image->rotateImage($background, 270); break; case \imagick::ORIENTATION_RIGHTTOP: // 6 $image->rotateImage($background, 90); break; case \imagick::ORIENTATION_RIGHTBOTTOM: // 7 $image->flipImage(); // vertical flip around x-axis $image->rotateImage($background, 270); break; case \imagick::ORIENTATION_LEFTBOTTOM: // 8 $image->rotateImage($background, 270); break; default: return false; } $image->setImageOrientation(\imagick::ORIENTATION_TOPLEFT); // 1 return true; } protected function imagick_create_scaled_image($file_name, $version, $options) { list($file_path, $new_file_path) = $this->get_scaled_image_file_paths($file_name, $version); $image = $this->imagick_get_image_object( $file_path, !empty($options['crop']) || !empty($options['no_cache']) ); if ($image->getImageFormat() === 'GIF') { // Handle animated GIFs: $images = $image->coalesceImages(); foreach ($images as $frame) { $image = $frame; $this->imagick_set_image_object($file_name, $image); break; } } $image_oriented = false; if (!empty($options['auto_orient'])) { $image_oriented = $this->imagick_orient_image($image); } $new_width = $max_width = $img_width = $image->getImageWidth(); $new_height = $max_height = $img_height = $image->getImageHeight(); if (!empty($options['max_width'])) { $new_width = $max_width = $options['max_width']; } if (!empty($options['max_height'])) { $new_height = $max_height = $options['max_height']; } if (!($image_oriented || $max_width < $img_width || $max_height < $img_height)) { if ($file_path !== $new_file_path) { return copy($file_path, $new_file_path); } return true; } $crop = !empty($options['crop']); if ($crop) { $x = 0; $y = 0; if (($img_width / $img_height) >= ($max_width / $max_height)) { $new_width = 0; // Enables proportional scaling based on max_height $x = ($img_width / ($img_height / $max_height) - $max_width) / 2; } else { $new_height = 0; // Enables proportional scaling based on max_width $y = ($img_height / ($img_width / $max_width) - $max_height) / 2; } } $success = $image->resizeImage( $new_width, $new_height, isset($options['filter']) ? $options['filter'] : \imagick::FILTER_LANCZOS, isset($options['blur']) ? $options['blur'] : 1, $new_width && $new_height // fit image into constraints if not to be cropped ); if ($success && $crop) { $success = $image->cropImage( $max_width, $max_height, $x, $y ); if ($success) { $success = $image->setImagePage($max_width, $max_height, 0, 0); } } $type = strtolower(substr(strrchr($file_name, '.'), 1)); switch ($type) { case 'jpg': case 'jpeg': if (!empty($options['jpeg_quality'])) { $image->setImageCompression(\imagick::COMPRESSION_JPEG); $image->setImageCompressionQuality($options['jpeg_quality']); } break; } if (!empty($options['strip'])) { $image->stripImage(); } return $success && $image->writeImage($new_file_path); } protected function imagemagick_create_scaled_image($file_name, $version, $options) { list($file_path, $new_file_path) = $this->get_scaled_image_file_paths($file_name, $version); $resize = @$options['max_width'] .(empty($options['max_height']) ? '' : 'X'.$options['max_height']); if (!$resize && empty($options['auto_orient'])) { if ($file_path !== $new_file_path) { return copy($file_path, $new_file_path); } return true; } $cmd = $this->options['convert_bin']; if (!empty($this->options['convert_params'])) { $cmd .= ' '.$this->options['convert_params']; } $cmd .= ' '.escapeshellarg($file_path); if (!empty($options['auto_orient'])) { $cmd .= ' -auto-orient'; } if ($resize) { // Handle animated GIFs: $cmd .= ' -coalesce'; if (empty($options['crop'])) { $cmd .= ' -resize '.escapeshellarg($resize.'>'); } else { $cmd .= ' -resize '.escapeshellarg($resize.'^'); $cmd .= ' -gravity center'; $cmd .= ' -crop '.escapeshellarg($resize.'+0+0'); } // Make sure the page dimensions are correct (fixes offsets of animated GIFs): $cmd .= ' +repage'; } if (!empty($options['convert_params'])) { $cmd .= ' '.$options['convert_params']; } $cmd .= ' '.escapeshellarg($new_file_path); exec($cmd, $output, $error); if ($error) { error_log(implode('\n', $output)); return false; } return true; } protected function get_image_size($file_path) { if ($this->options['image_library']) { if (extension_loaded('imagick')) { $image = new \Imagick(); try { if (@$image->pingImage($file_path)) { $dimensions = array($image->getImageWidth(), $image->getImageHeight()); $image->destroy(); return $dimensions; } return false; } catch (\Exception $e) { error_log($e->getMessage()); } } if ($this->options['image_library'] === 2) { $cmd = $this->options['identify_bin']; $cmd .= ' -ping '.escapeshellarg($file_path); exec($cmd, $output, $error); if (!$error && !empty($output)) { // image.jpg JPEG 1920x1080 1920x1080+0+0 8-bit sRGB 465KB 0.000u 0:00.000 $infos = preg_split('/\s+/', substr($output[0], strlen($file_path))); $dimensions = preg_split('/x/', $infos[2]); return $dimensions; } return false; } } if (!function_exists('getimagesize')) { error_log('Function not found: getimagesize'); return false; } return @getimagesize($file_path); } protected function create_scaled_image($file_name, $version, $options) { if ($this->options['image_library'] === 2) { return $this->imagemagick_create_scaled_image($file_name, $version, $options); } if ($this->options['image_library'] && extension_loaded('imagick')) { return $this->imagick_create_scaled_image($file_name, $version, $options); } return $this->gd_create_scaled_image($file_name, $version, $options); } protected function destroy_image_object($file_path) { if ($this->options['image_library'] && extension_loaded('imagick')) { return $this->imagick_destroy_image_object($file_path); } } protected function is_valid_image_file($file_path) { if (!preg_match($this->options['image_file_types'], $file_path)) { return false; } if (function_exists('exif_imagetype')) { return @exif_imagetype($file_path); } $image_info = $this->get_image_size($file_path); return $image_info && $image_info[0] && $image_info[1]; } protected function handle_image_file($file_path, $file) { $failed_versions = array(); foreach($this->options['image_versions'] as $version => $options) { if ($this->create_scaled_image($file->name, $version, $options)) { if (!empty($version)) { $file->{$version.'Url'} = $this->get_download_url( $file->name, $version ); } else { $file->size = $this->get_file_size($file_path, true); } } else { $failed_versions[] = $version ? $version : 'original'; } } if (count($failed_versions)) { $file->error = $this->get_error_message('image_resize') .' ('.implode($failed_versions,', ').')'; } // Free memory: $this->destroy_image_object($file_path); } protected function handle_file_upload($uploaded_file, $name, $size, $type, $error, $index = null, $content_range = null) { $file = new \stdClass(); $file->name = $this->get_file_name($uploaded_file, $name, $size, $type, $error, $index, $content_range); $file->size = $this->fix_integer_overflow((int)$size); $file->type = $type; if ($this->validate($uploaded_file, $file, $error, $index)) { $this->handle_form_data($file, $index); $upload_dir = $this->get_upload_path(); if (!is_dir($upload_dir)) { mkdir($upload_dir, $this->options['mkdir_mode'], true); } $file_path = $this->get_upload_path($file->name); $append_file = $content_range && is_file($file_path) && $file->size > $this->get_file_size($file_path); if ($uploaded_file && is_uploaded_file($uploaded_file)) { // multipart/formdata uploads (POST method uploads) if ($append_file) { file_put_contents( $file_path, fopen($uploaded_file, 'r'), FILE_APPEND ); } else { move_uploaded_file($uploaded_file, $file_path); } } else { // Non-multipart uploads (PUT method support) file_put_contents( $file_path, fopen('php://input', 'r'), $append_file ? FILE_APPEND : 0 ); } $file_size = $this->get_file_size($file_path, $append_file); if ($file_size === $file->size) { $file->url = $this->get_download_url($file->name); if ($this->is_valid_image_file($file_path)) { $this->handle_image_file($file_path, $file); } } else { $file->size = $file_size; if (!$content_range && $this->options['discard_aborted_uploads']) { unlink($file_path); $file->error = $this->get_error_message('abort'); } } $this->set_additional_file_properties($file); } return $file; } protected function readfile($file_path) { $file_size = $this->get_file_size($file_path); $chunk_size = $this->options['readfile_chunk_size']; if ($chunk_size && $file_size > $chunk_size) { $handle = fopen($file_path, 'rb'); while (!feof($handle)) { echo fread($handle, $chunk_size); @ob_flush(); @flush(); } fclose($handle); return $file_size; } return readfile($file_path); } protected function body($str) { echo $str; } protected function header($str) { header($str); } protected function get_upload_data($id) { return @$_FILES[$id]; } protected function get_post_param($id) { return @$_POST[$id]; } protected function get_query_param($id) { return @$_GET[$id]; } protected function get_server_var($id) { return @$_SERVER[$id]; } protected function handle_form_data($file, $index) { // Handle form data, e.g. $_POST['description'][$index] } protected function get_version_param() { return basename(stripslashes($this->get_query_param('version'))); } protected function get_singular_param_name() { return substr($this->options['param_name'], 0, -1); } protected function get_file_name_param() { $name = $this->get_singular_param_name(); return basename(stripslashes($this->get_query_param($name))); } protected function get_file_names_params() { $params = $this->get_query_param($this->options['param_name']); if (!$params) { return null; } foreach ($params as $key => $value) { $params[$key] = basename(stripslashes($value)); } return $params; } protected function get_file_type($file_path) { switch (strtolower(pathinfo($file_path, PATHINFO_EXTENSION))) { case 'jpeg': case 'jpg': return 'image/jpeg'; case 'png': return 'image/png'; case 'gif': return 'image/gif'; default: return ''; } } protected function download() { switch ($this->options['download_via_php']) { case 1: $redirect_header = null; break; case 2: $redirect_header = 'X-Sendfile'; break; case 3: $redirect_header = 'X-Accel-Redirect'; break; default: return $this->header('HTTP/1.1 403 Forbidden'); } $file_name = $this->get_file_name_param(); if (!$this->is_valid_file_object($file_name)) { return $this->header('HTTP/1.1 404 Not Found'); } if ($redirect_header) { return $this->header( $redirect_header.': '.$this->get_download_url( $file_name, $this->get_version_param(), true ) ); } $file_path = $this->get_upload_path($file_name, $this->get_version_param()); // Prevent browsers from MIME-sniffing the content-type: $this->header('X-Content-Type-Options: nosniff'); if (!preg_match($this->options['inline_file_types'], $file_name)) { $this->header('Content-Type: application/octet-stream'); $this->header('Content-Disposition: attachment; filename="'.$file_name.'"'); } else { $this->header('Content-Type: '.$this->get_file_type($file_path)); $this->header('Content-Disposition: inline; filename="'.$file_name.'"'); } $this->header('Content-Length: '.$this->get_file_size($file_path)); $this->header('Last-Modified: '.gmdate('D, d M Y H:i:s T', filemtime($file_path))); $this->readfile($file_path); } protected function send_content_type_header() { $this->header('Vary: Accept'); if (strpos($this->get_server_var('HTTP_ACCEPT'), 'application/json') !== false) { $this->header('Content-type: application/json'); } else { $this->header('Content-type: text/plain'); } } protected function send_access_control_headers() { $this->header('Access-Control-Allow-Origin: '.$this->options['access_control_allow_origin']); $this->header('Access-Control-Allow-Credentials: ' .($this->options['access_control_allow_credentials'] ? 'true' : 'false')); $this->header('Access-Control-Allow-Methods: ' .implode(', ', $this->options['access_control_allow_methods'])); $this->header('Access-Control-Allow-Headers: ' .implode(', ', $this->options['access_control_allow_headers'])); } public function generate_response($content, $print_response = true) { $this->response = $content; if ($print_response) { $json = json_encode($content); $redirect = stripslashes($this->get_post_param('redirect')); if ($redirect && preg_match($this->options['redirect_allow_target'], $redirect)) { $this->header('Location: '.sprintf($redirect, rawurlencode($json))); return; } $this->head(); if ($this->get_server_var('HTTP_CONTENT_RANGE')) { $files = isset($content[$this->options['param_name']]) ? $content[$this->options['param_name']] : null; if ($files && is_array($files) && is_object($files[0]) && $files[0]->size) { $this->header('Range: 0-'.( $this->fix_integer_overflow((int)$files[0]->size) - 1 )); } } $this->body($json); } return $content; } public function get_response () { return $this->response; } public function head() { $this->header('Pragma: no-cache'); $this->header('Cache-Control: no-store, no-cache, must-revalidate'); $this->header('Content-Disposition: inline; filename="files.json"'); // Prevent Internet Explorer from MIME-sniffing the content-type: $this->header('X-Content-Type-Options: nosniff'); if ($this->options['access_control_allow_origin']) { $this->send_access_control_headers(); } $this->send_content_type_header(); } public function get($print_response = true) { if ($print_response && $this->get_query_param('download')) { return $this->download(); } $file_name = $this->get_file_name_param(); if ($file_name) { $response = array( $this->get_singular_param_name() => $this->get_file_object($file_name) ); } else { $response = array( $this->options['param_name'] => $this->get_file_objects() ); } return $this->generate_response($response, $print_response); } public function post($print_response = true) { if ($this->get_query_param('_method') === 'DELETE') { return $this->delete($print_response); } $upload = $this->get_upload_data($this->options['param_name']); // Parse the Content-Disposition header, if available: $content_disposition_header = $this->get_server_var('HTTP_CONTENT_DISPOSITION'); $file_name = $content_disposition_header ? rawurldecode(preg_replace( '/(^[^"]+")|("$)/', '', $content_disposition_header )) : null; // Parse the Content-Range header, which has the following form: // Content-Range: bytes 0-524287/2000000 $content_range_header = $this->get_server_var('HTTP_CONTENT_RANGE'); $content_range = $content_range_header ? preg_split('/[^0-9]+/', $content_range_header) : null; $size = $content_range ? $content_range[3] : null; $files = array(); if ($upload) { if (is_array($upload['tmp_name'])) { // param_name is an array identifier like "files[]", // $upload is a multi-dimensional array: foreach ($upload['tmp_name'] as $index => $value) { $files[] = $this->handle_file_upload( $upload['tmp_name'][$index], $file_name ? $file_name : $upload['name'][$index], $size ? $size : $upload['size'][$index], $upload['type'][$index], $upload['error'][$index], $index, $content_range ); } } else { // param_name is a single object identifier like "file", // $upload is a one-dimensional array: $files[] = $this->handle_file_upload( isset($upload['tmp_name']) ? $upload['tmp_name'] : null, $file_name ? $file_name : (isset($upload['name']) ? $upload['name'] : null), $size ? $size : (isset($upload['size']) ? $upload['size'] : $this->get_server_var('CONTENT_LENGTH')), isset($upload['type']) ? $upload['type'] : $this->get_server_var('CONTENT_TYPE'), isset($upload['error']) ? $upload['error'] : null, null, $content_range ); } } $response = array($this->options['param_name'] => $files); return $this->generate_response($response, $print_response); } public function delete($print_response = true) { $file_names = $this->get_file_names_params(); if (empty($file_names)) { $file_names = array($this->get_file_name_param()); } $response = array(); foreach($file_names as $file_name) { $file_path = $this->get_upload_path($file_name); $success = is_file($file_path) && $file_name[0] !== '.' && unlink($file_path); if ($success) { foreach($this->options['image_versions'] as $version => $options) { if (!empty($version)) { $file = $this->get_upload_path($file_name, $version); if (is_file($file)) { unlink($file); } } } } $response[$file_name] = $success; } return $this->generate_response($response, $print_response); } }
Gix075/ajax-contact-form
dist/ajax-contact-form/php/attachments/UploadHandler.php
PHP
mit
55,934
<?php if (! empty($links)): ?> <table class="table-stripped table-small"> <tr> <th class="column-10"><?= t('Type') ?></th> <th><?= t('Title') ?></th> <th class="column-10"><?= t('Dependency') ?></th> <th class="column-15"><?= t('Creator') ?></th> <th class="column-15"><?= t('Date') ?></th> <?php if ($this->user->hasProjectAccess('TaskExternalLinkController', 'edit', $task['project_id'])): ?> <th class="column-5"><?= t('Action') ?></th> <?php endif ?> </tr> <?php foreach ($links as $link): ?> <tr> <td> <?= $link['type'] ?> </td> <td> <a href="<?= $link['url'] ?>" target="_blank"><?= $this->text->e($link['title']) ?></a> </td> <td> <?= $this->text->e($link['dependency_label']) ?> </td> <td> <?= $this->text->e($link['creator_name'] ?: $link['creator_username']) ?> </td> <td> <?= $this->dt->date($link['date_creation']) ?> </td> <?php if ($this->user->hasProjectAccess('TaskExternalLinkController', 'edit', $task['project_id'])): ?> <td> <div class="dropdown"> <a href="#" class="dropdown-menu dropdown-menu-link-icon"><i class="fa fa-cog fa-fw"></i><i class="fa fa-caret-down"></i></a> <ul> <li><?= $this->url->link(t('Edit'), 'TaskExternalLinkController', 'edit', array('link_id' => $link['id'], 'task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'popover') ?></li> <li><?= $this->url->link(t('Remove'), 'TaskExternalLinkController', 'confirm', array('link_id' => $link['id'], 'task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'popover') ?></li> </ul> </div> </td> <?php endif ?> </tr> <?php endforeach ?> </table> <?php endif ?>
jtourt/kanboard
app/Template/task_external_link/table.php
PHP
mit
2,104
<?php return array( 'Select' => 'Vælg', 'Deselect_All' => 'Deselect All', 'Select_All' => 'Select All', 'Erase' => 'Slet', 'Open' => 'Åbn', 'Confirm_del' => 'Er du sikker på at du vil slette denne fil?', 'All' => 'Alle', 'Files' => 'Filer', 'Images' => 'Billeder', 'Archives' => 'Mapper', 'Error_Upload' => 'Den uploadede fil er større end tilladt (100MB).', 'Error_extension' => 'Fil typen er ikke tilladt.', 'Upload_file' => 'Upload', 'Filters' => 'Filter', 'Videos' => 'Videoer', 'Music' => 'Musik', 'New_Folder' => 'Ny mappe', 'Folder_Created' => 'Mappen er oprettet korrekt', 'Existing_Folder' => 'Mappen findes allerede', 'Confirm_Folder_del' => 'Er du sikker på at du vil slette mappen og alt dens indhold?', 'Return_Files_List' => 'Tilbage til fil oversigten', 'Preview' => 'Preview', 'Download' => 'Download', 'Insert_Folder_Name' => 'Indsæt mappe navn:', 'Root' => 'rod', 'Rename' => 'Omdøb', 'Back' => 'tilbage', 'View' => 'Se', 'View_list' => 'Vis liste', 'View_columns_list' => 'Søjle liste', 'View_boxes' => 'Box list', 'Toolbar' => 'Toolbar', 'Actions' => 'Handlinger', 'Rename_existing_file' => 'Filen findes allerede', 'Rename_existing_folder' => 'Mappen findes allerede', 'Empty_name' => 'Indsæt et navn', 'Text_filter' => 'tekst filter', 'Swipe_help' => 'Swipe over navnet på fil/mappe for at se muligheder', 'Upload_base' => 'Basis upload', 'Upload_base_help' => "Drag & Drop files(modern browsers) or click in upper button to Add the file(s) and click on Start upload. When the upload is complete, click the 'Return to files list' button.", 'Upload_add_files' => 'Add file(s)', 'Upload_start' => 'Start upload', 'Upload_error_messages' =>array( 1 => 'The uploaded file exceeds the upload_max_filesize directive in php.ini', 2 => 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form', 3 => 'The uploaded file was only partially uploaded', 4 => 'No file was uploaded', 6 => 'Missing a temporary folder', 7 => 'Failed to write file to disk', 8 => 'A PHP extension stopped the file upload', 'post_max_size' => 'The uploaded file exceeds the post_max_size directive in php.ini', 'max_file_size' => 'File is too big', 'min_file_size' => 'File is too small', 'accept_file_types' => 'Filetype not allowed', 'max_number_of_files' => 'Maximum number of files exceeded', 'max_width' => 'Image exceeds maximum width', 'min_width' => 'Image requires a minimum width', 'max_height' => 'Image exceeds maximum height', 'min_height' => 'Image requires a minimum height', 'abort' => 'File upload aborted', 'image_resize' => 'Failed to resize image' ), 'Upload_url' => 'From url', 'Type_dir' => 'dir', 'Type' => 'Type', 'Dimension' => 'Dimensioner', 'Size' => 'Størrelse', 'Date' => 'Dato', 'Filename' => 'Filenavn', 'Operations' => 'Operationer', 'Date_type' => 'år-måned-dag', 'OK' => 'OK', 'Cancel' => 'Afbryd', 'Sorting' => 'sortering', 'Show_url' => 'Vis sti', 'Extract' => 'Fold ud her', 'File_info' => 'fil info', 'Edit_image' => 'Redigér billede', 'Duplicate' => 'Kopiér', 'Folders' => 'Mapper', 'Copy' => 'Kopiér', 'Cut' => 'Klip', 'Paste' => 'Indsæt', 'CB' => 'UKH', // clipboard 'Paste_Here' => 'Indsæt i denne mappe', 'Paste_Confirm' => 'Er du sikker på at du vil indsætte i denne mappe? Det vil overkrive allerede eksisterende filer/mapper, hvis der findes nogen.', 'Paste_Failed' => 'Det lykkedes ikke at indsætte fil(en/erne)', 'Clear_Clipboard' => 'Slet indholdet af udklipsholderen', 'Clear_Clipboard_Confirm' => 'Er du sikker på at du vil slette indholdet af udklipsholderen?', 'Files_ON_Clipboard' => 'Der findes filer i udklipsholderen.', 'Copy_Cut_Size_Limit' => 'De valgte filer/mapper er for store til at %s. Max.: %d MB/operation', // %s = cut or copy 'Copy_Cut_Count_Limit' => 'Du har valgt for mange filer/mapper til at %s. Max.: %d filer/operation', // %s = cut or copy 'Copy_Cut_Not_Allowed' => 'Du har ikke tilladelse til at %s filer. Tal med din administrator.', // %s(1) = cut or copy, %s(2) = files or folders 'Aviary_No_Save' => 'Det var ikke muligt at gemme billedet', 'Zip_No_Extract' => 'Det var ikke muligt at hente. Filen er muligvis ødelagt.', 'Zip_Invalid' => 'Denne filtype understøttes ikke. De mulige filtyper er: zip, gz, tar.', 'Dir_No_Write' => 'Der kan ikke skrives til den valgte mappe. Kontakt din administrator.', 'Function_Disabled' => 'Denne %s funktion er slået fra af serveren.', // %s = cut or copy 'File_Permission' => 'Fil tilladelser', 'File_Permission_Not_Allowed' => 'Det er ikke tilladt at ændre tilladelsen for %s.', // %s = files or folders 'File_Permission_Recursive' => 'Gøres ved alle mapper og filer (rekursivt)?', 'File_Permission_Wrong_Mode' => "Den anvendte indstilling for tilladelse er ikke korrekt.", 'User' => 'Bruger', 'Group' => 'Gruppe', 'Yes' => 'Ja', 'No' => 'Nej', 'Lang_Not_Found' => 'Cet var ikke muligt at finde sprog-filen.', 'Lang_Change' => 'Andet sprog', 'File_Not_Found' => 'Det var ikke muligt at finde filen.', 'File_Open_Edit_Not_Allowed' => 'Du har ikke tiladelse til at %s denne fil.', // %s = open or edit 'Edit' => 'Redigér', 'Edit_File' => "Redigér filens indhold", 'File_Save_OK' => "Filen blev gemt.", 'File_Save_Error' => "Der opstod en fejl i forsøget på at gemme filen.", 'New_File' => 'Opret ny fil', 'No_Extension' => 'Husk at tilføje filtype.', 'Valid_Extensions' => 'Gyldige filtyper er: %s', // %s = txt,log etc. 'Upload_message' => "Drop file here to upload", 'SERVER ERROR' => "SERVER ERROR", 'forbiden' => "Forbiden", 'wrong path' => "Wrong path", 'wrong name' => "Wrong name", 'wrong extension' => "Wrong extension", 'wrong option' => "Wrong option", 'wrong data' => "Wrong data", 'wrong action' => "Wrong action", 'wrong sub-action' => "Wrong sub-actio", 'no action passed' => "No action passed", 'no path' => "No path", 'no file' => "No file", 'view type number missing' => "View type number missing", 'Not enough Memory' => "Not enough Memory", 'max_size_reached' => "Your image folder has reach its maximale size of %d MB.", //%d = max overall size 'B' => "B", 'KB' => "KB", 'MB' => "MB", 'GB' => "GB", 'TB' => "TB", 'total size' => "Total size", );
Fred89/bludit-plugins
ckeditor/libs/filemanager/lang/da.php
PHP
mit
6,441
<?php namespace Data\DatabaseBundle\Entity; use Doctrine\ORM\EntityRepository; use Data\DatabaseBundle\Entity\Task; /** * TaskRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class TaskRepository extends EntityRepository { public function findByAktualnyUzytkownikNieZakonczone($user) { $query = $this->getEntityManager()->createQuery(" SELECT t FROM DataDatabaseBundle:Task t WHERE t.aktualnyUzytkownik = :aktualnyUzytkownik AND t.status != :zamkniety "); $query->setParameter(":aktualnyUzytkownik", $user); $query->setParameter(":zamkniety", Task::STATUS_ZAMKNIETY); return $query->getResult(); } public function findByPoprzedniUzytkownikNieZakonczone($user) { $query = $this->getEntityManager()->createQuery(" SELECT t FROM DataDatabaseBundle:Task t WHERE t.poprzedniUzytkownik = :poprzedniUzytkownik AND t.status != :zamkniety "); $query->setParameter(":poprzedniUzytkownik", $user); $query->setParameter(":zamkniety", Task::STATUS_ZAMKNIETY); return $query->getResult(); } public function getTasksByUzytkownikAndDate(Uzytkownik $uzytkownik, $date) { return $this->getEntityManager()->createQuery(" SELECT t FROM DataDatabaseBundle:Task t LEFT JOIN DataDatabaseBundle:Projekt p WITH p.id = t.projekt LEFT JOIN DataDatabaseBundle:UzytkownikProjekt up WITH p.id = up.projekt WHERE up.uzytkownik = :uzytkownik_id AND t.termin = :dt ") ->setParameter(':dt', $date) ->setParameter(':uzytkownik_id', $uzytkownik->getId()) ->getResult(); } }
Ovengroup/tm
src/Data/DatabaseBundle/Entity/TaskRepository.php
PHP
mit
1,900
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Linq; public class RapBattleMeshGenerator : MonoBehaviour { [SerializeField] private float refreshTime; [SerializeField] private Vector2 pointRandomizationRange; [SerializeField] private Color color; private float refreshTimer; void Start() { refresh(); refreshTimer = refreshTime; InvokeRepeating("refresh", refreshTime - (Time.time % refreshTime), refreshTime); } void refresh() { Mesh mesh = GetComponent<MeshFilter>().mesh; var col = GetComponent<PolygonCollider2D>(); var points = col.points.Select(a => new Vector2( a.x + Random.Range(-pointRandomizationRange.x, pointRandomizationRange.x), a.y + Random.Range(-pointRandomizationRange.y, pointRandomizationRange.y))).ToArray(); var triangulator = new Triangulator(points); mesh.vertices = points.Select(a => (Vector3)a).ToArray(); mesh.triangles = triangulator.Triangulate(); mesh.colors = points.Select(a => color).ToArray(); //mesh.RecalculateBounds(); mesh.RecalculateNormals(); } }
Barleytree/NitoriWare
Assets/Microgames/RapBattle/Scripts/RapBattleMeshGenerator.cs
C#
mit
1,216
define({ "_widgetLabel": "Gráfico", "executeChartTip": "Clique num dos seguintes itens de tarefa para executar o gráfico.", "invalidConfig": "Configuração inválida.", "noneChartTip": "Não foi configurada qualquer de gráfico para este widget.", "chartParams": "Opções", "charts": "GRÁFICOS", "apply": "Aplicar", "useSpatialFilter": "Utilizar filtro espacial para limitar elementos", "useCurrentMapExtent": "Apenas elementos intersectam área de mapa actual", "drawGraphicOnMap": "Apenas elementos intersectam uma área definida por utilizador", "chartResults": "Resultados dos Gráficos", "clearResults": "Limpar Resultados", "noPermissionsMsg": "Não possui permissões para aceder a este serviço.", "specifySpatialFilterMsg": "Por favor especifique um filtro espacial para esta tarefa.", "queryError": "A consulta falhou.", "noResults": "Nenhum resultado", "category": "Categoria", "count": "Contagem", "label": "Rótulo", "horizontalAxis": "Eixo Horizontal", "verticalAxis": "Eixo Vertical", "dataLabels": "Rótulos de Dados", "color": "Cor", "colorful": "Colorido", "monochromatic": "Monocromático", "tasks": "Tarefas", "results": "Resultados", "applySpatialFilterToLimitResults": "Aplique um filtro espacial para limitar os resultados", "useCurrentExtentTip": "Parcialmente ou totalmente no contido na atual extensão de mapa", "useDrawGraphicTip": "Parcialmente ou totalmente no contido na forma desenhada no mapa", "useFeaturesTip": "Baseado nas respetivas localizações em relação a elementos noutra camada", "noSpatialLimitTip": "Não limita resultados espacialmente", "applySearchDistance": "Aplique uma distância de pesquisa", "spatialRelationship": "Relação Espacial", "relatedLayer": "Camada Relacionada", "clear": "Limpar", "bufferDistance": "Distância do Buffer", "miles": "Milhas", "kilometers": "Quilômetros", "feet": "Pés", "meters": "Metros", "yards": "Jardas", "nauticalMiles": "Milhas Náuticas", "back": "Retroceder", "execute": "Executar", "enlarge": "Aumentar", "setting": "Definição" });
cmccullough2/cmv-wab-widgets
wab/2.3/widgets/Chart/nls/pt-pt/strings.js
JavaScript
mit
2,128
/* ____ | _ \ __ _ _ __ ___ ___ __ _ Parcoa - Objective-C Parser Combinators | |_) / _` | '__/ __/ _ \ / _` | | __/ (_| | | | (_| (_) | (_| | Copyright (c) 2012,2013 James Brotchie |_| \__,_|_| \___\___/ \__,_| https://github.com/brotchie/Parcoa The MIT License Copyright (c) 2012,2013 James Brotchie - brotchie@gmail.com - @brotchie Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #import "ParcoaPredicate.h" @interface ParcoaPredicate () - (id)initWithBlock:(ParcoaPredicateBlock)block name:(NSString *)name summary:(NSString *)summary; @end @implementation ParcoaPredicate @synthesize name = _name; @synthesize summary = _summary; + (ParcoaPredicate *)predicateWithBlock:(ParcoaPredicateBlock)block name:(NSString *)name summary:(NSString *)summary { return [[ParcoaPredicate alloc] initWithBlock:block name:name summary:summary]; } + (ParcoaPredicate *)predicateWithBlock:(ParcoaPredicateBlock)block name:(NSString *)name summaryWithFormat:(NSString *)format, ... { va_list args; va_start(args, format); NSString *summary = [[NSString alloc] initWithFormat:format arguments:args]; va_end(args); return [ParcoaPredicate predicateWithBlock:block name:name summary:summary]; } - (ParcoaPredicate *)predicateWithName:(NSString *)name summary:(NSString *)summary { return [ParcoaPredicate predicateWithBlock:_block name:name summary:summary]; } - (ParcoaPredicate *)predicateWithName:(NSString *)name summaryWithFormat:(NSString *)format, ... { va_list args; va_start(args, format); NSString *summary = [[NSString alloc] initWithFormat:format arguments:args]; va_end(args); return [self predicateWithName:name summary:summary]; } - (BOOL)check:(unichar)c { return _block(c); } - (NSString *)description { return [NSString stringWithFormat:@"%@(%@)", self.name, self.summary]; } #pragma mark - Private Methods - (id)initWithBlock:(ParcoaPredicateBlock)block name:(NSString *)name summary:(NSString *)summary { self = [super init]; if (self) { _block = block; _name = name; _summary = summary; } return self; } @end
brotchie/Parcoa
Parcoa/ParcoaPredicate.m
Matlab
mit
3,178
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Qt 4.8: mainwindow.h Example File (widgets/tablet/mainwindow.h)</title> <link rel="stylesheet" type="text/css" href="style/style.css" /> <script src="scripts/jquery.js" type="text/javascript"></script> <script src="scripts/functions.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="style/superfish.css" /> <link rel="stylesheet" type="text/css" href="style/narrow.css" /> <!--[if IE]> <meta name="MSSmartTagsPreventParsing" content="true"> <meta http-equiv="imagetoolbar" content="no"> <![endif]--> <!--[if lt IE 7]> <link rel="stylesheet" type="text/css" href="style/style_ie6.css"> <![endif]--> <!--[if IE 7]> <link rel="stylesheet" type="text/css" href="style/style_ie7.css"> <![endif]--> <!--[if IE 8]> <link rel="stylesheet" type="text/css" href="style/style_ie8.css"> <![endif]--> <script src="scripts/superfish.js" type="text/javascript"></script> <script src="scripts/narrow.js" type="text/javascript"></script> </head> <body class="" onload="CheckEmptyAndLoadList();"> <div class="header" id="qtdocheader"> <div class="content"> <div id="nav-logo"> <a href="index.html">Home</a></div> <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a> <div id="narrowsearch"></div> <div id="nav-topright"> <ul> <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li> <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li> <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/"> DOC</a></li> <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li> </ul> </div> <div id="shortCut"> <ul> <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li> <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS </a></li> </ul> </div> <ul class="sf-menu" id="narrowmenu"> <li><a href="#">API Lookup</a> <ul> <li><a href="classes.html">Class index</a></li> <li><a href="functions.html">Function index</a></li> <li><a href="modules.html">Modules</a></li> <li><a href="namespaces.html">Namespaces</a></li> <li><a href="qtglobal.html">Global Declarations</a></li> <li><a href="qdeclarativeelements.html">QML elements</a></li> </ul> </li> <li><a href="#">Qt Topics</a> <ul> <li><a href="qt-basic-concepts.html">Programming with Qt</a></li> <li><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li> <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li> <li><a href="supported-platforms.html">Supported Platforms</a></li> <li><a href="technology-apis.html">Qt and Key Technologies</a></li> <li><a href="best-practices.html">How-To's and Best Practices</a></li> </ul> </li> <li><a href="#">Examples</a> <ul> <li><a href="all-examples.html">Examples</a></li> <li><a href="tutorials.html">Tutorials</a></li> <li><a href="demos.html">Demos</a></li> <li><a href="qdeclarativeexamples.html">QML Examples</a></li> </ul> </li> </ul> </div> </div> <div class="wrapper"> <div class="hd"> <span></span> </div> <div class="bd group"> <div class="sidebar"> <div class="searchlabel"> Search index:</div> <div class="search" id="sidebarsearch"> <form id="qtdocsearch" action="" onsubmit="return false;"> <fieldset> <input type="text" name="searchstring" id="pageType" value="" /> <div id="resultdialog"> <a href="#" id="resultclose">Close</a> <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span>&nbsp;results:</p> <ul id="resultlist" class="all"> </ul> </div> </fieldset> </form> </div> <div class="box first bottombar" id="lookup"> <h2 title="API Lookup"><span></span> API Lookup</h2> <div id="list001" class="list"> <ul id="ul001" > <li class="defaultLink"><a href="classes.html">Class index</a></li> <li class="defaultLink"><a href="functions.html">Function index</a></li> <li class="defaultLink"><a href="modules.html">Modules</a></li> <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li> <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li> <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li> </ul> </div> </div> <div class="box bottombar" id="topics"> <h2 title="Qt Topics"><span></span> Qt Topics</h2> <div id="list002" class="list"> <ul id="ul002" > <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> <li class="defaultLink"><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li> <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li> <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> </ul> </div> </div> <div class="box" id="examples"> <h2 title="Examples"><span></span> Examples</h2> <div id="list003" class="list"> <ul id="ul003"> <li class="defaultLink"><a href="all-examples.html">Examples</a></li> <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li> <li class="defaultLink"><a href="demos.html">Demos</a></li> <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li> </ul> </div> </div> </div> <div class="wrap"> <div class="toolbar"> <div class="breadcrumb toolblock"> <ul> <li class="first"><a href="index.html">Home</a></li> <!-- Breadcrumbs go here --> </ul> </div> <div class="toolbuttons toolblock"> <ul> <li id="smallA" class="t_button">A</li> <li id="medA" class="t_button active">A</li> <li id="bigA" class="t_button">A</li> <li id="print" class="t_button"><a href="javascript:this.print();"> <span>Print</span></a></li> </ul> </div> </div> <div class="content mainContent"> <h1 class="title">mainwindow.h Example File</h1> <span class="small-subtitle">widgets/tablet/mainwindow.h</span> <!-- $$$widgets/tablet/mainwindow.h-description --> <div class="descr"> <a name="details"></a> <pre class="cpp"> <span class="comment">/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms of the BSD license as follows: ** ** &quot;Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the following conditions are ** met: ** * Redistributions of source code must retain the above copyright ** notice, this list of conditions and the following disclaimer. ** * Redistributions in binary form must reproduce the above copyright ** notice, this list of conditions and the following disclaimer in ** the documentation and/or other materials provided with the ** distribution. ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names ** of its contributors may be used to endorse or promote products derived ** from this software without specific prior written permission. ** ** ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ** &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.&quot; ** ** $QT_END_LICENSE$ ** ****************************************************************************/</span> <span class="preprocessor">#ifndef MAINWINDOW_H</span> <span class="preprocessor">#define MAINWINDOW_H</span> <span class="preprocessor">#include &lt;QMainWindow&gt;</span> <span class="keyword">class</span> <span class="type"><a href="qaction.html">QAction</a></span>; <span class="keyword">class</span> <span class="type"><a href="qactiongroup.html">QActionGroup</a></span>; <span class="keyword">class</span> <span class="type"><a href="qmenu.html">QMenu</a></span>; <span class="keyword">class</span> <span class="type"><a href="qstatusbar.html">QStatusBar</a></span>; <span class="keyword">class</span> TabletCanvas; <span class="keyword">class</span> MainWindow : <span class="keyword">public</span> <span class="type"><a href="qmainwindow.html">QMainWindow</a></span> { Q_OBJECT <span class="keyword">public</span>: MainWindow(TabletCanvas <span class="operator">*</span>canvas); <span class="keyword">private</span> <span class="keyword">slots</span>: <span class="type">void</span> brushColorAct(); <span class="type">void</span> alphaActionTriggered(<span class="type"><a href="qaction.html">QAction</a></span> <span class="operator">*</span>action); <span class="type">void</span> lineWidthActionTriggered(<span class="type"><a href="qaction.html">QAction</a></span> <span class="operator">*</span>action); <span class="type">void</span> saturationActionTriggered(<span class="type"><a href="qaction.html">QAction</a></span> <span class="operator">*</span>action); <span class="type">void</span> saveAct(); <span class="type">void</span> loadAct(); <span class="type">void</span> aboutAct(); <span class="keyword">private</span>: <span class="type">void</span> createActions(); <span class="type">void</span> createMenus(); TabletCanvas <span class="operator">*</span>myCanvas; <span class="type"><a href="qaction.html">QAction</a></span> <span class="operator">*</span>brushColorAction; <span class="type"><a href="qactiongroup.html">QActionGroup</a></span> <span class="operator">*</span>brushActionGroup; <span class="type"><a href="qactiongroup.html">QActionGroup</a></span> <span class="operator">*</span>alphaChannelGroup; <span class="type"><a href="qaction.html">QAction</a></span> <span class="operator">*</span>alphaChannelPressureAction; <span class="type"><a href="qaction.html">QAction</a></span> <span class="operator">*</span>alphaChannelTiltAction; <span class="type"><a href="qaction.html">QAction</a></span> <span class="operator">*</span>noAlphaChannelAction; <span class="type"><a href="qactiongroup.html">QActionGroup</a></span> <span class="operator">*</span>colorSaturationGroup; <span class="type"><a href="qaction.html">QAction</a></span> <span class="operator">*</span>colorSaturationVTiltAction; <span class="type"><a href="qaction.html">QAction</a></span> <span class="operator">*</span>colorSaturationHTiltAction; <span class="type"><a href="qaction.html">QAction</a></span> <span class="operator">*</span>colorSaturationPressureAction; <span class="type"><a href="qaction.html">QAction</a></span> <span class="operator">*</span>noColorSaturationAction; <span class="type"><a href="qactiongroup.html">QActionGroup</a></span> <span class="operator">*</span>lineWidthGroup; <span class="type"><a href="qaction.html">QAction</a></span> <span class="operator">*</span>lineWidthPressureAction; <span class="type"><a href="qaction.html">QAction</a></span> <span class="operator">*</span>lineWidthTiltAction; <span class="type"><a href="qaction.html">QAction</a></span> <span class="operator">*</span>lineWidthFixedAction; <span class="type"><a href="qaction.html">QAction</a></span> <span class="operator">*</span>exitAction; <span class="type"><a href="qaction.html">QAction</a></span> <span class="operator">*</span>saveAction; <span class="type"><a href="qaction.html">QAction</a></span> <span class="operator">*</span>loadAction; <span class="type"><a href="qaction.html">QAction</a></span> <span class="operator">*</span>aboutAction; <span class="type"><a href="qaction.html">QAction</a></span> <span class="operator">*</span>aboutQtAction; <span class="type"><a href="qmenu.html">QMenu</a></span> <span class="operator">*</span>fileMenu; <span class="type"><a href="qmenu.html">QMenu</a></span> <span class="operator">*</span>brushMenu; <span class="type"><a href="qmenu.html">QMenu</a></span> <span class="operator">*</span>tabletMenu; <span class="type"><a href="qmenu.html">QMenu</a></span> <span class="operator">*</span>helpMenu; <span class="type"><a href="qmenu.html">QMenu</a></span> <span class="operator">*</span>colorSaturationMenu; <span class="type"><a href="qmenu.html">QMenu</a></span> <span class="operator">*</span>lineWidthMenu; <span class="type"><a href="qmenu.html">QMenu</a></span> <span class="operator">*</span>alphaChannelMenu; }; <span class="preprocessor">#endif</span></pre> </div> <!-- @@@widgets/tablet/mainwindow.h --> </div> </div> </div> <div class="ft"> <span></span> </div> </div> <div class="footer"> <p> <acronym title="Copyright">&copy;</acronym> 2013 Digia Plc and/or its subsidiaries. Documentation contributions included herein are the copyrights of their respective owners.</p> <br /> <p> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.</p> <p> Documentation sources may be obtained from <a href="http://www.qt-project.org"> www.qt-project.org</a>.</p> <br /> <p> Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. <a title="Privacy Policy" href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p> </div> <script src="scripts/functions.js" type="text/javascript"></script> </body> </html>
stephaneAG/PengPod700
QtEsrc/backup_qt/qt-everywhere-opensource-src-4.8.5/doc/html/widgets-tablet-mainwindow-h.html
HTML
mit
16,395
<!doctype html> <html> <title>npm-ls</title> <meta http-equiv="content-type" value="text/html;utf-8"> <link rel="stylesheet" type="text/css" href="../../static/style.css"> <link rel="canonical" href="https://www.npmjs.org/doc/api/npm-ls.html"> <script async=true src="../../static/toc.js"></script> <body> <div id="wrapper"> <h1><a href="../api/npm-ls.html">npm-ls</a></h1> <p>List installed packages</p> <h2 id="synopsis">SYNOPSIS</h2> <pre><code>npm.commands.ls(args, [silent,] callback) </code></pre><h2 id="description">DESCRIPTION</h2> <p>This command will print to stdout all the versions of packages that are installed, as well as their dependencies, in a tree-structure. It will also return that data using the callback.</p> <p>This command does not take any arguments, but args must be defined. Beyond that, if any arguments are passed in, npm will politely warn that it does not take positional arguments, though you may set config flags like with any other command, such as <code>global</code> to list global packages.</p> <p>It will print out extraneous, missing, and invalid packages.</p> <p>If the silent parameter is set to true, nothing will be output to the screen, but the data will still be returned.</p> <p>Callback is provided an error if one occurred, the full data about which packages are installed and which dependencies they will receive, and a &quot;lite&quot; data object which just shows which versions are installed where. Note that the full data object is a circular structure, so care must be taken if it is serialized to JSON.</p> <h2 id="configuration">CONFIGURATION</h2> <h3 id="long">long</h3> <ul> <li>Default: false</li> <li>Type: Boolean</li> </ul> <p>Show extended information.</p> <h3 id="parseable">parseable</h3> <ul> <li>Default: false</li> <li>Type: Boolean</li> </ul> <p>Show parseable output instead of tree view.</p> <h3 id="global">global</h3> <ul> <li>Default: false</li> <li>Type: Boolean</li> </ul> <p>List packages in the global install prefix instead of in the current project.</p> <p>Note, if parseable is set or long isn&#39;t set, then duplicates will be trimmed. This means that if a submodule has the same dependency as a parent module, then the dependency will only be output once.</p> </div> <table border=0 cellspacing=0 cellpadding=0 id=npmlogo> <tr><td style="width:180px;height:10px;background:rgb(237,127,127)" colspan=18>&nbsp;</td></tr> <tr><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td colspan=6 style="width:60px;height:10px;background:#fff">&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td></tr> <tr><td colspan=2 style="width:20px;height:30px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=4 colspan=2>&nbsp;</td><td style="width:10px;height:20px;background:rgb(237,127,127)" rowspan=2>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=3 colspan=2>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td></tr> <tr><td style="width:10px;height:10px;background:#fff" rowspan=2>&nbsp;</td></tr> <tr><td style="width:10px;height:10px;background:#fff">&nbsp;</td></tr> <tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6>&nbsp;</td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td></tr> <tr><td colspan=5 style="width:50px;height:10px;background:#fff">&nbsp;</td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4>&nbsp;</td><td style="width:90px;height:10px;background:#fff" colspan=9>&nbsp;</td></tr> </table> <p id="footer">npm-ls &mdash; npm@2.12.1</p>
chirilo/ana-ka-todo-app
node_modules/laravel-elixir/node_modules/npm/html/doc/api/npm-ls.html
HTML
mit
4,421
import _extends from "@babel/runtime/helpers/esm/extends"; import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray"; import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; import * as React from 'react'; import clsx from 'clsx'; import PropTypes from 'prop-types'; import { chainPropTypes } from '@material-ui/utils'; import { Transition } from 'react-transition-group'; import withStyles from '../styles/withStyles'; import { duration } from '../styles/transitions'; import deprecatedPropType from '../utils/deprecatedPropType'; import { getTransitionProps } from '../transitions/utils'; import useTheme from '../styles/useTheme'; import { useForkRef } from '../utils'; export var styles = function styles(theme) { return { /* Styles applied to the root element. */ root: { height: 0, overflow: 'hidden', transition: theme.transitions.create('height') }, /* Styles applied to the root element when the transition has entered. */ entered: { height: 'auto', overflow: 'visible' }, /* Styles applied to the root element when the transition has exited and `collapsedSize` != 0px. */ hidden: { visibility: 'hidden' }, /* Styles applied to the outer wrapper element. */ wrapper: { // Hack to get children with a negative margin to not falsify the height computation. display: 'flex' }, /* Styles applied to the inner wrapper element. */ wrapperInner: { width: '100%' } }; }; /** * The Collapse transition is used by the * [Vertical Stepper](/components/steppers/#vertical-stepper) StepContent component. * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally. */ var Collapse = /*#__PURE__*/React.forwardRef(function Collapse(props, ref) { var children = props.children, classes = props.classes, className = props.className, collapsedHeight = props.collapsedHeight, _props$collapsedSize = props.collapsedSize, collapsedSizeProp = _props$collapsedSize === void 0 ? '0px' : _props$collapsedSize, _props$component = props.component, Component = _props$component === void 0 ? 'div' : _props$component, _props$disableStrictM = props.disableStrictModeCompat, disableStrictModeCompat = _props$disableStrictM === void 0 ? false : _props$disableStrictM, inProp = props.in, onEnter = props.onEnter, onEntered = props.onEntered, onEntering = props.onEntering, onExit = props.onExit, onExited = props.onExited, onExiting = props.onExiting, style = props.style, _props$timeout = props.timeout, timeout = _props$timeout === void 0 ? duration.standard : _props$timeout, _props$TransitionComp = props.TransitionComponent, TransitionComponent = _props$TransitionComp === void 0 ? Transition : _props$TransitionComp, other = _objectWithoutProperties(props, ["children", "classes", "className", "collapsedHeight", "collapsedSize", "component", "disableStrictModeCompat", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"]); var theme = useTheme(); var timer = React.useRef(); var wrapperRef = React.useRef(null); var autoTransitionDuration = React.useRef(); var collapsedSize = typeof (collapsedHeight || collapsedSizeProp) === 'number' ? "".concat(collapsedHeight || collapsedSizeProp, "px") : collapsedHeight || collapsedSizeProp; React.useEffect(function () { return function () { clearTimeout(timer.current); }; }, []); var enableStrictModeCompat = theme.unstable_strictMode && !disableStrictModeCompat; var nodeRef = React.useRef(null); var handleRef = useForkRef(ref, enableStrictModeCompat ? nodeRef : undefined); var normalizedTransitionCallback = function normalizedTransitionCallback(callback) { return function (nodeOrAppearing, maybeAppearing) { if (callback) { var _ref = enableStrictModeCompat ? [nodeRef.current, nodeOrAppearing] : [nodeOrAppearing, maybeAppearing], _ref2 = _slicedToArray(_ref, 2), node = _ref2[0], isAppearing = _ref2[1]; // onEnterXxx and onExitXxx callbacks have a different arguments.length value. if (isAppearing === undefined) { callback(node); } else { callback(node, isAppearing); } } }; }; var handleEnter = normalizedTransitionCallback(function (node, isAppearing) { node.style.height = collapsedSize; if (onEnter) { onEnter(node, isAppearing); } }); var handleEntering = normalizedTransitionCallback(function (node, isAppearing) { var wrapperHeight = wrapperRef.current ? wrapperRef.current.clientHeight : 0; var _getTransitionProps = getTransitionProps({ style: style, timeout: timeout }, { mode: 'enter' }), transitionDuration = _getTransitionProps.duration; if (timeout === 'auto') { var duration2 = theme.transitions.getAutoHeightDuration(wrapperHeight); node.style.transitionDuration = "".concat(duration2, "ms"); autoTransitionDuration.current = duration2; } else { node.style.transitionDuration = typeof transitionDuration === 'string' ? transitionDuration : "".concat(transitionDuration, "ms"); } node.style.height = "".concat(wrapperHeight, "px"); if (onEntering) { onEntering(node, isAppearing); } }); var handleEntered = normalizedTransitionCallback(function (node, isAppearing) { node.style.height = 'auto'; if (onEntered) { onEntered(node, isAppearing); } }); var handleExit = normalizedTransitionCallback(function (node) { var wrapperHeight = wrapperRef.current ? wrapperRef.current.clientHeight : 0; node.style.height = "".concat(wrapperHeight, "px"); if (onExit) { onExit(node); } }); var handleExited = normalizedTransitionCallback(onExited); var handleExiting = normalizedTransitionCallback(function (node) { var wrapperHeight = wrapperRef.current ? wrapperRef.current.clientHeight : 0; var _getTransitionProps2 = getTransitionProps({ style: style, timeout: timeout }, { mode: 'exit' }), transitionDuration = _getTransitionProps2.duration; if (timeout === 'auto') { var duration2 = theme.transitions.getAutoHeightDuration(wrapperHeight); node.style.transitionDuration = "".concat(duration2, "ms"); autoTransitionDuration.current = duration2; } else { node.style.transitionDuration = typeof transitionDuration === 'string' ? transitionDuration : "".concat(transitionDuration, "ms"); } node.style.height = collapsedSize; if (onExiting) { onExiting(node); } }); var addEndListener = function addEndListener(nodeOrNext, maybeNext) { var next = enableStrictModeCompat ? nodeOrNext : maybeNext; if (timeout === 'auto') { timer.current = setTimeout(next, autoTransitionDuration.current || 0); } }; return /*#__PURE__*/React.createElement(TransitionComponent, _extends({ in: inProp, onEnter: handleEnter, onEntered: handleEntered, onEntering: handleEntering, onExit: handleExit, onExited: handleExited, onExiting: handleExiting, addEndListener: addEndListener, nodeRef: enableStrictModeCompat ? nodeRef : undefined, timeout: timeout === 'auto' ? null : timeout }, other), function (state, childProps) { return /*#__PURE__*/React.createElement(Component, _extends({ className: clsx(classes.root, classes.container, className, { 'entered': classes.entered, 'exited': !inProp && collapsedSize === '0px' && classes.hidden }[state]), style: _extends({ minHeight: collapsedSize }, style), ref: handleRef }, childProps), /*#__PURE__*/React.createElement("div", { className: classes.wrapper, ref: wrapperRef }, /*#__PURE__*/React.createElement("div", { className: classes.wrapperInner }, children))); }); }); process.env.NODE_ENV !== "production" ? Collapse.propTypes = { // ----------------------------- Warning -------------------------------- // | These PropTypes are generated from the TypeScript type definitions | // | To update them edit the d.ts file and run "yarn proptypes" | // ---------------------------------------------------------------------- /** * The content node to be collapsed. */ children: PropTypes.node, /** * Override or extend the styles applied to the component. * See [CSS API](#css) below for more details. */ classes: chainPropTypes(PropTypes.object, function (props) { if (props.classes && props.classes.container) { throw new Error(['Material-UI: the classes.container key is deprecated.', 'Use `classes.root` instead', 'The name of the pseudo-class was changed for consistency.']).join('\n'); } return null; }), /** * @ignore */ className: PropTypes.string, /** * The height of the container when collapsed. * @deprecated The prop was renamed to support the addition of horizontal orientation, use `collapsedSize` instead. */ collapsedHeight: deprecatedPropType(PropTypes.oneOfType([PropTypes.number, PropTypes.string]), 'The prop was renamed to support the vertical orientation, use `collapsedSize` instead'), /** * The height of the container when collapsed. */ collapsedSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]), /** * The component used for the root node. * Either a string to use a HTML element or a component. */ component: PropTypes /* @typescript-to-proptypes-ignore */ .elementType, /** * Enable this prop if you encounter 'Function components cannot be given refs', * use `unstable_createStrictModeTheme`, * and can't forward the ref in the passed `Component`. */ disableStrictModeCompat: PropTypes.bool, /** * If `true`, the component will transition in. */ in: PropTypes.bool, /** * @ignore */ onEnter: PropTypes.func, /** * @ignore */ onEntered: PropTypes.func, /** * @ignore */ onEntering: PropTypes.func, /** * @ignore */ onExit: PropTypes.func, /** * @ignore */ onExited: PropTypes.func, /** * @ignore */ onExiting: PropTypes.func, /** * @ignore */ style: PropTypes.object, /** * The duration for the transition, in milliseconds. * You may specify a single timeout for all transitions, or individually with an object. * * Set to 'auto' to automatically calculate transition time based on height. */ timeout: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({ appear: PropTypes.number, enter: PropTypes.number, exit: PropTypes.number })]) } : void 0; Collapse.muiSupportAuto = true; export default withStyles(styles, { name: 'MuiCollapse' })(Collapse);
cdnjs/cdnjs
ajax/libs/material-ui/4.11.3-deprecations.1/esm/Collapse/Collapse.js
JavaScript
mit
11,051
// Derived from TS typings at https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/icepick declare module 'icepick' { declare function freeze<T>(collection: T): T; declare function thaw<T>(collection: T): T; declare function assoc<T, V>(collection: T, key: number | string, value: V): T; declare function set<T, V>(collection: T, key: number | string, value: V): T; declare function dissoc<T>(collection: T, key: number | string): T; declare function unset<T>(collection: T, key: number | string): T; declare function assocIn<T, V>(collection: T, path: (number | string)[], value: V): T; declare function setIn<T, V>(collection: T, path: (number | string)[], value: V): T; declare function getIn<T>(collection: T, path: (number | string)[]): any; declare function updateIn<T, V>( collection: T, path: (number | string)[], callback: (value: V) => V, ): T; declare function assign<T>(target: T): T; declare function assign<T, S1>(target: T, source1: S1): T & S1; declare function assign<T, S1, S2>(target: T, s1: S1, s2: S2): T & S1 & S2; declare function assign<T, S1, S2, S3>(target: T, s1: S1, s2: S2, s3: S3): T & S1 & S2 & S3; declare function assign<T, S1, S2, S3, S4>( target: T, s1: S1, s2: S2, s3: S3, s4: S4, ): T & S1 & S2 & S3 & S4; declare function extend<T>(target: T): T; declare function extend<T, S1>(target: T, source1: S1): T & S1; declare function extend<T, S1, S2>(target: T, s1: S1, s2: S2): T & S1 & S2; declare function extend<T, S1, S2, S3>(target: T, s1: S1, s2: S2, s3: S3): T & S1 & S2 & S3; declare function extend<T, S1, S2, S3, S4>( target: T, s1: S1, s2: S2, s3: S3, s4: S4, ): T & S1 & S2 & S3 & S4; declare function merge<T, S1>(target: T, source: S1, resolver?: (target: any, source: any, key: string) => any): T & S1; declare function push<T>(array: T[], element: T): T[]; declare function pop<T>(array: T[]): T[]; declare function shift<T>(array: T[]): T[]; declare function unshift<T>(array: T[], element: T): T[]; declare function reverse<T>(array: T[]): T[]; declare function sort<T>(array: T[], compareFunction?: (a: T, b: T) => number): T[]; declare function splice<T>(array: T[], start: number, deleteCount: number, ...items: T[]): T[]; declare function slice<T>(array: T[], begin?: number, end?: number): T[]; declare function map<T, U>(fn: (value: T) => U, array: T[]): U[]; declare function filter<T>(fn: (value: T) => boolean, array: T[]): T[]; declare class IcepickWrapper<T> { value(): T; freeze(): IcepickWrapper<T>; thaw(): IcepickWrapper<T>; assoc<V>(key: number | string, value: V): IcepickWrapper<T>; set<V>(key: number | string, value: V): IcepickWrapper<T>; dissoc(key: number | string): IcepickWrapper<T>; unset(key: number | string): IcepickWrapper<T>; assocIn<V>(path: (number | string)[], value: V): IcepickWrapper<T>; setIn<V>(path: (number | string)[], value: V): IcepickWrapper<T>; getIn(path: (number | string)[]): IcepickWrapper<any>; updateIn<V>(path: (number | string)[], callback: (value: V) => V): IcepickWrapper<T>; assign<S1>(source1: S1): IcepickWrapper<T & S1>; assign<S1, S2>(s1: S1, s2: S2): IcepickWrapper<T & S1 & S2>; assign<S1, S2, S3>(s1: S1, s2: S2, s3: S3): IcepickWrapper<T & S1 & S2 & S3>; assign<S1, S2, S3, S4>( s1: S1, s2: S2, s3: S3, s4: S4, ): IcepickWrapper<T & S1 & S2 & S3 & S4>; extend<S1>(source1: S1): IcepickWrapper<T & S1>; extend<S1, S2>(s1: S1, s2: S2): IcepickWrapper<T & S1 & S2>; extend<S1, S2, S3>(s1: S1, s2: S2, s3: S3): IcepickWrapper<T & S1 & S2 & S3>; extend<S1, S2, S3, S4>( s1: S1, s2: S2, s3: S3, s4: S4, ): IcepickWrapper<T & S1 & S2 & S3 & S4>; merge<S1>(source: S1): IcepickWrapper<T & S1>; thru((val: T) => T): IcepickWrapper<T>; } declare class IcepickArrayWrapper<T> { value(): T[]; assoc(path: number, value: T): IcepickArrayWrapper<T>; set(key: number, value: T): IcepickArrayWrapper<T>; dissoc(key: number): IcepickArrayWrapper<T>; unset(key: number): IcepickArrayWrapper<T | null>; push(element: T): IcepickArrayWrapper<T>; pop(): IcepickArrayWrapper<T>; shift(): IcepickArrayWrapper<T>; unshift(element: T): IcepickArrayWrapper<T>; reverse(): IcepickArrayWrapper<T>; sort(compareFunction?: (a: T, b: T) => number): IcepickArrayWrapper<T>; splice(startIndex: number, deleteCount: number, ...items?: T[]): IcepickArrayWrapper<T>; slice(begin?: number, end?: number): IcepickArrayWrapper<T>; map<U>(fn: (value: T) => U): IcepickArrayWrapper<U>; filter(fn: (value: T) => boolean): IcepickArrayWrapper<T>; thru((val: T[]) => T[]): IcepickArrayWrapper<T>; } declare function chain<T: Object>(target: T): IcepickWrapper<T>; declare function chain<T>(target: T[]): IcepickArrayWrapper<T>; }
orlandoc01/flow-typed
definitions/npm/icepick_v1.x.x/flow_v0.47.x-/icepick_v1.x.x.js
JavaScript
mit
5,300
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link href="http://gmpg.org/xfn/11" rel="profile"> <!-- Enable responsiveness on mobile devices--> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1"> <title> Data Carpentry &middot; Making data science more efficient </title> <!-- CSS --> <link rel="stylesheet" href="/public/css/poole.css"> <link rel="stylesheet" href="/public/css/syntax.css"> <!-- Icons --> <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/public/apple-touch-icon-precomposed.png"> <link rel="shortcut icon" href="/public/favicon.ico"> <!-- RSS --> <link rel="alternate" type="application/atom+xml" title="Data Carpentry" href="/atom.xml"> </head> <body> <div class="container content"> <header class="masthead"> <h3 class="masthead-title"> <a href="/" title="Home">Data Carpentry</a> <small>Making data science more efficient</small> <br> &nbsp;&nbsp;&nbsp; <small><a href="/about">About</a></small> &nbsp;&nbsp;&nbsp; <small><a href="/archive">Archive</a></small> &nbsp;&nbsp;&nbsp; <small><a href="/atom.atom">Feed</a></small> </h3> </header> <main> <div class="posts"> <article class="post"> <h1 class="post-title"> <a href="/2014/11/04/first/"> Data Carpentry Blog </a> </h1> <time datetime="2014-11-04T00:00:00-05:00" class="post-date">04 Nov 2014</time> <p>Data Carpentry has now established a blog for announcements or posts on topics of interest for Data Carpentry enthusiasts. If you have a topic for a post or would like to guest post here, please let us know!</p> <p>Learn more and contribute on <a href="https://github.com/datacarpentry">GitHub</a>.</p> <h3 id="browser-support">Browser support</h3> <p>This should work on all browsers</p> <h3 id="thanks">Thanks</h3> <p>Thanks to everyone who’s been enthusiastic about Data Carpentry or contributed so far!</p> </article> </div> <div class="pagination"> <span class="pagination-item older">Older</span> <span class="pagination-item newer">Newer</span> </div> </main> <!-- Add Disqus comments. --> <div id="disqus_thread"></div> <script type="text/javascript"> /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ var disqus_shortname = 'datacarpentry'; // required: replace example with your forum shortname /* * * DON'T EDIT BELOW THIS LINE * * */ (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })(); </script> <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> <footer class="footer"> <small> &copy; <time datetime="2014-11-04T14:39:31-05:00">2014</time>. All rights reserved. </small> </footer> </div> </body> </html>
ethanwhite/datacarpentry-blog
_site/index.html
HTML
mit
3,289
'use strict'; module.exports = { db: 'mongodb://localhost/mymeanapp-test', port: 3001, app: { title: 'myMeanApp - Test Environment' }, facebook: { clientID: process.env.FACEBOOK_ID || 'APP_ID', clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET', callbackURL: '/auth/facebook/callback' }, twitter: { clientID: process.env.TWITTER_KEY || 'CONSUMER_KEY', clientSecret: process.env.TWITTER_SECRET || 'CONSUMER_SECRET', callbackURL: '/auth/twitter/callback' }, google: { clientID: process.env.GOOGLE_ID || 'APP_ID', clientSecret: process.env.GOOGLE_SECRET || 'APP_SECRET', callbackURL: '/auth/google/callback' }, linkedin: { clientID: process.env.LINKEDIN_ID || 'APP_ID', clientSecret: process.env.LINKEDIN_SECRET || 'APP_SECRET', callbackURL: '/auth/linkedin/callback' }, github: { clientID: process.env.GITHUB_ID || 'APP_ID', clientSecret: process.env.GITHUB_SECRET || 'APP_SECRET', callbackURL: '/auth/github/callback' }, mailer: { from: process.env.MAILER_FROM || 'MAILER_FROM', options: { service: process.env.MAILER_SERVICE_PROVIDER || 'MAILER_SERVICE_PROVIDER', auth: { user: process.env.MAILER_EMAIL_ID || 'MAILER_EMAIL_ID', pass: process.env.MAILER_PASSWORD || 'MAILER_PASSWORD' } } } };
hemanj/myMeanApp
config/env/test.js
JavaScript
mit
1,271
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="description" content="Javadoc API documentation for Fresco." /> <link rel="shortcut icon" type="image/x-icon" href="../../../../favicon.ico" /> <title> com.facebook.common.disk - Fresco API | Fresco </title> <link href="../../../../../assets/doclava-developer-docs.css" rel="stylesheet" type="text/css" /> <link href="../../../../../assets/customizations.css" rel="stylesheet" type="text/css" /> <script src="../../../../../assets/search_autocomplete.js" type="text/javascript"></script> <script src="../../../../../assets/jquery-resizable.min.js" type="text/javascript"></script> <script src="../../../../../assets/doclava-developer-docs.js" type="text/javascript"></script> <script src="../../../../../assets/prettify.js" type="text/javascript"></script> <script type="text/javascript"> setToRoot("../../../../", "../../../../../assets/"); </script> <script src="../../../../../assets/doclava-developer-reference.js" type="text/javascript"></script> <script src="../../../../../assets/navtree_data.js" type="text/javascript"></script> <script src="../../../../../assets/customizations.js" type="text/javascript"></script> <noscript> <style type="text/css"> html,body{overflow:auto;} #body-content{position:relative; top:0;} #doc-content{overflow:visible;border-left:3px solid #666;} #side-nav{padding:0;} #side-nav .toggle-list ul {display:block;} #resize-packages-nav{border-bottom:3px solid #666;} </style> </noscript> </head> <body class=""> <div id="header"> <div id="headerLeft"> <span id="masthead-title"><a href="../../../../packages.html">Fresco</a></span> </div> <div id="headerRight"> <div id="search" > <div id="searchForm"> <form accept-charset="utf-8" class="gsc-search-box" onsubmit="return submit_search()"> <table class="gsc-search-box" cellpadding="0" cellspacing="0"><tbody> <tr> <td class="gsc-input"> <input id="search_autocomplete" class="gsc-input" type="text" size="33" autocomplete="off" title="search developer docs" name="q" value="search developer docs" onFocus="search_focus_changed(this, true)" onBlur="search_focus_changed(this, false)" onkeydown="return search_changed(event, true, '../../../../')" onkeyup="return search_changed(event, false, '../../../../')" /> <div id="search_filtered_div" class="no-display"> <table id="search_filtered" cellspacing=0> </table> </div> </td> <!-- <td class="gsc-search-button"> <input type="submit" value="Search" title="search" id="search-button" class="gsc-search-button" /> </td> <td class="gsc-clear-button"> <div title="clear results" class="gsc-clear-button">&nbsp;</div> </td> --> </tr></tbody> </table> </form> </div><!-- searchForm --> </div><!-- search --> </div> </div><!-- header --> <div class="g-section g-tpl-240" id="body-content"> <div class="g-unit g-first side-nav-resizable" id="side-nav"> <div id="swapper"> <div id="nav-panels"> <div id="resize-packages-nav"> <div id="packages-nav"> <div id="index-links"> <a href="../../../../packages.html" >Packages</a> | <a href="../../../../classes.html" >Classes</a> </div> <ul> <li class="api apilevel-"> <a href="../../../../com/facebook/animated/gif/package-summary.html">com.facebook.animated.gif</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/animated/webp/package-summary.html">com.facebook.animated.webp</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/binaryresource/package-summary.html">com.facebook.binaryresource</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/cache/common/package-summary.html">com.facebook.cache.common</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/cache/disk/package-summary.html">com.facebook.cache.disk</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/activitylistener/package-summary.html">com.facebook.common.activitylistener</a></li> <li class="selected api apilevel-"> <a href="../../../../com/facebook/common/disk/package-summary.html">com.facebook.common.disk</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/executors/package-summary.html">com.facebook.common.executors</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/file/package-summary.html">com.facebook.common.file</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/internal/package-summary.html">com.facebook.common.internal</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/lifecycle/package-summary.html">com.facebook.common.lifecycle</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/logging/package-summary.html">com.facebook.common.logging</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/media/package-summary.html">com.facebook.common.media</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/memory/package-summary.html">com.facebook.common.memory</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/references/package-summary.html">com.facebook.common.references</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/statfs/package-summary.html">com.facebook.common.statfs</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/streams/package-summary.html">com.facebook.common.streams</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/time/package-summary.html">com.facebook.common.time</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/util/package-summary.html">com.facebook.common.util</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/webp/package-summary.html">com.facebook.common.webp</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/datasource/package-summary.html">com.facebook.datasource</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawable/base/package-summary.html">com.facebook.drawable.base</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/backends/pipeline/package-summary.html">com.facebook.drawee.backends.pipeline</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/backends/pipeline/info/package-summary.html">com.facebook.drawee.backends.pipeline.info</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/backends/pipeline/info/internal/package-summary.html">com.facebook.drawee.backends.pipeline.info.internal</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/backends/volley/package-summary.html">com.facebook.drawee.backends.volley</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/components/package-summary.html">com.facebook.drawee.components</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/controller/package-summary.html">com.facebook.drawee.controller</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/debug/package-summary.html">com.facebook.drawee.debug</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/debug/listener/package-summary.html">com.facebook.drawee.debug.listener</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/drawable/package-summary.html">com.facebook.drawee.drawable</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/generic/package-summary.html">com.facebook.drawee.generic</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/gestures/package-summary.html">com.facebook.drawee.gestures</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/interfaces/package-summary.html">com.facebook.drawee.interfaces</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/span/package-summary.html">com.facebook.drawee.span</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/view/package-summary.html">com.facebook.drawee.view</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/fresco/animation/backend/package-summary.html">com.facebook.fresco.animation.backend</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/fresco/animation/bitmap/package-summary.html">com.facebook.fresco.animation.bitmap</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/fresco/animation/bitmap/cache/package-summary.html">com.facebook.fresco.animation.bitmap.cache</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/fresco/animation/bitmap/preparation/package-summary.html">com.facebook.fresco.animation.bitmap.preparation</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/fresco/animation/bitmap/wrapper/package-summary.html">com.facebook.fresco.animation.bitmap.wrapper</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/fresco/animation/drawable/package-summary.html">com.facebook.fresco.animation.drawable</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/fresco/animation/drawable/animator/package-summary.html">com.facebook.fresco.animation.drawable.animator</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/fresco/animation/factory/package-summary.html">com.facebook.fresco.animation.factory</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/fresco/animation/frame/package-summary.html">com.facebook.fresco.animation.frame</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imageformat/package-summary.html">com.facebook.imageformat</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/animated/base/package-summary.html">com.facebook.imagepipeline.animated.base</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/animated/factory/package-summary.html">com.facebook.imagepipeline.animated.factory</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/animated/impl/package-summary.html">com.facebook.imagepipeline.animated.impl</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/animated/util/package-summary.html">com.facebook.imagepipeline.animated.util</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/backends/okhttp3/package-summary.html">com.facebook.imagepipeline.backends.okhttp3</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/backends/volley/package-summary.html">com.facebook.imagepipeline.backends.volley</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/bitmaps/package-summary.html">com.facebook.imagepipeline.bitmaps</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/cache/package-summary.html">com.facebook.imagepipeline.cache</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/common/package-summary.html">com.facebook.imagepipeline.common</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/core/package-summary.html">com.facebook.imagepipeline.core</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/datasource/package-summary.html">com.facebook.imagepipeline.datasource</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/decoder/package-summary.html">com.facebook.imagepipeline.decoder</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/drawable/package-summary.html">com.facebook.imagepipeline.drawable</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/image/package-summary.html">com.facebook.imagepipeline.image</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/listener/package-summary.html">com.facebook.imagepipeline.listener</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/memory/package-summary.html">com.facebook.imagepipeline.memory</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/nativecode/package-summary.html">com.facebook.imagepipeline.nativecode</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/platform/package-summary.html">com.facebook.imagepipeline.platform</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/postprocessors/package-summary.html">com.facebook.imagepipeline.postprocessors</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/producers/package-summary.html">com.facebook.imagepipeline.producers</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/request/package-summary.html">com.facebook.imagepipeline.request</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/systrace/package-summary.html">com.facebook.imagepipeline.systrace</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imageutils/package-summary.html">com.facebook.imageutils</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/webpsupport/package-summary.html">com.facebook.webpsupport</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/widget/text/span/package-summary.html">com.facebook.widget.text.span</a></li> </ul><br/> </div> <!-- end packages --> </div> <!-- end resize-packages --> <div id="classes-nav"> <ul> <li><h2>Interfaces</h2> <ul> <li class="api apilevel-"><a href="../../../../com/facebook/common/disk/DiskTrimmable.html">DiskTrimmable</a></li> <li class="api apilevel-"><a href="../../../../com/facebook/common/disk/DiskTrimmableRegistry.html">DiskTrimmableRegistry</a></li> </ul> </li> <li><h2>Classes</h2> <ul> <li class="api apilevel-"><a href="../../../../com/facebook/common/disk/NoOpDiskTrimmableRegistry.html">NoOpDiskTrimmableRegistry</a></li> </ul> </li> </ul><br/> </div><!-- end classes --> </div><!-- end nav-panels --> <div id="nav-tree" style="display:none"> <div id="index-links"> <a href="../../../../packages.html" >Packages</a> | <a href="../../../../classes.html" >Classes</a> </div> </div><!-- end nav-tree --> </div><!-- end swapper --> </div> <!-- end side-nav --> <script> if (!isMobile) { //$("<a href='#' id='nav-swap' onclick='swapNav();return false;' style='font-size:10px;line-height:9px;margin-left:1em;text-decoration:none;'><span id='tree-link'>Use Tree Navigation</span><span id='panel-link' style='display:none'>Use Panel Navigation</span></a>").appendTo("#side-nav"); chooseDefaultNav(); if ($("#nav-tree").is(':visible')) { init_default_navtree("../../../../"); } else { addLoadEvent(function() { scrollIntoView("packages-nav"); scrollIntoView("classes-nav"); }); } //$("#swapper").css({borderBottom:"2px solid #aaa"}); } else { swapNav(); // tree view should be used on mobile } </script> <div class="g-unit" id="doc-content"> <div id="api-info-block"> <div class="api-level"> </div> </div> <div id="jd-header"> package <h1>com.facebook.common.disk</h1> </div><!-- end header --> <div id="naMessage"></div> <div id="jd-content" class="api apilevel-"> <div class="jd-descr"> Abstractions useful for trim data from the DiskCache </div> <h2>Interfaces</h2> <div class="jd-sumtable"> <table class="jd-sumtable-expando"> <tr class="alt-color api apilevel-" > <td class="jd-linkcol"><a href="../../../../com/facebook/common/disk/DiskTrimmable.html">DiskTrimmable</a></td> <td class="jd-descrcol" width="100%">Any class that uses a lot of disk space and should implement this interface.&nbsp;</td> </tr> <tr class=" api apilevel-" > <td class="jd-linkcol"><a href="../../../../com/facebook/common/disk/DiskTrimmableRegistry.html">DiskTrimmableRegistry</a></td> <td class="jd-descrcol" width="100%">A class which keeps a list of other classes to be notified of system disk events.&nbsp;</td> </tr> </table> </div> <h2>Classes</h2> <div class="jd-sumtable"> <table class="jd-sumtable-expando"> <tr class="alt-color api apilevel-" > <td class="jd-linkcol"><a href="../../../../com/facebook/common/disk/NoOpDiskTrimmableRegistry.html">NoOpDiskTrimmableRegistry</a></td> <td class="jd-descrcol" width="100%">Implementation of <code><a href="../../../../com/facebook/common/disk/DiskTrimmableRegistry.html">DiskTrimmableRegistry</a></code> that does not do anything.&nbsp;</td> </tr> </table> </div> <div id="footer"> +Generated by <a href="http://code.google.com/p/doclava/">Doclava</a>. +</div> <!-- end footer - @generated --> </div><!-- end jd-content --> </div><!-- doc-content --> </div> <!-- end body-content --> <script type="text/javascript"> init(); /* initialize doclava-developer-docs.js */ </script> </body> </html>
xjy2061/NovaImageLoader
docs/javadoc/reference/com/facebook/common/disk/package-summary.html
HTML
mit
18,713
namespace AutoMapper.UnitTests { using System; using System.Collections.Generic; using System.Collections.Specialized; using Should; using Xunit; public class CollectionMapping { public CollectionMapping() { SetUp(); } public void SetUp() { Mapper.Reset(); } public class MasterWithList { private IList<Detail> _details = new List<Detail>(); public int Id { get; set; } // ReSharper disable once ConvertToAutoProperty public IList<Detail> Details { get { return _details; } set { _details = value; } } } public class MasterWithCollection { public MasterWithCollection(ICollection<Detail> details) { Details = details; } public int Id { get; set; } public ICollection<Detail> Details { get; set; } } public class MasterWithNoExistingCollection { public int Id { get; set; } public HashSet<Detail> Details { get; set; } } public class Detail { public int Id { get; set; } } public class MasterDto { public int Id { get; set; } public DetailDto[] Details { get; set; } } public class DetailDto { public int Id { get; set; } } private static void FillCollection<TSource, TDestination, TSourceItem, TDestinationItem>( TSource s, TDestination d, Func<TSource, IEnumerable<TSourceItem>> getSourceEnum, Func<TDestination, ICollection<TDestinationItem>> getDestinationColl) { var collection = getDestinationColl(d); collection.Clear(); foreach (var sourceItem in getSourceEnum(s)) { collection.Add(Mapper.Map<TSourceItem, TDestinationItem>(sourceItem)); } } [Fact] public void Should_keep_and_fill_destination_collection_when_collection_is_implemented_as_list() { Mapper.CreateMap<MasterDto, MasterWithCollection>() .ForMember(d => d.Details, o => o.UseDestinationValue()); Mapper.CreateMap<DetailDto, Detail>(); var dto = new MasterDto { Id = 1, Details = new[] { new DetailDto {Id = 2}, new DetailDto {Id = 3}, } }; var master = new MasterWithCollection(new List<Detail>()); var originalCollection = master.Details; Mapper.Map(dto, master); originalCollection.ShouldBeSameAs(master.Details); originalCollection.Count.ShouldEqual(master.Details.Count); } [Fact] public void Should_keep_and_fill_destination_collection_when_collection_is_implemented_as_set() { Mapper.CreateMap<MasterDto, MasterWithCollection>() .ForMember(d => d.Details, o => o.UseDestinationValue()); Mapper.CreateMap<DetailDto, Detail>(); var dto = new MasterDto { Id = 1, Details = new[] { new DetailDto {Id = 2}, new DetailDto {Id = 3}, } }; var master = new MasterWithCollection(new HashSet<Detail>()); var originalCollection = master.Details; Mapper.Map(dto, master); originalCollection.ShouldBeSameAs(master.Details); originalCollection.Count.ShouldEqual(master.Details.Count); } [Fact] public void Should_keep_and_fill_destination_collection_when_collection_is_implemented_as_set_with_aftermap() { Mapper.CreateMap<MasterDto, MasterWithCollection>() .ForMember(d => d.Details, o => o.Ignore()) .AfterMap((s, d) => FillCollection(s, d, ss => ss.Details, dd => dd.Details)); Mapper.CreateMap<DetailDto, Detail>(); var dto = new MasterDto { Id = 1, Details = new[] { new DetailDto {Id = 2}, new DetailDto {Id = 3}, } }; var master = new MasterWithCollection(new HashSet<Detail>()); var originalCollection = master.Details; Mapper.Map(dto, master); originalCollection.ShouldBeSameAs(master.Details); originalCollection.Count.ShouldEqual(master.Details.Count); } [Fact] public void Should_keep_and_fill_destination_list() { Mapper.CreateMap<MasterDto, MasterWithList>() .ForMember(d => d.Details, o => o.UseDestinationValue()); Mapper.CreateMap<DetailDto, Detail>(); var dto = new MasterDto { Id = 1, Details = new[] { new DetailDto {Id = 2}, new DetailDto {Id = 3}, } }; var master = new MasterWithList(); var originalCollection = master.Details; Mapper.Map(dto, master); originalCollection.ShouldBeSameAs(master.Details); originalCollection.Count.ShouldEqual(master.Details.Count); } [Fact] public void Should_not_replace_destination_collection() { Mapper.CreateMap<MasterDto, MasterWithCollection>(); Mapper.CreateMap<DetailDto, Detail>(); var dto = new MasterDto { Id = 1, Details = new[] { new DetailDto {Id = 2}, new DetailDto {Id = 3}, } }; var master = new MasterWithCollection(new List<Detail>()); var originalCollection = master.Details; Mapper.Map(dto, master); originalCollection.ShouldBeSameAs(master.Details); } [Fact] public void Should_be_able_to_map_to_a_collection_type_that_implements_ICollection_of_T() { Mapper.CreateMap<MasterDto, MasterWithNoExistingCollection>(); Mapper.CreateMap<DetailDto, Detail>(); var dto = new MasterDto { Id = 1, Details = new[] { new DetailDto {Id = 2}, new DetailDto {Id = 3}, } }; var master = Mapper.Map<MasterDto, MasterWithNoExistingCollection>(dto); master.Details.Count.ShouldEqual(2); } [Fact] public void Should_not_replace_destination_list() { Mapper.CreateMap<MasterDto, MasterWithList>(); Mapper.CreateMap<DetailDto, Detail>(); var dto = new MasterDto { Id = 1, Details = new[] { new DetailDto {Id = 2}, new DetailDto {Id = 3}, } }; var master = new MasterWithList(); var originalCollection = master.Details; Mapper.Map(dto, master); originalCollection.ShouldBeSameAs(master.Details); } #if !(SILVERLIGHT || NETFX_CORE) [Fact] public void Should_map_to_NameValueCollection() { // initially results in the following exception: // ----> System.InvalidCastException : Unable to cast object of type 'System.Collections.Specialized.NameValueCollection' to type 'System.Collections.IList'. // this was fixed by adding NameValueCollectionMapper to the MapperRegistry. var c = new NameValueCollection(); var mappedCollection = Mapper.Map<NameValueCollection, NameValueCollection>(c); mappedCollection.ShouldNotBeNull(); } #endif #if SILVERLIGHT || NETFX_CORE public class HashSet<T> : Collection<T> { } #endif } }
mwpowellhtx/AutoMapperContributed
src/UnitTests/CollectionMapping.cs
C#
mit
8,640
package skin.support.constraint; import android.content.Context; import android.support.constraint.ConstraintLayout; import android.util.AttributeSet; import skin.support.widget.SkinCompatBackgroundHelper; import skin.support.widget.SkinCompatSupportable; /** * Created by pengfengwang on 2017/6/19. */ public class SkinCompatConstraintLayout extends ConstraintLayout implements SkinCompatSupportable { private final SkinCompatBackgroundHelper mBackgroundTintHelper; public SkinCompatConstraintLayout(Context context) { this(context, null); } public SkinCompatConstraintLayout(Context context, AttributeSet attrs) { this(context, attrs, 0); } public SkinCompatConstraintLayout(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); mBackgroundTintHelper = new SkinCompatBackgroundHelper(this); mBackgroundTintHelper.loadFromAttributes(attrs, defStyleAttr); } @Override public void setBackgroundResource(int resId) { super.setBackgroundResource(resId); if (mBackgroundTintHelper != null) { mBackgroundTintHelper.onSetBackgroundResource(resId); } } @Override public void applySkin() { if (mBackgroundTintHelper != null) { mBackgroundTintHelper.applySkin(); } } }
ximsfei/Android-theme-support
android-support/theme-support-constraint-layout/src/main/java/skin/support/constraint/SkinCompatConstraintLayout.java
Java
mit
1,367
#include <stdio.h> #include <stdlib.h> #include <mpi.h> #include "struct.h" #include "grid.h" float GridGetValue(grid *G, float x, float y, float z){ int pos_cell[3]; int index; float value; value = 0.0; if(G->cargo!=NULL){ pos_cell[0] = (int)((x - G->x_level)/G->cell_size); pos_cell[1] = (int)((y - G->y_level)/G->cell_size); pos_cell[2] = (int)((z - G->z_level)/G->cell_size); /*sanity check*/ if((pos_cell[0]>=0 && pos_cell[0]<G->N_grid_x) && (pos_cell[1]>=0 && pos_cell[1]<G->N_grid_y) && (pos_cell[2]>=0 && pos_cell[2]<G->N_grid_z)){ index = pos_cell[2] + G->N_grid_z*(pos_cell[1] + G->N_grid_y*pos_cell[0]); value = G->cargo[index]; }else{ fprintf(stderr, "GridGetValue: Problem with the boundaries\n");fflush(stdout); fprintf(stderr, "x y z %f %f %f\n", x, y, z); fprintf(stderr, "i j k %d %d %d \n", pos_cell[0], pos_cell[1], pos_cell[2]); fprintf(stderr, "gridx gridy gridz %d %d %d \n", G->N_grid_x, G->N_grid_y, G->N_grid_z); value = 0.0; } } return value; } float GridGetValueIndex(grid *G, int index){ float value; value = 0.0; if(G->cargo!=NULL){ value = G->cargo[index]; } return value; } void GridFree(grid *C){ free(C->cargo); C->cargo = NULL; free(C); } void GridNullify(grid *C){ int i; for(i=0;i<C->N_cells;i++){ C->cargo[i] = 0.0; } } grid * GridCreate(void) { grid *C; if(!(C = malloc(sizeof(grid)))){ fprintf(stderr, "CubeCreate: Problem with data allocation\n");fflush(stdout); exit(0); } C->N_cells = 0; C->cell_size = 0.0; C->x_level = 0.0; C->y_level = 0.0; C->z_level = 0.0; C->N_grid_x = 0; C->N_grid_y = 0; C->N_grid_z = 0; C->redshift = 0.0; C->cargo = NULL; return C; }
forero/CLARA-MPI
src/grid.c
C
mit
1,787
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.management.network.v2019_02_01; import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; import com.microsoft.azure.management.network.v2019_02_01.implementation.NetworkManager; import com.microsoft.azure.management.network.v2019_02_01.implementation.FlowLogInformationInner; /** * Type representing FlowLogInformation. */ public interface FlowLogInformation extends HasInner<FlowLogInformationInner>, HasManager<NetworkManager> { /** * @return the enabled value. */ boolean enabled(); /** * @return the flowAnalyticsConfiguration value. */ TrafficAnalyticsProperties flowAnalyticsConfiguration(); /** * @return the format value. */ FlowLogFormatParameters format(); /** * @return the retentionPolicy value. */ RetentionPolicyParameters retentionPolicy(); /** * @return the storageId value. */ String storageId(); /** * @return the targetResourceId value. */ String targetResourceId(); }
selvasingh/azure-sdk-for-java
sdk/network/mgmt-v2019_02_01/src/main/java/com/microsoft/azure/management/network/v2019_02_01/FlowLogInformation.java
Java
mit
1,316
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2014.09.07 at 08:01:35 PM IST // package com.mozu.qbintegration.model.qbmodel.allgen; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="Initial"> * &lt;simpleType> * &lt;restriction base="{}STRTYPE"> * &lt;maxLength value="5"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element ref="{}IsActive" minOccurs="0"/> * &lt;element ref="{}SalesRepEntityRef"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "initial", "isActive", "salesRepEntityRef" }) @XmlRootElement(name = "SalesRepAdd") public class SalesRepAdd { @XmlElement(name = "Initial", required = true) protected String initial; @XmlElement(name = "IsActive") protected String isActive; @XmlElement(name = "SalesRepEntityRef", required = true) protected SalesRepEntityRef salesRepEntityRef; /** * Gets the value of the initial property. * * @return * possible object is * {@link String } * */ public String getInitial() { return initial; } /** * Sets the value of the initial property. * * @param value * allowed object is * {@link String } * */ public void setInitial(String value) { this.initial = value; } /** * Gets the value of the isActive property. * * @return * possible object is * {@link String } * */ public String getIsActive() { return isActive; } /** * Sets the value of the isActive property. * * @param value * allowed object is * {@link String } * */ public void setIsActive(String value) { this.isActive = value; } /** * Gets the value of the salesRepEntityRef property. * * @return * possible object is * {@link SalesRepEntityRef } * */ public SalesRepEntityRef getSalesRepEntityRef() { return salesRepEntityRef; } /** * Sets the value of the salesRepEntityRef property. * * @param value * allowed object is * {@link SalesRepEntityRef } * */ public void setSalesRepEntityRef(SalesRepEntityRef value) { this.salesRepEntityRef = value; } }
Mozu/Mozu.Integrations.Quickbooks
src/main/java/com/mozu/qbintegration/model/qbmodel/allgen/SalesRepAdd.java
Java
mit
3,478
const fs = require('fs'); const path = require('path'); const sass = require('node-sass'); const postcss = require('postcss'); const autoprefixer = require('autoprefixer'); const prefixer = postcss([ autoprefixer ]); const log = require('./colored-console.js'); // our own custom module var gitInfo = require(process.cwd() + '/tasks/repoInfo.js'); console.log(`SASS $resourceSrc set to ${gitInfo.resourceSrc}`); /************************************************************************* * Build SASS * in order to pass variables to SASS we use the "data" options in node-sass * and pass that a SASS string with our variables first and an @import of * our main SASS file right after */ var dataString = `$resourceSrc : "${gitInfo.resourceSrc}"; `; var sassEntryFile = "./src/sass/dubplus"; dataString += `@import '${sassEntryFile}';`; function compileSASS() { return new Promise(function (resolve, reject){ sass.render({ data : dataString, }, function(err, result) { if (err) { reject(err); } fs.writeFileSync('./css/dubplus.css', prefixer.process(result.css)); resolve(); }); }); } function minifySASS() { return new Promise(function (resolve, reject){ sass.render({ data : dataString, outputStyle : "compressed" }, function(err, result) { if (err) { reject(err); } fs.writeFileSync('./css/dubplus.min.css', prefixer.process(result.css)); resolve(); }); }); } function watchingSASS() { // create our own sass file watch with node fs.watch('./src/sass', { recursive : true }, function (event, filename) { if ( filename && /s[ca]ss/i.test(path.extname(filename)) ) { console.log(`SASS ${event} event detected`); console.log(`file: ${filename}`); compileSASS(); } else { log.error('Filename missing. NOT compiling. Try again'); } } ); } module.exports = { compile : compileSASS, watch : watchingSASS, minify : minifySASS };
coryshaw1/DubPlus
tasks/sassbundle.js
JavaScript
mit
2,005
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Nether.Data.Identity; using Nether.Web.Features.Identity.Models.UserLogin; using Nether.Web.Utilities; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading.Tasks; namespace Nether.Web.Features.Identity { [Route("identity/users/{userId}/logins")] [Authorize(Roles = RoleNames.Admin)] public class UserLoginController : ControllerBase { private readonly IUserStore _userStore; private readonly IPasswordHasher _passwordHasher; private readonly ILogger _logger; public UserLoginController( IUserStore userStore, IPasswordHasher passwordHasher, ILogger<UserLoginController> logger ) { _userStore = userStore; _passwordHasher = passwordHasher; _logger = logger; } /// <summary> /// Return a list of logins for the specified user /// </summary> /// <param name="userId">The id of the user</param> /// <returns></returns> [ProducesResponseType((int)HttpStatusCode.OK, Type = typeof(UserLoginListModel))] [ProducesResponseType((int)HttpStatusCode.NotFound)] [HttpGet()] public async Task<IActionResult> GetAllLoginsForUser(string userId) { var user = await _userStore.GetUserByIdAsync(userId); if (user == null) { return NotFound(); } var logins = user.Logins.Select(l => new UserLoginModel { ProviderType = l.ProviderType, ProviderId = l.ProviderId, _Link = Url.RouteUrl(nameof(DeleteUserLogin), new { providerType = l.ProviderType, providerId = l.ProviderId }) }); return Ok(new UserLoginListModel { Logins = logins }); } /// <summary> /// Update the user and logins for a user /// </summary> /// <param name="userId">The id of the user to update</param> /// <param name="providerType">The type of login provider</param> /// <param name="providerId">The provider specific id for the login</param> /// <param name="userLoginModel">Any additional parameters required by the provider</param> /// <returns></returns> [ProducesResponseType((int)HttpStatusCode.OK, Type = typeof(UserLoginRequestModel))] [ProducesResponseType((int)HttpStatusCode.NotFound)] [ProducesResponseType((int)HttpStatusCode.BadRequest)] [HttpPut("{providerType}/{providerId}")] public async Task<IActionResult> PutUserLogin( [FromRoute] string userId, [FromRoute] string providerType, [FromRoute] string providerId, [FromBody] UserLoginRequestModel userLoginModel) { // Currently only support "password" provider providerType = providerType.ToLowerInvariant(); if (providerType != LoginProvider.UserNamePassword) { _logger.LogInformation("PutUserLogin: Unsupported ProviderType '{0}'", providerType); return this.ValidationFailed(new ErrorDetail("providerType", "Unsupported provider type")); } // TODO Add password complexity options! var user = await _userStore.GetUserByIdAsync(userId); if (user == null) { return NotFound(); } user.Logins = user.Logins ?? new List<Login>(); var login = user.Logins?.FirstOrDefault(l => l.ProviderType == providerType && l.ProviderId == providerId); if (login == null) { login = new Login { ProviderType = providerType, ProviderId = providerId, }; user.Logins.Add(login); } // Set Password login.ProviderData = _passwordHasher.HashPassword(userLoginModel.Password); await _userStore.SaveUserAsync(user); return CreatedAtRoute(nameof(DeleteUserLogin), new { userId, providerType, providerId }, null); } /// <summary> /// Deletes the specified login for the user /// </summary> /// <param name="userId"></param> /// <param name="providerType"></param> /// <param name="providerId"></param> /// <returns></returns> [ProducesResponseType((int)HttpStatusCode.OK)] [HttpDelete("{providerType}/{providerId}", Name = nameof(DeleteUserLogin))] public async Task<IActionResult> DeleteUserLogin([FromRoute] string userId, [FromRoute] string providerType, [FromRoute] string providerId) { var user = await _userStore.GetUserByIdAsync(userId); if (user == null) { return NotFound(); } var login = user.Logins.FirstOrDefault(l => l.ProviderType == providerType && l.ProviderId == providerId); if (login == null) { return NotFound(); } user.Logins.Remove(login); await _userStore.SaveUserAsync(user); return NoContent(); } } }
stuartleeks/nether
src/Nether.Web/Features/Identity/Controllers/UserLoginController.cs
C#
mit
5,546
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?> <?php if(isset($breadcrumbs)) { $last_index = key( array_slice( $breadcrumbs, -1, 1, TRUE ) ); ?> <div class="col-lg-12" style="background:#FFF; border-bottom:1px dashed #EEEEEE; margin-bottom:15px; padding-left:5px; "> <ul class="breadcrumb system_content col-sm-7" style="margin-bottom: 10px; width: 100%"> <?php foreach($breadcrumbs as $key=>$breadcrumb) { if($breadcrumb['link']) { ?> <li><a href="<?php echo $breadcrumb['link']; ?>"><?php echo $breadcrumb['text'] ?>&nbsp;</a> <span class="divider"><?php echo ($key != $last_index ?'→' :' '); ?></span></li> <?php } else { ?> <li><span style="color: #666666"><?php echo $breadcrumb['text'] ?></span>&nbsp; <span class="divider"><?php echo ($key != $last_index ?'→' :' '); ?></span></li> <?php } ?> <?php } ?> </ul> </div> <?php } ?>
marajmmc/mmc_new
application/views/default/breadcrumb.php
PHP
mit
1,224
<!DOCTYPE HTML> <html lang="de"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title>pics</title> <meta name="author" content="mko based on lychee"> <meta name="keywords" content=""> <meta name="description" content=""> <!-- CSS --> <link type="text/css" rel="stylesheet" href="dist/main.css"> <link rel="shortcut icon" href="favicon.ico"> <link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png"> <link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png"> <link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png"> <link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png"> <link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png"> <link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png"> <link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png"> <link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png"> <link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png"> <link rel="icon" type="image/png" sizes="192x192" href="/android-icon-192x192.png"> <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png"> <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> <link rel="manifest" href="/manifest.json"> <meta name="msapplication-TileColor" content="#ffffff"> <meta name="msapplication-TileImage" content="/ms-icon-144x144.png"> <meta name="theme-color" content="#ffffff"> <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=1.0"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-capable" content="yes"> </head> <body> <!-- Loading --> <div id="loading"></div> <!-- Header --> <header> <!-- Buttons --> <div id="tools_albums"> <a class="button left icon-cog" id="button_settings" title="Settings"></a> <a class="button left icon-signout" id="button_signin" title="Sign In"></a> <a id="hostedwith">Hosted with Lychee</a> <a class="button right icon icon-plus button_add" title="Add"></a> <a class="button_divider"></a> <input id="search" type="text" name="search" placeholder="Search …"> <a id="clearSearch" class="button right">&times;</a> </div> <div id="tools_album"> <a class="button left icon-arrow-left" id="button_back_home" title="Close Album"></a> <a class="button right icon icon-plus button_add" title="Add"></a> <a class="button_divider"></a> <div class="tools" id="button_trash_album" title="Delete Album"><a class="icon-trash"></a></div> <div class="tools" id="button_info_album" title="Show Info"><a class="icon-info-sign"></a></div> <div class="tools" id="button_archive" title="Download Album"><a class="icon-circle-arrow-down"></a></div> <div class="tools" id="button_share_album" title="Share Album"><a class="icon-share"></a></div> </div> <div id="tools_photo"> <a class="button left icon-arrow-left" id="button_back" title="Close Photo"></a> <div class="tools" id="button_more" title="More"><a class="icon-caret-down"></a></div> <a class="button_divider"></a> <div class="tools" id="button_trash" title="Delete"><a class="icon-trash"></a></div> <div class="tools" id="button_move" title="Move"><a class="icon-folder-open"></a></div> <div class="tools" id="button_info" title="Show Info"><a class="icon-info-sign"></a></div> <a class="button_divider"></a> <div class="tools" id="button_share" title="Share Photo"><a class="icon-share"></a></div> <div class="tools" id="button_star" title="Star Photo"><a class="icon-star-empty"></a></div> </div> <a id="title"></a> </header> <!-- Content --> <div id="content"></div> <!-- ImageView --> <div id="imageview"></div> <!-- Infobox --> <div id="infobox"></div> <!-- Upload --> <div id="upload"> <input id="upload_files" type="file" name="fileElem[]" multiple accept="image/*"> </div> <!-- JS --> <script async type="text/javascript" src="dist/main.js"></script> </body> </html>
mko-x/docker-picture-gallery
app/en/index.html
HTML
mit
4,219
<!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- <title>Web Designer | Miller Ad Agency Miller Ad Agency</title> --> <title>Web Designer | Miller Ad Agency</title> <meta name="HandheldFriendly" content="True"> <meta name="MobileOptimized" content="320"> <!-- COMPANY INFORMATION --> <meta name="url" content="."> <meta name="description" content="Your Neighborhood Ad Agency"> <meta name="keywords" content="the lunch, goodwill, dallas, 2017"> <meta name="author" content="Miller Ad Agency"> <meta name="copyright" content="Miller Ad Agency"> <meta name="subject" content="Advertising Agency Website"> <meta name="coverage" content="US"> <!-- FRONT-END DEVELOPER --> <meta name="designer" content="William Pansky, williampansky.com"> <!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-migrate/3.0.0/jquery-migrate.min.js"></script> --> <link rel="apple-touch-icon" sizes="180x180" href="./../../../apple-touch-icon.png"> <link rel="icon" type="image/png" sizes="32x32" href="./../../../favicon-32x32.png"> <link rel="icon" type="image/png" sizes="16x16" href="./../../../favicon-16x16.png"> <link rel="manifest" href="./../../../manifest.json"> <link rel="mask-icon" href="./../../../safari-pinned-tab.svg" color="#0e75dd"> <meta name="apple-mobile-web-app-title" content="Miller Ad Agency"> <meta name="application-name" content="Miller Ad Agency"> <meta name="msapplication-TileColor" content="#0e75dd"> <meta name="msapplication-TileImage" content="/mstile-144x144.png"> <meta name="theme-color" content="#0e75dd"> <script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script> <link rel="pingback" href="./../../../xmlrpc.php" /> <link rel="stylesheet" href="./../../../wp-content/themes/millerAgency/assets/css/atom-one-dark.css"> <!-- This site is optimized with the Yoast SEO plugin v4.9 - https://yoast.com/wordpress/plugins/seo/ --> <meta name="robots" content="noindex,follow"/> <link rel="canonical" href="./index.html" /> <meta property="og:locale" content="en_US" /> <meta property="og:type" content="article" /> <meta property="og:title" content="Web Designer | Miller Ad Agency" /> <meta property="og:description" content="Job Requirements: 1 to 3 years of professional web design experience in WordPress and Microsoft .Net API; additional knowledge and experience in Adobe Photoshop required. Fluid understanding of HTML5, CSS, and other web-creation elements is a must. Any type of automotive experience is welcome, but not a requirement. Job Description: Working with account executives to &hellip;" /> <meta property="og:url" content="./careers-at-miller-ad-agency/full-time/web-designer/" /> <meta property="og:site_name" content="Miller Ad Agency" /> <meta property="article:publisher" content="https://www.facebook.com/pages/Miller-Ad-Agency/115464605176063" /> <meta property="article:author" content="williampansky" /> <meta name="twitter:card" content="summary" /> <meta name="twitter:description" content="Job Requirements: 1 to 3 years of professional web design experience in WordPress and Microsoft .Net API; additional knowledge and experience in Adobe Photoshop required. Fluid understanding of HTML5, CSS, and other web-creation elements is a must. Any type of automotive experience is welcome, but not a requirement. Job Description: Working with account executives to [&hellip;]" /> <meta name="twitter:title" content="Web Designer | Miller Ad Agency" /> <meta name="twitter:site" content="@milleragency" /> <meta name="twitter:creator" content="@williampansky" /> <!-- / Yoast SEO plugin. --> <link rel='dns-prefetch' href='//www.google.com' /> <link rel='dns-prefetch' href='//cdnjs.cloudflare.com' /> <link rel='dns-prefetch' href='//fonts.googleapis.com' /> <link rel='dns-prefetch' href='//s.w.org' /> <link rel="alternate" type="application/rss+xml" title="Miller Ad Agency &raquo; Feed" href="./../../../feed/index.html" /> <link rel="alternate" type="application/rss+xml" title="Miller Ad Agency &raquo; Comments Feed" href="./../../../comments/feed/index.html" /> <script type="text/javascript"> window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/2.3\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/2.3\/svg\/","svgExt":".svg","source":{"concatemoji":""}}; !function(a,b,c){function d(a){var b,c,d,e,f=String.fromCharCode;if(!k||!k.fillText)return!1;switch(k.clearRect(0,0,j.width,j.height),k.textBaseline="top",k.font="600 32px Arial",a){case"flag":return k.fillText(f(55356,56826,55356,56819),0,0),b=j.toDataURL(),k.clearRect(0,0,j.width,j.height),k.fillText(f(55356,56826,8203,55356,56819),0,0),c=j.toDataURL(),b===c&&(k.clearRect(0,0,j.width,j.height),k.fillText(f(55356,57332,56128,56423,56128,56418,56128,56421,56128,56430,56128,56423,56128,56447),0,0),b=j.toDataURL(),k.clearRect(0,0,j.width,j.height),k.fillText(f(55356,57332,8203,56128,56423,8203,56128,56418,8203,56128,56421,8203,56128,56430,8203,56128,56423,8203,56128,56447),0,0),c=j.toDataURL(),b!==c);case"emoji4":return k.fillText(f(55358,56794,8205,9794,65039),0,0),d=j.toDataURL(),k.clearRect(0,0,j.width,j.height),k.fillText(f(55358,56794,8203,9794,65039),0,0),e=j.toDataURL(),d!==e}return!1}function e(a){var c=b.createElement("script");c.src=a,c.defer=c.type="text/javascript",b.getElementsByTagName("head")[0].appendChild(c)}var f,g,h,i,j=b.createElement("canvas"),k=j.getContext&&j.getContext("2d");for(i=Array("flag","emoji4"),c.supports={everything:!0,everythingExceptFlag:!0},h=0;h<i.length;h++)c.supports[i[h]]=d(i[h]),c.supports.everything=c.supports.everything&&c.supports[i[h]],"flag"!==i[h]&&(c.supports.everythingExceptFlag=c.supports.everythingExceptFlag&&c.supports[i[h]]);c.supports.everythingExceptFlag=c.supports.everythingExceptFlag&&!c.supports.flag,c.DOMReady=!1,c.readyCallback=function(){c.DOMReady=!0},c.supports.everything||(g=function(){c.readyCallback()},b.addEventListener?(b.addEventListener("DOMContentLoaded",g,!1),a.addEventListener("load",g,!1)):(a.attachEvent("onload",g),b.attachEvent("onreadystatechange",function(){"complete"===b.readyState&&c.readyCallback()})),f=c.source||{},f.concatemoji?e(f.concatemoji):f.wpemoji&&f.twemoji&&(e(f.twemoji),e(f.wpemoji)))}(window,document,window._wpemojiSettings); </script> <style type="text/css"> img.wp-smiley, img.emoji { display: inline !important; border: none !important; box-shadow: none !important; height: 1em !important; width: 1em !important; margin: 0 .07em !important; vertical-align: -0.1em !important; background: none !important; padding: 0 !important; } </style> <link rel='stylesheet' id='simple-job-board-google-fonts-css' href='https://fonts.googleapis.com/css?family=Roboto%3A100%2C100i%2C300%2C300i%2C400%2C400i%2C500%2C500i%2C700%2C700i%2C900%2C900i&#038;ver=2.4.5' type='text/css' media='all' /> <link rel='stylesheet' id='simple-job-board-font-awesome-css' href='./../../../wp-content/plugins/simple-job-board/public/css/font-awesome.min.css?ver=4.7.0' type='text/css' media='all' /> <link rel='stylesheet' id='simple-job-board-jquery-ui-css' href='./../../../wp-content/plugins/simple-job-board/public/css/jquery-ui.css?ver=1.12.1' type='text/css' media='all' /> <link rel='stylesheet' id='simple-job-board-frontend-css' href='./../../../wp-content/plugins/simple-job-board/public/css/simple-job-board-public.css?ver=3.0.0' type='text/css' media='all' /> <link rel='stylesheet' id='mc4wp-form-themes-css' href='./../../../wp-content/plugins/mailchimp-for-wp/assets/css/form-themes.min.css?ver=4.1.3' type='text/css' media='all' /> <script type='text/javascript' src='https://www.google.com/recaptcha/api.js?render=explicit&#038;ver=4.8'></script> <script type='text/javascript' src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script> <script type='text/javascript' src='https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js'></script> <script type='text/javascript' src='./../../../wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1'></script> <link rel='https://api.w.org/' href='./../../../wp-json/index.html' /> <link rel="EditURI" type="application/rsd+xml" title="RSD" href="./../../../xmlrpc.php?rsd" /> <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="./../../../wp-includes/wlwmanifest.xml" /> <meta name="generator" content="WordPress 4.8" /> <link rel='shortlink' href='./../../../index.html?p=56652' /> <link rel="alternate" type="application/json+oembed" href="./../../../wp-json/oembed/1.0/embed/index.html?url=http%3A%2F%2F%2Fcareers-at-miller-ad-agency%2Ffull-time%2Fweb-designer%2F" /> <link rel="alternate" type="text/xml+oembed" href="./../../../wp-json/oembed/1.0/embed/index.html?url=http%3A%2F%2F%2Fcareers-at-miller-ad-agency%2Ffull-time%2Fweb-designer%2F&#038;format=xml" /> <style type="text/css"> /* SJB Fonts */ .sjb-page { font-family: "Roboto", sans-serif; } /* Job Filters Background Color */ .sjb-page .sjb-filters { background-color: #f2f2f2; } /* Listing & Detail Page Title Color */ .sjb-page .list-data .job-info h4 a, .sjb-page .list-data .job-info h4 a:hover { color: #3b3a3c; } /* Job Detail Page Headings */ .sjb-page .sjb-detail .list-data h3, .sjb-page .sjb-detail .list-data ul li::before, .sjb-page .sjb-detail .list-data .job-detail h3, .sjb-page .sjb-archive-page .job-title { color: #595959; } /* Fontawesome Icon Color */ .sjb-page .list-data .job-type i, .sjb-page .list-data .job-location i, .sjb-page .list-data .job-date i { color: #595959; } /* Fontawesome Text Color */ .sjb-page .list-data .job-type, .sjb-page .list-data .job-location, .sjb-page .list-data .job-date { color: #7a7a7a; } /* Job Filters-> All Buttons Background Color */ .sjb-page .btn-primary, .sjb-page .btn-primary:hover, .sjb-page .btn-primary:active:hover, .sjb-page .btn-primary:active:focus, .sjb-page .sjb-detail .jobpost-form .file div, .sjb-page .sjb-detail .jobpost-form .file:hover div { background-color: #1e73be; color: #fff; } /* Pagination Text Color */ /* Pagination Background Color */ .sjb-page .pagination li.list-item span.current, .sjb-page .pagination li.list-item a:hover, .sjb-page .pagination li.list-item span.current:hover { background: #1e73be; border-color: #1e73be; color: #fff; } </style> <link rel="stylesheet" href="./../../../wp-content/themes/millerAgency/assets/css/main.css"> </head> <body class="jobpost-template-default single single-jobpost postid-56652 milleragency sjb elementor-default"> <!--[if lt IE 11]> <p class="chromeframe">You are using an outdated browser. <a href="http://browsehappy.com/">Upgrade your browser today</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to better experience this site.</p> <![endif]--> <div id="container" class="uk-offcanvas-content"> <div id="panskyAlert" style="color:#666; font-size:14px; text-align:center; padding:8px; border-bottom: 1px solid #e5e5e5;"> <span>This is a static demonstration page of a Wordpress website hosted on <a href="http://williampansky.com">williampansky.com</a> for presentation purposes. Some features may not work as intended.</span> </div> <div id="toTop"></div> <nav id="navbar" style="opacity:0;"> <div class="uk-container uk-margin-remove-top uk-margin-remove-bottom uk-navbar-container uk-navbar-transparent" uk-navbar> <div class="uk-navbar-left"> <a href="./../../../index.html" class="uk-logo"> <img src="./../../../wp-content/themes/millerAgency/assets/images/miller/miller-icon.svg" alt="Miller Ad Agency"> <span class="uk-padding-smaller">Miller Ad Agency</span> </a> </div> <div class="uk-navbar-right"> <ul id="menu-main-menu" class="uk-navbar-nav uk-visible@m"><li id="menu-item-56772" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-home menu-item-56772"><a href="./../../../index.html">Home</a></li> <li id="menu-item-54841" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-54841"><a href="./../../../about-miller-ad-agency/index.html">About</a></li> <li id="menu-item-54840" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-54840"><a href="./../../../services/index.html">Advertising</a></li> <li id="menu-item-54839" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-54839"><a href="./../../../work/index.html">Work</a></li> <li id="menu-item-54838" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-54838"><a href="./../../../contact/index.html">Hire Us</a></li> </ul> <a uk-navbar-toggle-icon="" href="#offcanvas" uk-toggle="target: #offcanvas" class="uk-navbar-toggle uk-hidden@m uk-navbar-toggle-icon uk-icon"></a> </div> </div> </nav> <nav class="mini-navbar" id="navbar-fixed-top"> <div class="uk-container uk-navbar-container uk-navbar-transparent" uk-navbar> <div class="uk-navbar-left"> <a href="./../../../index.html" class="uk-navbar-item uk-logo"> <span>Miller Ad Agency</span> </a> </div> <div class="uk-navbar-right"> <ul id="menu-main-menu-1" class="uk-navbar-nav uk-visible@m"><li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-home menu-item-56772"><a href="./../../../index.html">Home</a></li> <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-54841"><a href="./../../../about-miller-ad-agency/index.html">About</a></li> <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-54840"><a href="./../../../services/index.html">Advertising</a></li> <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-54839"><a href="./../../../work/index.html">Work</a></li> <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-54838"><a href="./../../../contact/index.html">Hire Us</a></li> </ul> <a uk-navbar-toggle-icon="" href="#offcanvas" uk-toggle="target: #offcanvas" class="uk-navbar-toggle uk-hidden@m uk-navbar-toggle-icon uk-icon"></a> </div> </div> </nav> <nav class="mobile-navbar uk-hidden@m" id="navbar-fixed-bottom" style="display:none;"> <div class="uk-margin-remove uk-padding-remove uk-navbar-transparent uk-flex-around uk-flex-bottom" uk-navbar> <a href="tel:9722432211" class="uk-icon uk-flex-center uk-text-center uk-padding-small"> <i class="fa fa-phone" aria-hidden="true"></i><br /> <span class="uk-text-smaller uk-text-uppercase">Call</span> </a> <a href="./../../../services/index.html" class="uk-icon uk-flex-center uk-text-center uk-padding-small"> <i class="fa fa-briefcase" aria-hidden="true"></i><br /> <span class="uk-text-smaller uk-text-uppercase">Services</span> </a> <a href="./../../../about-miller-ad-agency/index.html" class="uk-icon uk-flex-center uk-text-center uk-padding-small"> <i class="fa fa-users" aria-hidden="true"></i><br /> <span class="uk-text-smaller uk-text-uppercase">About</span> </a> <a href="#offcanvas" uk-toggle id="mobileOffCanvas" class="uk-icon uk-flex-center uk-text-center uk-padding-small maa-mobile-toggle"> <i class="fa fa-bars" aria-hidden="true"></i><br /> <span class="uk-text-smaller uk-text-uppercase">Menu</span> </a> </div> </nav> <div class="uk-container sjb-container" id="millerCareers"><div id="content" class="sjb-content" role="main"> <!-- Start Content Wrapper ================================================== --> <div class="sjb-page"> <div class="sjb-detail"> <div class="list-data"> <!-- Start Job Details ================================================== --> <!-- Start Company Meta ================================================== --> <header> <div class="row"> <!-- Start Job Title ================================================== --> <div class="col-md-12"> <div class="job-detail"> <h3><span class="job-title">Web Designer</span></h3> </div> </div> <!-- End Job Title ================================================== --> <!-- Start Company Logo ================================================== --> <div class="col-md-1 col-sm-2"> <div class="company-logo"> <img src="./../../../wp-content/plugins/simple-job-board/public/images/company.png" alt="" class="sjb-img-responsive" id=""/> </div> </div> <!-- ================================================== End Company Logo --> <div class="col-md-11 col-sm-10 header-margin-top"> <div class="row"> <!-- Start Company Name ================================================== --> <div class="col-md-5"> <div class="job-info job-info-margin"> <h4> </h4> </div> </div> <!-- End Company Name ================================================== --> <!-- Start Job Type ================================================== --> <div class="col-md-2 col-sm-4"> <div class="job-type"><i class="fa fa-briefcase"></i>Full-time</div> </div> <!-- ================================================== End Job Type --> <!-- Start Job Location ================================================== --> <div class="col-md-2 col-sm-4"> <div class="job-location"><i class="fa fa-map-marker"></i>Dallas</div> </div> <!-- ================================================== End Job Location --> <!-- Start Job Posted Date ================================================== --> <div class="col-md-3 col-sm-4"> <div class="job-date"><i class="fa fa-calendar-check-o"></i>Posted 3 weeks ago</div> </div> <!-- ================================================== End Job Posted Date --> </div> </div> <!-- Start Company Tagline ================================================== --> <!-- ================================================== End Company Tagline --> </div> </header> <!-- ================================================== End Company Meta --> <div class="job-description"> <h3>Job Requirements:</h3> <p>1 to 3 years of professional web design experience in WordPress and Microsoft .Net API; additional knowledge and experience in Adobe Photoshop required. Fluid understanding of HTML5, CSS, and other web-creation elements is a must. Any type of automotive experience is welcome, but not a requirement.</p> <h3>Job Description:</h3> <ul> <li>Working with account executives to design and create websites or web elements that meet the client&#8217;s brief, specifications, and budget;</li> <li>Managing time and completing projects creatively and quickly and with minimal to no errors;</li> <li>Working with fellow designers, the art director, and the creative director on concepts and ideas;</li> <li class="end">Ability to receive constructive criticism and provide feedback to the team;</li> </ul> <h3>Benefits of working with Miller Ad Agency:</h3> <ul> <li>401 K with Employer Matching</li> <li>360 degree approach to Job Development</li> <li>Flex Days</li> <li>Office Golf</li> <li class="end">Monthly Team Building Exercise</li> </ul> </div> <div class="clearfix"></div> <!-- Start Job Features ================================================== --> <div class="job-features"> <h3>Job Features</h3> <table class="table"> <tbody> <tr><td>Job Category</td><td>Creative</td></tr> <tr><td>Job Level</td><td>Entry Level </td></tr><tr><td>Job Industry</td><td>Automotive </td></tr> </tbody> </table> </div> <!-- ================================================== End Job Features --> <div class="clearfix"></div> <!-- Start Job Application Form ================================================== --> <form class="jobpost-form" id="sjb-application-form" name="c-assignments-form" enctype="multipart/form-data"> <h3>Apply Online</h3> <div class="row"> <div class="col-md-12"> <div class="form-group"><label for="jobapp_first_name">First Name<span class="required">*</span></label><input type="text" name="jobapp_first_name" class="form-control sjb-required" id="jobapp_first_name" required="required" ></div><div class="form-group"><label for="jobapp_last_name">Last Name<span class="required">*</span></label><input type="text" name="jobapp_last_name" class="form-control sjb-required" id="jobapp_last_name" required="required" ></div><div class="form-group"><label for="jobapp_email">Email<span class="required">*</span></label><input type="email" name="jobapp_email" class="form-control sjb-email-address sjb-required" id="jobapp_email" required="required"><span class="sjb-invalid-email validity-note">A valid email address is required.</span></div><div class="form-group"><label for="jobapp_phone">Phone<span class="required">*</span></label><input type="text" name="jobapp_phone" class="form-control sjb-required" id="jobapp_phone" required="required" ></div><div class="form-group"><label for="jobapp_message">Message<span class="required">*</span></label><textarea name="jobapp_message" class="form-control sjb-required" id="jobapp_message" required="required"></textarea></div><div class="form-group"><label for="applicant_resume">Attach Resume<span class="sjb-required required">*</span></label><input type="file" name="applicant_resume" id="applicant-resume" class="sjb-attachment form-control"><span class="sjb-invalid-attachment validity-note" id="file-error-message"></span></div> <input type="hidden" name="job_id" value="56652" > <input type="hidden" name="action" value="process_applicant_form" > <input type="hidden" name="wp_nonce" value="30145c93e9" > <div class="form-group" id="sjb-form-padding-button"> <button class="btn btn-primary app-submit">Submit</button> </div> </div> </div> </form> <div class="clearfix"></div> <div id="jobpost_form_status"></div> <!-- ================================================== End Job Application Form --> <!-- ================================================== End Job Details --> </div> <div class="clearfix"></div> </div> </div> <!-- ================================================== End Content Wrapper --> </div></div> <!-- toTop --> <a id="toTopBtn" class="uk-icon-button toTopBtn" href="#toTop" uk-scroll="" uk-icon="icon: chevron-up" title="To the top!" uk-tooltip="pos: left"></a> <!-- FOOTER --> <div class="uk-text-center" id="socialNetworks"> <div class="uk-text-small"> <ul class="uk-nav uk-list list-inline"> <li class="uk-margin-right"> <a href="https://www.facebook.com/pages/Miller-Ad-Agency/115464605176063" target="_blank" uk-scrollspy="cls: uk-animation-scale-up;" title="pls like us kthxbye ;D" uk-tooltip> <span uk-icon="icon: facebook" class="uk-icon"></span> </a> </li> <li class="uk-margin-right"> <a href="https://www.instagram.com/milleradagency/" target="_blank" uk-scrollspy="cls: uk-animation-scale-up;" title="Double tap our faces" uk-tooltip> <span uk-icon="icon: instagram" class="uk-icon"></span> </a> </li> <li class="uk-margin-right"> <a href="https://www.linkedin.com/company/miller-ad-agency" target="_blank" uk-scrollspy="cls: uk-animation-scale-up;" title="Link us? Follow us? Or...?" uk-tooltip> <span uk-icon="icon: linkedin" class="uk-icon"></span> </a> </li> <li> <a href="https://twitter.com/milleragency" target="_blank" uk-scrollspy="cls: uk-animation-scale-up;" title="#hashtag — right?" uk-tooltip> <span uk-icon="icon: twitter" class="uk-icon"></span> </a> </li> </ul> </div> </div> </div> <footer class="maa-footer" id="footer"> <div class="footer-image" uk-scrollspy="cls: uk-animation-kenburns; repeat: true"> <div class="footer-image-tint"></div> </div> <div class="uk-container uk-margin-remove-top uk-margin-medium-bottom uk-text-smaller" id="footerBars" uk-navbar> <ul class="maa-footer-links uk-width-1-1 uk-flex-center uk-text-center"> <li><a href="./../../../seo-evaluation/index.html" class="elementor-button elementor-size-sm">Check Your SEO</a></li> <li><a href="./../../../google-adwords/index.html" class="elementor-button elementor-size-sm">Google AdWords</a></li> <li><a href="./../../../pandora-radio-advertising/index.html" class="elementor-button elementor-size-sm">Advertise on Pandora Radio</a></li> <li><a href="http://www.bbb.org/dallas/business-reviews/advertising-agencies-and-counselors/miller-ad-agency-in-dallas-tx-90377086" target="_blank" class="elementor-button elementor-size-sm" title="*This link opens a new tab" uk-tooltip>BBB A+ Rated Business*</a></li> <li><a href="http://www.baylor.edu/business/txfamily/index.php?id=97637" target="_blank" class="elementor-button elementor-size-sm" title="*This link opens a new tab" uk-tooltip>Baylor Business*</a></li> </ul> </div> <div class="uk-container uk-margin-remove-top uk-margin-remove-bottom uk-text-center uk-text-small"> <p class="copyright uk-margin-small-bottom" id="copyrightFooter"> © 1984<script>document.getElementById('copyrightFooter').appendChild(document.createTextNode("–"+new Date().getFullYear()))</script>&nbsp;Miller Ad Agency </p> <ul class="maa-footer-details uk-margin-remove-top uk-margin-small-bottom"> <li> <a href="https://goo.gl/maps/LChXN6prw412" target="_blank" class="maa-footer-map-link">2711 Valley View Lane, Suite 101, Dallas, TX</a> </li> <li> <a href="tel:9722432211">972.243.2211</a> </li> <li> <a href="./../../../privacy/index.html">Privacy Policy</a> </li> <li> <a href="./../../../terms/index.html">Terms of Use</a> </li> </ul> <!-- <p class="query-load uk-text-small uk-margin-small-bottom"> Load: <span class="perf-load">46</span> queries. <span class="perf-load">0.157</span> seconds. </p> --> <p class="maa-credits uk-margin-remove" style="display:none;"> Find something wrong with our website? <a href="./../../../support/index.html">Submit a ticket.</a> </p> </div> </footer> <!-- MOBILE OFF-CANVAS SIDEBAR NAV --> <!-- <div id="offcanvas" class="uk-modal-full uk-animation-slide-bottom-small" uk-modal> <div class="uk-modal-dialog"> <div class="maa-offcanvas-header" style="background-image:url(/wp-content/uploads/cover-mobilemenu.jpg);"> <div class="uk-overlay uk-light uk-position-bottom uk-text-center"> <a href="./" class="maa-logo-icon"> <img src="./wp-content/themes/millerAgency/assets/images/miller/maa-offcanvas-logo-icon.svg" alt="Miller Ad Agency"> <h3 class="uk-margin-remove">Media Ad Agency</h3> </a> </div> </div> <button class="uk-modal-close uk-close-large uk-background-muted uk-border-circle maa-mobile-toggle" type="button" uk-close></button> <div class=""> <ul class="uk-flex uk-flex-around uk-flex-nowrap" uk-tab="animation: uk-animation-slide-right-medium, uk-animation-slide-left-medium"> <li><a href="#">About</a></li> <li><a href="#">Advertising</a></li> <li><a href="#">Our Work</a></li> <li><a href="#">Tools</a></li> </ul> <ul class="uk-switcher uk-margin"> <li> <div class="uk-padding-smaller"> <h4><a href="">About Miller Ad Agency</a></h4> <p> For more than 30 years Miller Ad Agency has earned a reputation as experts in advertising. We use our unique approach to marketing and advertising to bring you the results you’re looking for. From boosting your bottom line to growing your market share, we brings results. </p> </div> <hr /> <div class="uk-padding-smaller"> <h4><a href="">Miller crew</a></h4> <p> This crew keeps the ship sailing. Take a look at the fine folks that make all this possible. </p> </div> <hr /> <div class="uk-padding-smaller"> <h4><a href="">Blog posts</a></h4> <p> Ramblings, rants, theories, tips, and more! </p> </div> <hr /> <div class="uk-padding-smaller"> <h4><a href="">Our clients</a></h4> <p> Miller Ad Agency prides itself in building success for our clients both large and small. For over twenty years Miller Ad Agency has been working to build strong, collaborative relationships with our clients. </p> </div> <hr /> <div class="uk-padding-smaller"> <h4><a href="">Why they love us</a></h4> <p> Listen to some testimonials from the brands we boost; check out what our clients have said. </p> </div> <hr /> <div class="uk-padding-smaller"> <h4><a href="">Careers</a></h4> <p> Do you consider yourself a conjurer of conjugation? Become a Copywriter. Are you the Da Vinci of design? Become a Graphic Designer. Do you enjoy expediting and facilitating? Become an Account Services consultant. Want to be CEO? Sorry, that job is already taken. </p> </div> <hr /> <div class="uk-padding-smaller"> <h4><a href="">The newsletter</a></h4> <p> With a team spanning across generations, we use our diverse point of views to reach all target markets. Now, pull up a chair, grab a beer, pick up a Nerf gun or golf club, pet the nearest puppy and let's get started on growing your business. </p> </div> <hr /> </li> <li>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</li> <li>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur, sed do eiusmod.</li> <li>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</li> </ul> </div> <p class="uk-margin-small-bottom uk-text-center" id="copyrightSidebar"> &copy; 1984<script>document.getElementById('copyrightSidebar').appendChild(document.createTextNode("–"+new Date().getFullYear()))</script>&nbsp;Miller Ad Agency </p> <p class="uk-text-small uk-margin-medium-bottom uk-text-center"> Find something wrong with our website?<br /><a href="/support">Submit a ticket</a>. </p> </div> </div> --> <div id="offcanvas" class="uk-modal-full uk-animation-slide-bottom-small" uk-modal> <div class="uk-modal-dialog"> <div class="maa-offcanvas-header" style="background-image:url(./../../../wp-content/uploads/cover-mobilemenu.jpg);"> <div class="uk-overlay uk-light uk-position-bottom uk-text-center"> <a href="./../../../index.html" class="maa-logo-icon"> <img src="./../../../wp-content/themes/millerAgency/assets/images/miller/maa-offcanvas-logo-icon.svg" alt="Miller Ad Agency"> <h3 class="uk-margin-remove">Media Ad Agency</h3> </a> </div> </div> <button class="uk-modal-close uk-close-large uk-background-muted uk-border-circle maa-mobile-toggle" type="button" uk-close></button> <ul id="menu-mobile-menu" class=""><li id="menu-item-54946" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-54946"><a href="./../../../about-miller-ad-agency/index.html">About</a> <ul class="sub-menu"> <li id="menu-item-55596" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-55596"><a href="./../../../about/team/index.html">Miller Crew</a></li> <li id="menu-item-54947" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-54947"><a href="./../../../about/blog/index.html">Blog</a></li> <li id="menu-item-55597" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-55597"><a href="./../../../about/testimonials/index.html">What People Are Saying</a></li> <li id="menu-item-55598" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-55598"><a href="./../../../about/clients/index.html">Our Clients</a></li> <li id="menu-item-57014" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-57014"><a href="./../../../newsletter/index.html">Newsletter</a></li> </ul> </li> <li id="menu-item-54942" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-54942"><a href="./../../../services/index.html">Advertising</a> <ul class="sub-menu"> <li id="menu-item-55997" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-55997"><a href="./../../../services/index.html#television">Television</a></li> <li id="menu-item-55998" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-55998"><a href="./../../../services/index.html#radio">Radio</a></li> <li id="menu-item-55999" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-55999"><a href="./../../../services/index.html#jingles">Jingles</a></li> <li id="menu-item-56000" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-56000"><a href="./../../../services/index.html#print">Print</a></li> <li id="menu-item-56001" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-56001"><a href="./../../../services/index.html#seo">SEO</a></li> <li id="menu-item-56002" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-56002"><a href="./../../../services/index.html#paidsearch">Paid Search</a></li> <li id="menu-item-56003" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-56003"><a href="./../../../services/index.html#digital">Digital Formats</a></li> <li id="menu-item-56004" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-56004"><a href="./../../../services/index.html#preroll">Pre-Roll</a></li> <li id="menu-item-56005" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-56005"><a href="./../../../services/index.html#email">Email Marketing</a></li> <li id="menu-item-56006" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-56006"><a href="./../../../services/index.html#socialRep">Social Reputation</a></li> <li id="menu-item-56007" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-56007"><a href="./../../../services/index.html#web">Web Design &#038; Dev.</a></li> <li id="menu-item-56008" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-56008"><a href="./../../../services/index.html#branding">Branding</a></li> <li id="menu-item-56009" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-56009"><a href="./../../../services/index.html#messaging">Messaging &#038; Tone</a></li> <li id="menu-item-56010" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-56010"><a href="./../../../services/index.html#pr">Public Relations</a></li> <li id="menu-item-57010" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-57010"><a href="./../../../services/index.html#notSure">Not Sure?</a></li> </ul> </li> <li id="menu-item-54941" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-54941"><a href="./../../../work/index.html">Work</a></li> <li id="menu-item-54940" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-54940"><a href="./../../../contact/index.html">Hire Us</a></li> <li id="menu-item-56011" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-56011"><a>Tools</a> <ul class="sub-menu"> <li id="menu-item-55602" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-55602"><a href="./../../../seo-evaluation/index.html">Check Your SEO</a></li> <li id="menu-item-57011" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-57011"><a href="./../../../services/index.html#notSure">What Advertising Do You Need?</a></li> <li id="menu-item-55600" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-55600"><a href="./../../../pandora-radio-advertising/index.html">Advertise on Pandora</a></li> <li id="menu-item-55601" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-55601"><a href="./../../../google-adwords/index.html">Get Google AdWords</a></li> </ul> </li> <li id="menu-item-55599" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-55599"><a href="./../../index.html">Careers</a> <ul class="sub-menu"> <li id="menu-item-55991" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-55991"><a href="./../account-executive/index.html">Account Executive</a></li> <li id="menu-item-55992" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-55992"><a href="#">Junior Media Buyer</a></li> <li id="menu-item-55993" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-55993"><a href="#">Graphic Designer</a></li> <li id="menu-item-55994" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-55994"><a href="#">Web Designer</a></li> <li id="menu-item-55996" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-55996"><a href="#">Interns Wanted!</a></li> </ul> </li> </ul> <p class="uk-margin-small-bottom uk-text-center" id="copyrightSidebar"> &copy; 1984<script>document.getElementById('copyrightSidebar').appendChild(document.createTextNode("–"+new Date().getFullYear()))</script>&nbsp;Miller Ad Agency </p> <p class="uk-text-small uk-margin-medium-bottom uk-text-center"> Find something wrong with our website?<br /><a href="./../../../support/index.html">Submit a ticket</a>. </p> </div> </div> <script type='text/javascript' src='https://cdnjs.cloudflare.com/ajax/libs/velocity/1.5.0/velocity.min.js'></script> <script type='text/javascript' src='https://cdnjs.cloudflare.com/ajax/libs/velocity/1.5.0/velocity.ui.min.js'></script> <script type='text/javascript' src='./../../../wp-content/themes/millerAgency/assets/js/uikit-toggle.js'></script> <script type='text/javascript' src='./../../../wp-content/themes/millerAgency/assets/js/uikit.min.js'></script> <script type='text/javascript' src='./../../../wp-content/themes/millerAgency/assets/js/uikit-icons.min.js'></script> <script type='text/javascript' src='./../../../wp-content/themes/millerAgency/assets/js/highlight.pack.js' async='async'></script> <script type='text/javascript' src='./../../../wp-content/plugins/simple-job-board/public/js/intlTelInput.min.js' async='async'></script> <script type='text/javascript' src='./../../../wp-content/plugins/simple-job-board/public/js/intlTelInput-utils.js' async='async'></script> <script type='text/javascript' src='./../../../wp-includes/js/jquery/ui/effect.min.js?ver=1.11.4'></script> <script type='text/javascript' src='./../../../wp-includes/js/jquery/ui/core.min.js?ver=1.11.4'></script> <script type='text/javascript' src='./../../../wp-includes/js/jquery/ui/datepicker.min.js?ver=1.11.4'></script> <script type='text/javascript'> jQuery(document).ready(function(jQuery){jQuery.datepicker.setDefaults({"closeText":"Close","currentText":"Today","monthNames":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthNamesShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"nextText":"Next","prevText":"Previous","dayNames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"dayNamesShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dayNamesMin":["S","M","T","W","T","F","S"],"dateFormat":"MM d, yy","firstDay":1,"isRTL":false});}); </script> <script type='text/javascript'> /* <![CDATA[ */ var application_form = {"ajaxurl":".\/wp-admin\/admin-ajax.php","setting_extensions":"","all_extensions_check":"yes","allowed_extensions":["pdf","doc","docx","odt","rtf","txt"],"job_listing_content":"without-logo-detail","jobpost_content":"with-logo","jquery_alerts":{"invalid_extension":"This is not an allowed file extension.","application_not_submitted":"Your application could not be processed."},"file":{"browse":"Browse","no_file_chosen":"No file chosen"}}; /* ]]> */ </script> <script type='text/javascript' src='./../../../wp-content/plugins/simple-job-board/public/js/simple-job-board-public.js?ver=1.4.0' async='async'></script> <script type='text/javascript' src='./../../../wp-content/plugins/elementor/assets/lib/waypoints/waypoints.min.js'></script> <script type='text/javascript' src='./../../../wp-content/plugins/elementor-pro/assets/js/frontend.min.js' async='async'></script> <script type='text/javascript' src='./../../../wp-content/plugins/elementor/assets/js/frontend.min.js' async='async'></script> <script type='text/javascript' src='./../../../wp-content/themes/millerAgency/assets/js/millerAgency.js' async='async'></script> <script> $(document).ready(function() { $('code').each(function(i, block) { hljs.highlightBlock(block); }); }); </script> <script> var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']]; (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0]; g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js'; s.parentNode.insertBefore(g,s)}(document,'script')); </script> </body> </html>
williampansky/pants
static/projects/miller.agency/demo/careers-at-miller-ad-agency/full-time/web-designer/index.html
HTML
mit
44,989
/* * grunt-git-reset * https://github.com/zachwolf/grunt-git-reset * * Copyright (c) 2014 Zach Wolf * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ jshint: { all: [ 'Gruntfile.js', 'tasks/*.js', '<%= nodeunit.tests %>' ], options: { jshintrc: '.jshintrc' } }, // Configuration to be run (and then tested). git_reset: { good_options: { options: { 'path': 'test/fixtures/' } }, bad_options: { options: { } } }, // Unit tests. nodeunit: { tests: ['test/*_test.js'] } }); // Actually load this plugin's task(s). grunt.loadTasks('tasks'); // These plugins provide necessary tasks. grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-nodeunit'); // By default, lint and run all tests. grunt.registerTask('default', ['jshint', 'test']); };
zachwolf/grunt-git-reset
Gruntfile.js
JavaScript
mit
1,038
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * */ package com.microsoft.azure.management.sql.v2015_05_01_preview.implementation; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import com.microsoft.azure.management.sql.v2015_05_01_preview.ServerAdvisors; import rx.Observable; import rx.functions.Func1; import java.util.List; import com.microsoft.azure.management.sql.v2015_05_01_preview.ServerAdvisor; class ServerAdvisorsImpl extends WrapperImpl<ServerAdvisorsInner> implements ServerAdvisors { private final SqlManager manager; ServerAdvisorsImpl(SqlManager manager) { super(manager.inner().serverAdvisors()); this.manager = manager; } public SqlManager manager() { return this.manager; } private ServerAdvisorImpl wrapModel(AdvisorInner inner) { return new ServerAdvisorImpl(inner, manager()); } @Override public Observable<ServerAdvisor> listByServerAsync(String resourceGroupName, String serverName) { ServerAdvisorsInner client = this.inner(); return client.listByServerAsync(resourceGroupName, serverName) .flatMap(new Func1<List<AdvisorInner>, Observable<AdvisorInner>>() { @Override public Observable<AdvisorInner> call(List<AdvisorInner> innerList) { return Observable.from(innerList); } }) .map(new Func1<AdvisorInner, ServerAdvisor>() { @Override public ServerAdvisor call(AdvisorInner inner) { return wrapModel(inner); } }); } @Override public Observable<ServerAdvisor> getAsync(String resourceGroupName, String serverName, String advisorName) { ServerAdvisorsInner client = this.inner(); return client.getAsync(resourceGroupName, serverName, advisorName) .map(new Func1<AdvisorInner, ServerAdvisor>() { @Override public ServerAdvisor call(AdvisorInner inner) { return wrapModel(inner); } }); } }
navalev/azure-sdk-for-java
sdk/sql/mgmt-v2015_05_01_preview/src/main/java/com/microsoft/azure/management/sql/v2015_05_01_preview/implementation/ServerAdvisorsImpl.java
Java
mit
2,242
require 'coveralls' Coveralls.wear! # This file was generated by the `rails generate rspec:install` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # The generated `.rspec` file contains `--require spec_helper` which will cause this # file to always be loaded, without a need to explicitly require it in any files. # # Given that it is always loaded, you are encouraged to keep this file as # light-weight as possible. Requiring heavyweight dependencies from this file # will add to the boot time of your test suite on EVERY test run, even for an # individual file that may not need all of that loaded. Instead, make a # separate helper file that requires this one and then use it only in the specs # that actually need it. # # The `.rspec` file also contains a few flags that are not defaults but that # users commonly want. # # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration RSpec.configure do |config| # The settings below are suggested to provide a good initial experience # with RSpec, but feel free to customize to your heart's content. =begin # These two settings work together to allow you to limit a spec run # to individual examples or groups you care about by tagging them with # `:focus` metadata. When nothing is tagged with `:focus`, all examples # get run. config.filter_run :focus config.run_all_when_everything_filtered = true # Many RSpec users commonly either run the entire suite or an individual # file, and it's useful to allow more verbose output when running an # individual spec file. if config.files_to_run.one? # Use the documentation formatter for detailed output, # unless a formatter has already been configured # (e.g. via a command-line flag). config.default_formatter = 'doc' end # Print the 10 slowest examples and example groups at the # end of the spec run, to help surface which specs are running # particularly slow. config.profile_examples = 10 # Run specs in random order to surface order dependencies. If you find an # order dependency and want to debug it, you can fix the order by providing # the seed, which is printed after each run. # --seed 1234 config.order = :random # Seed global randomization in this process using the `--seed` CLI option. # Setting this allows you to use `--seed` to deterministically reproduce # test failures related to randomization by passing the same `--seed` value # as the one that triggered the failure. Kernel.srand config.seed # rspec-expectations config goes here. You can use an alternate # assertion/expectation library such as wrong or the stdlib/minitest # assertions if you prefer. config.expect_with :rspec do |expectations| # Enable only the newer, non-monkey-patching expect syntax. # For more details, see: # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax expectations.syntax = :expect end # rspec-mocks config goes here. You can use an alternate test double # library (such as bogus or mocha) by changing the `mock_with` option here. config.mock_with :rspec do |mocks| # Enable only the newer, non-monkey-patching expect syntax. # For more details, see: # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/ mocks.syntax = :expect # Prevents you from mocking or stubbing a method that does not exist on # a real object. This is generally recommended. mocks.verify_partial_doubles = true end =end end
dinomedia/ror-task
spec/spec_helper.rb
Ruby
mit
3,560
package etcd import ( "testing" "github.com/NetSys/quilt/db" "github.com/stretchr/testify/assert" ) func TestRunLabelOnce(t *testing.T) { t.Parallel() store := newTestMock() conn := db.New() err := runLabelOnce(conn, store) assert.Error(t, err) err = store.Set(labelPath, "", 0) assert.NoError(t, err) conn.Txn(db.AllTables...).Run(func(view db.Database) error { etcd := view.InsertEtcd() etcd.Leader = true view.Commit(etcd) label := view.InsertLabel() label.Label = "Robot" label.IP = "1.2.3.5" view.Commit(label) return nil }) err = runLabelOnce(conn, store) assert.NoError(t, err) str, err := store.Get(labelPath) assert.NoError(t, err) expStr := `[ { "Label": "Robot", "IP": "1.2.3.5", "ContainerIPs": null } ]` assert.Equal(t, expStr, str) conn.Txn(db.AllTables...).Run(func(view db.Database) error { etcd := view.SelectFromEtcd(nil)[0] etcd.Leader = false view.Commit(etcd) label := view.SelectFromLabel(nil)[0] label.IP = "1.2.3.4" view.Commit(label) return nil }) err = runLabelOnce(conn, store) assert.NoError(t, err) explabel := db.Label{ Label: "Robot", IP: "1.2.3.5", } labels := conn.SelectFromLabel(nil) assert.Len(t, labels, 1) labels[0].ID = 0 assert.Equal(t, explabel, labels[0]) err = runLabelOnce(conn, store) assert.NoError(t, err) labels = conn.SelectFromLabel(nil) assert.Len(t, labels, 1) labels[0].ID = 0 assert.Equal(t, explabel, labels[0]) }
mmussomele/quilt
minion/etcd/label_test.go
GO
mit
1,489
<?php /** * @package hubzero-cms * @copyright Copyright 2005-2019 HUBzero Foundation, LLC. * @license http://opensource.org/licenses/MIT MIT */ namespace Components\Search\Helpers; require_once "$componentPath/helpers/errorMessageHelper.php"; require_once "$componentPath/helpers/mockProxy.php"; use Components\Search\Helpers\ErrorMessageHelper; use Components\Search\Helpers\MockProxy; use Hubzero\Utility\Arr; use Notify; class RecordProcessingHelper { protected $controller, $errorMessageHelper, $app, $notify; public function __construct($args = []) { $this->controller = $args['controller']; $this->errorMessageHelper = Arr::getValue( $args, 'error', new ErrorMessageHelper() ); $this->app = Arr::getValue( $args, 'app', new MockProxy(['class' => 'App']) ); $this->notify = Arr::getValue( $args, 'notify', new MockProxy(['class' => 'Notify']) ); } public function handleSaveSuccess($message, $url) { $this->handleSuccess($message, $url); } public function handleSaveFail($record) { $this->generateErrorNotification($record); $this->controller->setView($this->controller->name, 'new'); $this->controller->newTask($record); } public function handleUpdateSuccess($message, $url) { $this->handleSuccess($message, $url); } public function handleUpdateFail($record) { $this->generateErrorNotification($record); $this->controller->setView($this->controller->name, 'edit'); $this->controller->editTask($record); } public function handleDestroySuccess($message, $url) { $this->handleSuccess($message, $url); } public function handleDestroyFail($message, $url) { $this->notifyOfError($message); $this->redirectTo($url); } protected function handleSuccess($message, $url) { $this->notifyOfSuccess($message); $this->redirectTo($url); } protected function notifyOfSuccess($message) { $this->notify->success($message); } protected function redirectTo($url) { $this->app->redirect($url); } protected function generateErrorNotification($record) { $errors = $record->getErrors(); $message = $this->errorMessageHelper->generateErrorMessage($errors); $this->notifyOfError($message); } protected function notifyOfError($message) { $this->notify->error($message); } }
zooley/hubzero-cms
core/components/com_search/helpers/recordProcessingHelper.php
PHP
mit
2,285
<!DOCTYPE html> <html lang="en"> <head> <title>TIFFImageWindow Class Reference</title> <link rel="stylesheet" type="text/css" href="../css/jazzy.css" /> <link rel="stylesheet" type="text/css" href="../css/highlight.css" /> <meta charset='utf-8'> <script src="../js/jquery.min.js" defer></script> <script src="../js/jazzy.js" defer></script> <script src="../js/lunr.min.js" defer></script> <script src="../js/typeahead.jquery.js" defer></script> <script src="../js/jazzy.search.js" defer></script> </head> <body> <a name="//apple_ref/objc/Class/TIFFImageWindow" class="dashAnchor"></a> <a title="TIFFImageWindow Class Reference"></a> <header> <div class="content-wrapper"> <p><a href="../index.html">geopackage-ios 7.0.2 Docs</a> (81% documented)</p> <p class="header-right"><a href="https://github.com/ngageoint/geopackage-ios"><img src="../img/gh.png" alt="GitHub"/>View on GitHub</a></p> <div class="header-right"> <form role="search" action="../search.json"> <input type="text" placeholder="Search documentation" data-typeahead> </form> </div> </div> </header> <div class="content-wrapper"> <p id="breadcrumbs"> <a href="../index.html">geopackage-ios Reference</a> <img id="carat" src="../img/carat.png" alt=""/> TIFFImageWindow Class Reference </p> </div> <div class="content-wrapper"> <nav class="sidebar"> <ul class="nav-groups"> <li class="nav-group-name"> <a href="../Classes.html">Classes</a> <ul class="nav-group-tasks"> <li class="nav-group-task"> <a href="../Classes/CRSAbridgedCoordinateTransformation.html">CRSAbridgedCoordinateTransformation</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSAxis.html">CRSAxis</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSAxisDirectionTypes.html">CRSAxisDirectionTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSBoundCoordinateReferenceSystem.html">CRSBoundCoordinateReferenceSystem</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSCategoryTypes.html">CRSCategoryTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSCommon.html">CRSCommon</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSCompoundCoordinateReferenceSystem.html">CRSCompoundCoordinateReferenceSystem</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSConcatenatedOperation.html">CRSConcatenatedOperation</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSCoordinateMetadata.html">CRSCoordinateMetadata</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSCoordinateOperation.html">CRSCoordinateOperation</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSCoordinateReferenceSystem.html">CRSCoordinateReferenceSystem</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSCoordinateSystem.html">CRSCoordinateSystem</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSCoordinateSystemTypes.html">CRSCoordinateSystemTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSDateTime.html">CRSDateTime</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSDatumEnsemble.html">CRSDatumEnsemble</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSDatumEnsembleMember.html">CRSDatumEnsembleMember</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSDerivedCoordinateReferenceSystem.html">CRSDerivedCoordinateReferenceSystem</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSDerivingConversion.html">CRSDerivingConversion</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSDynamic.html">CRSDynamic</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSEllipsoid.html">CRSEllipsoid</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSEllipsoidTypes.html">CRSEllipsoidTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSEllipsoids.html">CRSEllipsoids</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSEngineeringCoordinateReferenceSystem.html">CRSEngineeringCoordinateReferenceSystem</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSEngineeringDatum.html">CRSEngineeringDatum</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSExtent.html">CRSExtent</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSGeoCoordinateReferenceSystem.html">CRSGeoCoordinateReferenceSystem</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSGeoDatumEnsemble.html">CRSGeoDatumEnsemble</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSGeoDatums.html">CRSGeoDatums</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSGeoReferenceFrame.html">CRSGeoReferenceFrame</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSGeographicBoundingBox.html">CRSGeographicBoundingBox</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSIdentifier.html">CRSIdentifier</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSKeyword.html">CRSKeyword</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSMapProjection.html">CRSMapProjection</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSObject.html">CRSObject</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSOperation.html">CRSOperation</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSOperationMethod.html">CRSOperationMethod</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSOperationMethods.html">CRSOperationMethods</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSOperationParameter.html">CRSOperationParameter</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSOperationParameters.html">CRSOperationParameters</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSOperationTypes.html">CRSOperationTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSParametricCoordinateReferenceSystem.html">CRSParametricCoordinateReferenceSystem</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSParametricDatum.html">CRSParametricDatum</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSPointMotionOperation.html">CRSPointMotionOperation</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSPrimeMeridian.html">CRSPrimeMeridian</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSPrimeMeridians.html">CRSPrimeMeridians</a> </li> <li class="nav-group-task"> <a href="../Classes.html#/c:objc(cs)CRSProjConstants">CRSProjConstants</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSProjParams.html">CRSProjParams</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSProjParser.html">CRSProjParser</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSProjectedCoordinateReferenceSystem.html">CRSProjectedCoordinateReferenceSystem</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSReader.html">CRSReader</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSReferenceFrame.html">CRSReferenceFrame</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSSimpleCoordinateReferenceSystem.html">CRSSimpleCoordinateReferenceSystem</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSSimpleOperation.html">CRSSimpleOperation</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSTemporalCoordinateReferenceSystem.html">CRSTemporalCoordinateReferenceSystem</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSTemporalDatum.html">CRSTemporalDatum</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSTemporalExtent.html">CRSTemporalExtent</a> </li> <li class="nav-group-task"> <a href="../Classes.html#/c:objc(cs)CRSTextConstants">CRSTextConstants</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSTextReader.html">CRSTextReader</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSTextUtils.html">CRSTextUtils</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSTriaxialEllipsoid.html">CRSTriaxialEllipsoid</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSTypes.html">CRSTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSUnit.html">CRSUnit</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSUnitTypes.html">CRSUnitTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSUnits.html">CRSUnits</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSUsage.html">CRSUsage</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSVerticalCoordinateReferenceSystem.html">CRSVerticalCoordinateReferenceSystem</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSVerticalDatumEnsemble.html">CRSVerticalDatumEnsemble</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSVerticalExtent.html">CRSVerticalExtent</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSVerticalReferenceFrame.html">CRSVerticalReferenceFrame</a> </li> <li class="nav-group-task"> <a href="../Classes/CRSWriter.html">CRSWriter</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGAlterTable.html">GPKGAlterTable</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGAttributesColumn.html">GPKGAttributesColumn</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGAttributesColumns.html">GPKGAttributesColumns</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGAttributesDao.html">GPKGAttributesDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGAttributesRow.html">GPKGAttributesRow</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGAttributesTable.html">GPKGAttributesTable</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGAttributesTableMetadata.html">GPKGAttributesTableMetadata</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGAttributesTableReader.html">GPKGAttributesTableReader</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGBaseDao.html">GPKGBaseDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGBaseExtension.html">GPKGBaseExtension</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGBoundedOverlay.html">GPKGBoundedOverlay</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGBoundingBox.html">GPKGBoundingBox</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGColor.html">GPKGColor</a> </li> <li class="nav-group-task"> <a href="../Classes.html#/c:objc(cs)GPKGColorConstants">GPKGColorConstants</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGColorUtils.html">GPKGColorUtils</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGColumnConstraints.html">GPKGColumnConstraints</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGColumnValue.html">GPKGColumnValue</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGColumnValues.html">GPKGColumnValues</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGCompositeOverlay.html">GPKGCompositeOverlay</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGCompressFormats.html">GPKGCompressFormats</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGConnection.html">GPKGConnection</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGConnectionFunction.html">GPKGConnectionFunction</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGConnectionPool.html">GPKGConnectionPool</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGConstraint.html">GPKGConstraint</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGConstraintParser.html">GPKGConstraintParser</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGConstraintTypes.html">GPKGConstraintTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGConstraints.html">GPKGConstraints</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGContentValues.html">GPKGContentValues</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGContents.html">GPKGContents</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGContentsDao.html">GPKGContentsDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGContentsDataTypes.html">GPKGContentsDataTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGContentsId.html">GPKGContentsId</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGContentsIdDao.html">GPKGContentsIdDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGContentsIdExtension.html">GPKGContentsIdExtension</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGContentsIdTableCreator.html">GPKGContentsIdTableCreator</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGCoverageData.html">GPKGCoverageData</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGCoverageDataAlgorithms.html">GPKGCoverageDataAlgorithms</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGCoverageDataPng.html">GPKGCoverageDataPng</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGCoverageDataPngImage.html">GPKGCoverageDataPngImage</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGCoverageDataRequest.html">GPKGCoverageDataRequest</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGCoverageDataResults.html">GPKGCoverageDataResults</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGCoverageDataSourcePixel.html">GPKGCoverageDataSourcePixel</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGCoverageDataTiff.html">GPKGCoverageDataTiff</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGCoverageDataTiffImage.html">GPKGCoverageDataTiffImage</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGCoverageDataTileMatrixResults.html">GPKGCoverageDataTileMatrixResults</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGCrsWktExtension.html">GPKGCrsWktExtension</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGDataColumnConstraints.html">GPKGDataColumnConstraints</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGDataColumnConstraintsDao.html">GPKGDataColumnConstraintsDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGDataColumns.html">GPKGDataColumns</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGDataColumnsDao.html">GPKGDataColumnsDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGDataTypes.html">GPKGDataTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGDateTimeUtils.html">GPKGDateTimeUtils</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGDbConnection.html">GPKGDbConnection</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGDublinCoreMetadata.html">GPKGDublinCoreMetadata</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGDublinCoreTypes.html">GPKGDublinCoreTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGExtendedRelation.html">GPKGExtendedRelation</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGExtendedRelationsDao.html">GPKGExtendedRelationsDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGExtensionManagement.html">GPKGExtensionManagement</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGExtensionManager.html">GPKGExtensionManager</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGExtensions.html">GPKGExtensions</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGExtensionsDao.html">GPKGExtensionsDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureCache.html">GPKGFeatureCache</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureCacheTables.html">GPKGFeatureCacheTables</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureColumn.html">GPKGFeatureColumn</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureColumns.html">GPKGFeatureColumns</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureDao.html">GPKGFeatureDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureGenerator.html">GPKGFeatureGenerator</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureIndexFeatureResults.html">GPKGFeatureIndexFeatureResults</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureIndexGeoPackageResults.html">GPKGFeatureIndexGeoPackageResults</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureIndexListResults.html">GPKGFeatureIndexListResults</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureIndexLocation.html">GPKGFeatureIndexLocation</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureIndexManager.html">GPKGFeatureIndexManager</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureIndexMetadataResults.html">GPKGFeatureIndexMetadataResults</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureIndexRTreeResults.html">GPKGFeatureIndexRTreeResults</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureIndexResultSetResults.html">GPKGFeatureIndexResultSetResults</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureIndexResults.html">GPKGFeatureIndexResults</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureIndexTypes.html">GPKGFeatureIndexTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureIndexer.html">GPKGFeatureIndexer</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureIndexerIdQuery.html">GPKGFeatureIndexerIdQuery</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureIndexerIdResultSet.html">GPKGFeatureIndexerIdResultSet</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureInfoBuilder.html">GPKGFeatureInfoBuilder</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureOverlay.html">GPKGFeatureOverlay</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureOverlayQuery.html">GPKGFeatureOverlayQuery</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeaturePreview.html">GPKGFeaturePreview</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureRow.html">GPKGFeatureRow</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureRowData.html">GPKGFeatureRowData</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureShape.html">GPKGFeatureShape</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureShapes.html">GPKGFeatureShapes</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureStyle.html">GPKGFeatureStyle</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureStyleExtension.html">GPKGFeatureStyleExtension</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureStyles.html">GPKGFeatureStyles</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureTable.html">GPKGFeatureTable</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureTableData.html">GPKGFeatureTableData</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureTableIndex.html">GPKGFeatureTableIndex</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureTableMetadata.html">GPKGFeatureTableMetadata</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureTableReader.html">GPKGFeatureTableReader</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureTableStyles.html">GPKGFeatureTableStyles</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureTileContext.html">GPKGFeatureTileContext</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureTileGenerator.html">GPKGFeatureTileGenerator</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureTileLink.html">GPKGFeatureTileLink</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureTileLinkDao.html">GPKGFeatureTileLinkDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureTileLinkTableCreator.html">GPKGFeatureTileLinkTableCreator</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureTilePointIcon.html">GPKGFeatureTilePointIcon</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureTileTableLinker.html">GPKGFeatureTileTableLinker</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGFeatureTiles.html">GPKGFeatureTiles</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGeoPackage.html">GPKGGeoPackage</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGeoPackageCache.html">GPKGGeoPackageCache</a> </li> <li class="nav-group-task"> <a href="../Classes.html#/c:objc(cs)GPKGGeoPackageConstants">GPKGGeoPackageConstants</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGeoPackageFactory.html">GPKGGeoPackageFactory</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGeoPackageManager.html">GPKGGeoPackageManager</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGeoPackageMetadata.html">GPKGGeoPackageMetadata</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGeoPackageMetadataDao.html">GPKGGeoPackageMetadataDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGeoPackageMetadataTableCreator.html">GPKGGeoPackageMetadataTableCreator</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGeoPackageOverlay.html">GPKGGeoPackageOverlay</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGeoPackageTableCreator.html">GPKGGeoPackageTableCreator</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGeoPackageTile.html">GPKGGeoPackageTile</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGeoPackageTileRetriever.html">GPKGGeoPackageTileRetriever</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGeoPackageValidate.html">GPKGGeoPackageValidate</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGeometryColumns.html">GPKGGeometryColumns</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGeometryColumnsDao.html">GPKGGeometryColumnsDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGeometryData.html">GPKGGeometryData</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGeometryExtensions.html">GPKGGeometryExtensions</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGeometryIndex.html">GPKGGeometryIndex</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGeometryIndexDao.html">GPKGGeometryIndexDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGeometryIndexTableCreator.html">GPKGGeometryIndexTableCreator</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGeometryMetadata.html">GPKGGeometryMetadata</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGeometryMetadataDao.html">GPKGGeometryMetadataDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGeometryUtils.html">GPKGGeometryUtils</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGriddedCoverage.html">GPKGGriddedCoverage</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGriddedCoverageDao.html">GPKGGriddedCoverageDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGriddedCoverageDataTypes.html">GPKGGriddedCoverageDataTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGriddedCoverageEncodingTypes.html">GPKGGriddedCoverageEncodingTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGriddedTile.html">GPKGGriddedTile</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGGriddedTileDao.html">GPKGGriddedTileDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGIOUtils.html">GPKGIOUtils</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGIconCache.html">GPKGIconCache</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGIconDao.html">GPKGIconDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGIconRow.html">GPKGIconRow</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGIconTable.html">GPKGIconTable</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGIcons.html">GPKGIcons</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGImageConverter.html">GPKGImageConverter</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGLocationBoundingBox.html">GPKGLocationBoundingBox</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGManualFeatureQuery.html">GPKGManualFeatureQuery</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGManualFeatureQueryResults.html">GPKGManualFeatureQueryResults</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMapPoint.html">GPKGMapPoint</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMapPointOptions.html">GPKGMapPointOptions</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMapShape.html">GPKGMapShape</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMapShapeConverter.html">GPKGMapShapeConverter</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMapShapePoints.html">GPKGMapShapePoints</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMapShapeTypes.html">GPKGMapShapeTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMapTolerance.html">GPKGMapTolerance</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMapUtils.html">GPKGMapUtils</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMappedColumn.html">GPKGMappedColumn</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMediaDao.html">GPKGMediaDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMediaRow.html">GPKGMediaRow</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMediaTable.html">GPKGMediaTable</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMediaTableMetadata.html">GPKGMediaTableMetadata</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMetadata.html">GPKGMetadata</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMetadataDao.html">GPKGMetadataDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMetadataDb.html">GPKGMetadataDb</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMetadataExtension.html">GPKGMetadataExtension</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMetadataReference.html">GPKGMetadataReference</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMetadataReferenceDao.html">GPKGMetadataReferenceDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMetadataScope.html">GPKGMetadataScope</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMultiPoint.html">GPKGMultiPoint</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMultiPolygon.html">GPKGMultiPolygon</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMultiPolygonPoints.html">GPKGMultiPolygonPoints</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMultiPolyline.html">GPKGMultiPolyline</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMultiPolylinePoints.html">GPKGMultiPolylinePoints</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGMultipleFeatureIndexResults.html">GPKGMultipleFeatureIndexResults</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGNGAExtensions.html">GPKGNGAExtensions</a> </li> <li class="nav-group-task"> <a href="../Classes.html#/c:objc(cs)GPKGNGATableCreator">GPKGNGATableCreator</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGNetworkUtils.html">GPKGNetworkUtils</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGNumberFeaturesTile.html">GPKGNumberFeaturesTile</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGOAPIFeatureGenerator.html">GPKGOAPIFeatureGenerator</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGOverlayFactory.html">GPKGOverlayFactory</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGPlatteCarreOptimize.html">GPKGPlatteCarreOptimize</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGPolygon.html">GPKGPolygon</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGPolygonHolePoints.html">GPKGPolygonHolePoints</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGPolygonOptions.html">GPKGPolygonOptions</a> </li> <li class="nav-group-task"> <a href="../Classes.html#/c:objc(cs)GPKGPolygonOrientations">GPKGPolygonOrientations</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGPolygonPoints.html">GPKGPolygonPoints</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGPolyline.html">GPKGPolyline</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGPolylineOptions.html">GPKGPolylineOptions</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGPolylinePoints.html">GPKGPolylinePoints</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGProperties.html">GPKGProperties</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGPropertiesExtension.html">GPKGPropertiesExtension</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGPropertiesManager.html">GPKGPropertiesManager</a> </li> <li class="nav-group-task"> <a href="../Classes.html#/c:objc(cs)GPKGPropertyConstants">GPKGPropertyConstants</a> </li> <li class="nav-group-task"> <a href="../Classes.html#/c:objc(cs)GPKGPropertyNames">GPKGPropertyNames</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGRTreeIndexExtension.html">GPKGRTreeIndexExtension</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGRTreeIndexTableDao.html">GPKGRTreeIndexTableDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGRTreeIndexTableRow.html">GPKGRTreeIndexTableRow</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGRawConstraint.html">GPKGRawConstraint</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGRelatedTablesExtension.html">GPKGRelatedTablesExtension</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGRelationTypes.html">GPKGRelationTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGResultSet.html">GPKGResultSet</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGSQLiteMaster.html">GPKGSQLiteMaster</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGSQLiteMasterColumns.html">GPKGSQLiteMasterColumns</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGSQLiteMasterQuery.html">GPKGSQLiteMasterQuery</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGSQLiteMasterTypes.html">GPKGSQLiteMasterTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGSchemaExtension.html">GPKGSchemaExtension</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGSessionTaskData.html">GPKGSessionTaskData</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGSimpleAttributesDao.html">GPKGSimpleAttributesDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGSimpleAttributesRow.html">GPKGSimpleAttributesRow</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGSimpleAttributesTable.html">GPKGSimpleAttributesTable</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGSimpleAttributesTableMetadata.html">GPKGSimpleAttributesTableMetadata</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGSpatialReferenceSystem.html">GPKGSpatialReferenceSystem</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGSpatialReferenceSystemDao.html">GPKGSpatialReferenceSystemDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGSqlLiteQueryBuilder.html">GPKGSqlLiteQueryBuilder</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGSqlUtils.html">GPKGSqlUtils</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGSqliteConnection.html">GPKGSqliteConnection</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGStyleCache.html">GPKGStyleCache</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGStyleDao.html">GPKGStyleDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGStyleMappingDao.html">GPKGStyleMappingDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGStyleMappingRow.html">GPKGStyleMappingRow</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGStyleMappingTable.html">GPKGStyleMappingTable</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGStyleRow.html">GPKGStyleRow</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGStyleTable.html">GPKGStyleTable</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGStyleUtils.html">GPKGStyleUtils</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGStyles.html">GPKGStyles</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTableColumn.html">GPKGTableColumn</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTableConstraints.html">GPKGTableConstraints</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTableCreator.html">GPKGTableCreator</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTableIndex.html">GPKGTableIndex</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTableIndexDao.html">GPKGTableIndexDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTableInfo.html">GPKGTableInfo</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTableMapping.html">GPKGTableMapping</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTableMetadata.html">GPKGTableMetadata</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTableMetadataDao.html">GPKGTableMetadataDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileBoundingBoxUtils.html">GPKGTileBoundingBoxUtils</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileColumn.html">GPKGTileColumn</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileColumns.html">GPKGTileColumns</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileCreator.html">GPKGTileCreator</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileDao.html">GPKGTileDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileDaoUtils.html">GPKGTileDaoUtils</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileGenerator.html">GPKGTileGenerator</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileGrid.html">GPKGTileGrid</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileMatrix.html">GPKGTileMatrix</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileMatrixDao.html">GPKGTileMatrixDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileMatrixSet.html">GPKGTileMatrixSet</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileMatrixSetDao.html">GPKGTileMatrixSetDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileReprojection.html">GPKGTileReprojection</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileReprojectionOptimize.html">GPKGTileReprojectionOptimize</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileReprojectionZoom.html">GPKGTileReprojectionZoom</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileRow.html">GPKGTileRow</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileScaling.html">GPKGTileScaling</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileScalingDao.html">GPKGTileScalingDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileScalingTableCreator.html">GPKGTileScalingTableCreator</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileScalingTypes.html">GPKGTileScalingTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileTable.html">GPKGTileTable</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileTableMetadata.html">GPKGTileTableMetadata</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileTableReader.html">GPKGTileTableReader</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileTableScaling.html">GPKGTileTableScaling</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGTileUtils.html">GPKGTileUtils</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGUniqueConstraint.html">GPKGUniqueConstraint</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGUrlTileGenerator.html">GPKGUrlTileGenerator</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGUserColumn.html">GPKGUserColumn</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGUserColumns.html">GPKGUserColumns</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGUserCustomColumn.html">GPKGUserCustomColumn</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGUserCustomColumns.html">GPKGUserCustomColumns</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGUserCustomDao.html">GPKGUserCustomDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGUserCustomRow.html">GPKGUserCustomRow</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGUserCustomTable.html">GPKGUserCustomTable</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGUserCustomTableReader.html">GPKGUserCustomTableReader</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGUserDao.html">GPKGUserDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGUserMappingDao.html">GPKGUserMappingDao</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGUserMappingRow.html">GPKGUserMappingRow</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGUserMappingTable.html">GPKGUserMappingTable</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGUserRelatedTable.html">GPKGUserRelatedTable</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGUserRow.html">GPKGUserRow</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGUserRowSync.html">GPKGUserRowSync</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGUserTable.html">GPKGUserTable</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGUserTableMetadata.html">GPKGUserTableMetadata</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGUserTableReader.html">GPKGUserTableReader</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGUtils.html">GPKGUtils</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGWebMercatorOptimize.html">GPKGWebMercatorOptimize</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGWebPExtension.html">GPKGWebPExtension</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGXYZOverlay.html">GPKGXYZOverlay</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGXYZTileRetriever.html">GPKGXYZTileRetriever</a> </li> <li class="nav-group-task"> <a href="../Classes/GPKGZoomOtherExtension.html">GPKGZoomOtherExtension</a> </li> <li class="nav-group-task"> <a href="../Classes/OAFCollection.html">OAFCollection</a> </li> <li class="nav-group-task"> <a href="../Classes/OAFCollections.html">OAFCollections</a> </li> <li class="nav-group-task"> <a href="../Classes/OAFCrs.html">OAFCrs</a> </li> <li class="nav-group-task"> <a href="../Classes/OAFExtent.html">OAFExtent</a> </li> <li class="nav-group-task"> <a href="../Classes/OAFFeatureCollection.html">OAFFeatureCollection</a> </li> <li class="nav-group-task"> <a href="../Classes/OAFFeaturesConverter.html">OAFFeaturesConverter</a> </li> <li class="nav-group-task"> <a href="../Classes/OAFFeaturesObject.html">OAFFeaturesObject</a> </li> <li class="nav-group-task"> <a href="../Classes/OAFLink.html">OAFLink</a> </li> <li class="nav-group-task"> <a href="../Classes/OAFSpatial.html">OAFSpatial</a> </li> <li class="nav-group-task"> <a href="../Classes/OAFTemporal.html">OAFTemporal</a> </li> <li class="nav-group-task"> <a href="../Classes/PROJAuthorityProjections.html">PROJAuthorityProjections</a> </li> <li class="nav-group-task"> <a href="../Classes/PROJCRSParser.html">PROJCRSParser</a> </li> <li class="nav-group-task"> <a href="../Classes.html#/c:objc(cs)PROJConstants">PROJConstants</a> </li> <li class="nav-group-task"> <a href="../Classes/PROJIOUtils.html">PROJIOUtils</a> </li> <li class="nav-group-task"> <a href="../Classes/PROJLocationCoordinate3D.html">PROJLocationCoordinate3D</a> </li> <li class="nav-group-task"> <a href="../Classes/PROJProjection.html">PROJProjection</a> </li> <li class="nav-group-task"> <a href="../Classes.html#/c:objc(cs)PROJProjectionConstants">PROJProjectionConstants</a> </li> <li class="nav-group-task"> <a href="../Classes/PROJProjectionFactory.html">PROJProjectionFactory</a> </li> <li class="nav-group-task"> <a href="../Classes.html#/c:objc(cs)PROJProjectionFactoryTypes">PROJProjectionFactoryTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/PROJProjectionRetriever.html">PROJProjectionRetriever</a> </li> <li class="nav-group-task"> <a href="../Classes/PROJProjectionTransform.html">PROJProjectionTransform</a> </li> <li class="nav-group-task"> <a href="../Classes/PROJProjections.html">PROJProjections</a> </li> <li class="nav-group-task"> <a href="../Classes.html#/c:objc(cs)PROJUnits">PROJUnits</a> </li> <li class="nav-group-task"> <a href="../Classes/SFByteReader.html">SFByteReader</a> </li> <li class="nav-group-task"> <a href="../Classes/SFByteWriter.html">SFByteWriter</a> </li> <li class="nav-group-task"> <a href="../Classes/SFCentroidCurve.html">SFCentroidCurve</a> </li> <li class="nav-group-task"> <a href="../Classes/SFCentroidPoint.html">SFCentroidPoint</a> </li> <li class="nav-group-task"> <a href="../Classes/SFCentroidSurface.html">SFCentroidSurface</a> </li> <li class="nav-group-task"> <a href="../Classes/SFCircularString.html">SFCircularString</a> </li> <li class="nav-group-task"> <a href="../Classes/SFCompoundCurve.html">SFCompoundCurve</a> </li> <li class="nav-group-task"> <a href="../Classes/SFCurve.html">SFCurve</a> </li> <li class="nav-group-task"> <a href="../Classes/SFCurvePolygon.html">SFCurvePolygon</a> </li> <li class="nav-group-task"> <a href="../Classes/SFEvent.html">SFEvent</a> </li> <li class="nav-group-task"> <a href="../Classes/SFEventQueue.html">SFEventQueue</a> </li> <li class="nav-group-task"> <a href="../Classes.html#/c:objc(cs)SFEventTypes">SFEventTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/SFExtendedGeometryCollection.html">SFExtendedGeometryCollection</a> </li> <li class="nav-group-task"> <a href="../Classes.html#/c:objc(cs)SFFiniteFilterTypes">SFFiniteFilterTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/SFGFeature.html">SFGFeature</a> </li> <li class="nav-group-task"> <a href="../Classes/SFGFeatureCollection.html">SFGFeatureCollection</a> </li> <li class="nav-group-task"> <a href="../Classes/SFGFeatureConverter.html">SFGFeatureConverter</a> </li> <li class="nav-group-task"> <a href="../Classes/SFGGeoJSONObject.html">SFGGeoJSONObject</a> </li> <li class="nav-group-task"> <a href="../Classes/SFGGeometry.html">SFGGeometry</a> </li> <li class="nav-group-task"> <a href="../Classes/SFGGeometryCollection.html">SFGGeometryCollection</a> </li> <li class="nav-group-task"> <a href="../Classes/SFGGeometryTypes.html">SFGGeometryTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/SFGLineString.html">SFGLineString</a> </li> <li class="nav-group-task"> <a href="../Classes/SFGMultiLineString.html">SFGMultiLineString</a> </li> <li class="nav-group-task"> <a href="../Classes/SFGMultiPoint.html">SFGMultiPoint</a> </li> <li class="nav-group-task"> <a href="../Classes/SFGMultiPolygon.html">SFGMultiPolygon</a> </li> <li class="nav-group-task"> <a href="../Classes/SFGOrderedDictionary.html">SFGOrderedDictionary</a> </li> <li class="nav-group-task"> <a href="../Classes/SFGPoint.html">SFGPoint</a> </li> <li class="nav-group-task"> <a href="../Classes/SFGPolygon.html">SFGPolygon</a> </li> <li class="nav-group-task"> <a href="../Classes/SFGPosition.html">SFGPosition</a> </li> <li class="nav-group-task"> <a href="../Classes/SFGeometry.html">SFGeometry</a> </li> <li class="nav-group-task"> <a href="../Classes/SFGeometryCollection.html">SFGeometryCollection</a> </li> <li class="nav-group-task"> <a href="../Classes/SFGeometryEnvelope.html">SFGeometryEnvelope</a> </li> <li class="nav-group-task"> <a href="../Classes/SFGeometryEnvelopeBuilder.html">SFGeometryEnvelopeBuilder</a> </li> <li class="nav-group-task"> <a href="../Classes/SFGeometryPrinter.html">SFGeometryPrinter</a> </li> <li class="nav-group-task"> <a href="../Classes/SFGeometryTypes.html">SFGeometryTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/SFGeometryUtils.html">SFGeometryUtils</a> </li> <li class="nav-group-task"> <a href="../Classes/SFLine.html">SFLine</a> </li> <li class="nav-group-task"> <a href="../Classes/SFLineString.html">SFLineString</a> </li> <li class="nav-group-task"> <a href="../Classes/SFLinearRing.html">SFLinearRing</a> </li> <li class="nav-group-task"> <a href="../Classes/SFMultiCurve.html">SFMultiCurve</a> </li> <li class="nav-group-task"> <a href="../Classes/SFMultiLineString.html">SFMultiLineString</a> </li> <li class="nav-group-task"> <a href="../Classes/SFMultiPoint.html">SFMultiPoint</a> </li> <li class="nav-group-task"> <a href="../Classes/SFMultiPolygon.html">SFMultiPolygon</a> </li> <li class="nav-group-task"> <a href="../Classes/SFMultiSurface.html">SFMultiSurface</a> </li> <li class="nav-group-task"> <a href="../Classes/SFPGeometryTransform.html">SFPGeometryTransform</a> </li> <li class="nav-group-task"> <a href="../Classes/SFPoint.html">SFPoint</a> </li> <li class="nav-group-task"> <a href="../Classes/SFPointFiniteFilter.html">SFPointFiniteFilter</a> </li> <li class="nav-group-task"> <a href="../Classes/SFPolygon.html">SFPolygon</a> </li> <li class="nav-group-task"> <a href="../Classes/SFPolyhedralSurface.html">SFPolyhedralSurface</a> </li> <li class="nav-group-task"> <a href="../Classes/SFSegment.html">SFSegment</a> </li> <li class="nav-group-task"> <a href="../Classes/SFShamosHoey.html">SFShamosHoey</a> </li> <li class="nav-group-task"> <a href="../Classes/SFSurface.html">SFSurface</a> </li> <li class="nav-group-task"> <a href="../Classes/SFSweepLine.html">SFSweepLine</a> </li> <li class="nav-group-task"> <a href="../Classes/SFTIN.html">SFTIN</a> </li> <li class="nav-group-task"> <a href="../Classes/SFTextReader.html">SFTextReader</a> </li> <li class="nav-group-task"> <a href="../Classes/SFTriangle.html">SFTriangle</a> </li> <li class="nav-group-task"> <a href="../Classes/SFWBGeometryCodes.html">SFWBGeometryCodes</a> </li> <li class="nav-group-task"> <a href="../Classes/SFWBGeometryReader.html">SFWBGeometryReader</a> </li> <li class="nav-group-task"> <a href="../Classes/SFWBGeometryTypeInfo.html">SFWBGeometryTypeInfo</a> </li> <li class="nav-group-task"> <a href="../Classes/SFWBGeometryWriter.html">SFWBGeometryWriter</a> </li> <li class="nav-group-task"> <a href="../Classes/TIFFByteReader.html">TIFFByteReader</a> </li> <li class="nav-group-task"> <a href="../Classes/TIFFByteWriter.html">TIFFByteWriter</a> </li> <li class="nav-group-task"> <a href="../Classes.html#/c:objc(cs)TIFFConstants">TIFFConstants</a> </li> <li class="nav-group-task"> <a href="../Classes.html#/c:objc(cs)TIFFDeflateCompression">TIFFDeflateCompression</a> </li> <li class="nav-group-task"> <a href="../Classes/TIFFFieldTagTypes.html">TIFFFieldTagTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/TIFFFieldTypes.html">TIFFFieldTypes</a> </li> <li class="nav-group-task"> <a href="../Classes/TIFFFileDirectory.html">TIFFFileDirectory</a> </li> <li class="nav-group-task"> <a href="../Classes/TIFFFileDirectoryEntry.html">TIFFFileDirectoryEntry</a> </li> <li class="nav-group-task"> <a href="../Classes/TIFFIOUtils.html">TIFFIOUtils</a> </li> <li class="nav-group-task"> <a href="../Classes/TIFFImage.html">TIFFImage</a> </li> <li class="nav-group-task"> <a href="../Classes/TIFFImageWindow.html">TIFFImageWindow</a> </li> <li class="nav-group-task"> <a href="../Classes.html#/c:objc(cs)TIFFLZWCompression">TIFFLZWCompression</a> </li> <li class="nav-group-task"> <a href="../Classes.html#/c:objc(cs)TIFFPackbitsCompression">TIFFPackbitsCompression</a> </li> <li class="nav-group-task"> <a href="../Classes/TIFFRasters.html">TIFFRasters</a> </li> <li class="nav-group-task"> <a href="../Classes.html#/c:objc(cs)TIFFRawCompression">TIFFRawCompression</a> </li> <li class="nav-group-task"> <a href="../Classes/TIFFReader.html">TIFFReader</a> </li> <li class="nav-group-task"> <a href="../Classes/TIFFUnsupportedCompression.html">TIFFUnsupportedCompression</a> </li> <li class="nav-group-task"> <a href="../Classes/TIFFWriter.html">TIFFWriter</a> </li> </ul> </li> <li class="nav-group-name"> <a href="../Constants.html">Constants</a> <ul class="nav-group-tasks"> <li class="nav-group-task"> <a href="../Constants.html#/c:GPKGUserColumn.h@AUTOINCREMENT_CONSTRAINT_ORDER">AUTOINCREMENT_CONSTRAINT_ORDER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_AFT_NAME">CRS_AXIS_AFT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_AWAY_FROM_NAME">CRS_AXIS_AWAY_FROM_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_CLOCKWISE_NAME">CRS_AXIS_CLOCKWISE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_COLUMN_NEGATIVE_NAME">CRS_AXIS_COLUMN_NEGATIVE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_COLUMN_POSITIVE_NAME">CRS_AXIS_COLUMN_POSITIVE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_COUNTER_CLOCKWISE_NAME">CRS_AXIS_COUNTER_CLOCKWISE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_DISPLAY_DOWN_NAME">CRS_AXIS_DISPLAY_DOWN_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_DISPLAY_LEFT_NAME">CRS_AXIS_DISPLAY_LEFT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_DISPLAY_RIGHT_NAME">CRS_AXIS_DISPLAY_RIGHT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_DISPLAY_UP_NAME">CRS_AXIS_DISPLAY_UP_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_DOWN_NAME">CRS_AXIS_DOWN_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_EAST_NAME">CRS_AXIS_EAST_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_EAST_NORTH_EAST_NAME">CRS_AXIS_EAST_NORTH_EAST_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_EAST_SOUTH_EAST_NAME">CRS_AXIS_EAST_SOUTH_EAST_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_FORWARD_NAME">CRS_AXIS_FORWARD_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_FUTURE_NAME">CRS_AXIS_FUTURE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_GEOCENTRIC_X_NAME">CRS_AXIS_GEOCENTRIC_X_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_GEOCENTRIC_Y_NAME">CRS_AXIS_GEOCENTRIC_Y_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_GEOCENTRIC_Z_NAME">CRS_AXIS_GEOCENTRIC_Z_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_NORTH_EAST_NAME">CRS_AXIS_NORTH_EAST_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_NORTH_NAME">CRS_AXIS_NORTH_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_NORTH_NORTH_EAST_NAME">CRS_AXIS_NORTH_NORTH_EAST_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_NORTH_NORTH_WEST_NAME">CRS_AXIS_NORTH_NORTH_WEST_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_NORTH_WEST_NAME">CRS_AXIS_NORTH_WEST_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_PAST_NAME">CRS_AXIS_PAST_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_PORT_NAME">CRS_AXIS_PORT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_ROW_NEGATIVE_NAME">CRS_AXIS_ROW_NEGATIVE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_ROW_POSITIVE_NAME">CRS_AXIS_ROW_POSITIVE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_SOUTH_EAST_NAME">CRS_AXIS_SOUTH_EAST_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_SOUTH_NAME">CRS_AXIS_SOUTH_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_SOUTH_SOUTH_EAST_NAME">CRS_AXIS_SOUTH_SOUTH_EAST_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_SOUTH_SOUTH_WEST_NAME">CRS_AXIS_SOUTH_SOUTH_WEST_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_SOUTH_WEST_NAME">CRS_AXIS_SOUTH_WEST_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_STARBOARD_NAME">CRS_AXIS_STARBOARD_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_TOWARDS_NAME">CRS_AXIS_TOWARDS_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_UNSPECIFIED_NAME">CRS_AXIS_UNSPECIFIED_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_UP_NAME">CRS_AXIS_UP_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_WEST_NAME">CRS_AXIS_WEST_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_WEST_NORTH_WEST_NAME">CRS_AXIS_WEST_NORTH_WEST_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_AXIS_WEST_SOUTH_WEST_NAME">CRS_AXIS_WEST_SOUTH_WEST_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_CATEGORY_CRS_NAME">CRS_CATEGORY_CRS_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_CATEGORY_METADATA_NAME">CRS_CATEGORY_METADATA_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_CATEGORY_OPERATION_NAME">CRS_CATEGORY_OPERATION_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_CS_AFFINE_NAME">CRS_CS_AFFINE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_CS_CARTESIAN_NAME">CRS_CS_CARTESIAN_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_CS_CYLINDRICAL_NAME">CRS_CS_CYLINDRICAL_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_CS_ELLIPSOIDAL_NAME">CRS_CS_ELLIPSOIDAL_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_CS_LINEAR_NAME">CRS_CS_LINEAR_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_CS_ORDINAL_NAME">CRS_CS_ORDINAL_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_CS_PARAMETRIC_NAME">CRS_CS_PARAMETRIC_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_CS_POLAR_NAME">CRS_CS_POLAR_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_CS_SPHERICAL_NAME">CRS_CS_SPHERICAL_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_CS_TEMPORAL_COUNT_NAME">CRS_CS_TEMPORAL_COUNT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_CS_TEMPORAL_DATE_TIME_NAME">CRS_CS_TEMPORAL_DATE_TIME_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_CS_TEMPORAL_MEASURE_NAME">CRS_CS_TEMPORAL_MEASURE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_CS_VERTICAL_NAME">CRS_CS_VERTICAL_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_ELLIPSOID_OBLATE_NAME">CRS_ELLIPSOID_OBLATE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_ELLIPSOID_TRIAXIAL_NAME">CRS_ELLIPSOID_TRIAXIAL_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_OPERATION_ABRIDGED_COORDINATE_TRANSFORMATION_NAME">CRS_OPERATION_ABRIDGED_COORDINATE_TRANSFORMATION_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_OPERATION_COORDINATE_NAME">CRS_OPERATION_COORDINATE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_OPERATION_DERIVING_CONVERSION_NAME">CRS_OPERATION_DERIVING_CONVERSION_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_OPERATION_MAP_PROJECTION_NAME">CRS_OPERATION_MAP_PROJECTION_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_OPERATION_POINT_MOTION_NAME">CRS_OPERATION_POINT_MOTION_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_AXIS_DOWN">CRS_PROJ_AXIS_DOWN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_AXIS_EAST">CRS_PROJ_AXIS_EAST</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_AXIS_NORTH">CRS_PROJ_AXIS_NORTH</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_AXIS_SOUTH">CRS_PROJ_AXIS_SOUTH</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_AXIS_UP">CRS_PROJ_AXIS_UP</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_AXIS_WEST">CRS_PROJ_AXIS_WEST</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_AXIS_WEST_SOUTH_UP">CRS_PROJ_AXIS_WEST_SOUTH_UP</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_NAME_AEA">CRS_PROJ_NAME_AEA</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_NAME_CASS">CRS_PROJ_NAME_CASS</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_NAME_CEA">CRS_PROJ_NAME_CEA</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_NAME_EQC">CRS_PROJ_NAME_EQC</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_NAME_KROVAK">CRS_PROJ_NAME_KROVAK</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_NAME_LAEA">CRS_PROJ_NAME_LAEA</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_NAME_LCC">CRS_PROJ_NAME_LCC</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_NAME_LONGLAT">CRS_PROJ_NAME_LONGLAT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_NAME_MERC">CRS_PROJ_NAME_MERC</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_NAME_NZMG">CRS_PROJ_NAME_NZMG</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_NAME_OMERC">CRS_PROJ_NAME_OMERC</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_NAME_POLY">CRS_PROJ_NAME_POLY</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_NAME_SOMERC">CRS_PROJ_NAME_SOMERC</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_NAME_STERE">CRS_PROJ_NAME_STERE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_NAME_STEREA">CRS_PROJ_NAME_STEREA</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_NAME_TMERC">CRS_PROJ_NAME_TMERC</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_NAME_UTM">CRS_PROJ_NAME_UTM</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_A">CRS_PROJ_PARAM_A</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_ALPHA">CRS_PROJ_PARAM_ALPHA</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_AXIS">CRS_PROJ_PARAM_AXIS</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_B">CRS_PROJ_PARAM_B</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_DATUM">CRS_PROJ_PARAM_DATUM</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_ELLPS">CRS_PROJ_PARAM_ELLPS</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_GAMMA">CRS_PROJ_PARAM_GAMMA</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_K_0">CRS_PROJ_PARAM_K_0</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_LAT_0">CRS_PROJ_PARAM_LAT_0</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_LAT_1">CRS_PROJ_PARAM_LAT_1</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_LAT_2">CRS_PROJ_PARAM_LAT_2</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_LAT_TS">CRS_PROJ_PARAM_LAT_TS</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_LONC">CRS_PROJ_PARAM_LONC</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_LON_0">CRS_PROJ_PARAM_LON_0</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_NADGRIDS">CRS_PROJ_PARAM_NADGRIDS</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_NO_DEFS">CRS_PROJ_PARAM_NO_DEFS</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_NO_UOFF">CRS_PROJ_PARAM_NO_UOFF</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_PM">CRS_PROJ_PARAM_PM</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_PROJ">CRS_PROJ_PARAM_PROJ</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_SOUTH">CRS_PROJ_PARAM_SOUTH</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_TOWGS84">CRS_PROJ_PARAM_TOWGS84</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_TO_METER">CRS_PROJ_PARAM_TO_METER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_UNITS">CRS_PROJ_PARAM_UNITS</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_WKTEXT">CRS_PROJ_PARAM_WKTEXT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_X_0">CRS_PROJ_PARAM_X_0</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_Y_0">CRS_PROJ_PARAM_Y_0</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PARAM_ZONE">CRS_PROJ_PARAM_ZONE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_PSEUDO_MERCATOR">CRS_PROJ_PSEUDO_MERCATOR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_SWISS_OBLIQUE_MERCATOR">CRS_PROJ_SWISS_OBLIQUE_MERCATOR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_SWISS_OBLIQUE_MERCATOR_COMPAT">CRS_PROJ_SWISS_OBLIQUE_MERCATOR_COMPAT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_UNITS_DEGREE">CRS_PROJ_UNITS_DEGREE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_UNITS_FOOT">CRS_PROJ_UNITS_FOOT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_UNITS_METRE">CRS_PROJ_UNITS_METRE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_UNITS_US_SURVEY_FOOT">CRS_PROJ_UNITS_US_SURVEY_FOOT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_PROJ_UTM_ZONE">CRS_PROJ_UTM_ZONE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_TYPE_BOUND_NAME">CRS_TYPE_BOUND_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_TYPE_COMPOUND_NAME">CRS_TYPE_COMPOUND_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_TYPE_CONCATENATED_OPERATION_NAME">CRS_TYPE_CONCATENATED_OPERATION_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_TYPE_COORDINATE_METADATA_NAME">CRS_TYPE_COORDINATE_METADATA_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_TYPE_COORDINATE_OPERATION_NAME">CRS_TYPE_COORDINATE_OPERATION_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_TYPE_DERIVED_NAME">CRS_TYPE_DERIVED_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_TYPE_ENGINEERING_NAME">CRS_TYPE_ENGINEERING_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_TYPE_GEODETIC_NAME">CRS_TYPE_GEODETIC_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_TYPE_GEOGRAPHIC_NAME">CRS_TYPE_GEOGRAPHIC_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_TYPE_PARAMETRIC_NAME">CRS_TYPE_PARAMETRIC_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_TYPE_POINT_MOTION_OPERATION_NAME">CRS_TYPE_POINT_MOTION_OPERATION_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_TYPE_PROJECTED_NAME">CRS_TYPE_PROJECTED_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_TYPE_TEMPORAL_NAME">CRS_TYPE_TEMPORAL_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_TYPE_VERTICAL_NAME">CRS_TYPE_VERTICAL_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_ARC_MINUTE_NAME">CRS_UNITS_ARC_MINUTE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_ARC_SECOND_NAME">CRS_UNITS_ARC_SECOND_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_BIN_NAME">CRS_UNITS_BIN_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_CALENDAR_MONTH_NAME">CRS_UNITS_CALENDAR_MONTH_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_CALENDAR_SECOND_NAME">CRS_UNITS_CALENDAR_SECOND_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_DAY_NAME">CRS_UNITS_DAY_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_DEGREE_NAME">CRS_UNITS_DEGREE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_FOOT_NAME">CRS_UNITS_FOOT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_GERMAN_LEGAL_METRE_NAME">CRS_UNITS_GERMAN_LEGAL_METRE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_GRAD_NAME">CRS_UNITS_GRAD_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_HECTOPASCAL_NAME">CRS_UNITS_HECTOPASCAL_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_HOUR_NAME">CRS_UNITS_HOUR_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_KILOMETRE_NAME">CRS_UNITS_KILOMETRE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_METRE_NAME">CRS_UNITS_METRE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_MICROMETRE_NAME">CRS_UNITS_MICROMETRE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_MICRORADIAN_NAME">CRS_UNITS_MICRORADIAN_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_MICROSECOND_NAME">CRS_UNITS_MICROSECOND_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_MILLIMETRE_NAME">CRS_UNITS_MILLIMETRE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_MILLIRADIAN_NAME">CRS_UNITS_MILLIRADIAN_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_MILLISECOND_NAME">CRS_UNITS_MILLISECOND_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_MINUTE_NAME">CRS_UNITS_MINUTE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_PARTS_PER_MILLION_NAME">CRS_UNITS_PARTS_PER_MILLION_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_PASCAL_NAME">CRS_UNITS_PASCAL_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_RADIAN_NAME">CRS_UNITS_RADIAN_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_SECOND_NAME">CRS_UNITS_SECOND_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_UNITY_NAME">CRS_UNITS_UNITY_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_US_SURVEY_FOOT_NAME">CRS_UNITS_US_SURVEY_FOOT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNITS_YEAR_NAME">CRS_UNITS_YEAR_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNIT_ANGLE_NAME">CRS_UNIT_ANGLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNIT_LENGTH_NAME">CRS_UNIT_LENGTH_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNIT_NAME">CRS_UNIT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNIT_PARAMETRIC_NAME">CRS_UNIT_PARAMETRIC_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNIT_SCALE_NAME">CRS_UNIT_SCALE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_UNIT_TIME_NAME">CRS_UNIT_TIME_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_WKT_AXIS_ABBREV_LEFT_DELIMITER">CRS_WKT_AXIS_ABBREV_LEFT_DELIMITER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_WKT_AXIS_ABBREV_RIGHT_DELIMITER">CRS_WKT_AXIS_ABBREV_RIGHT_DELIMITER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_WKT_AXIS_DIRECTION_OTHER">CRS_WKT_AXIS_DIRECTION_OTHER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_WKT_AXIS_NAME_LAT">CRS_WKT_AXIS_NAME_LAT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_WKT_AXIS_NAME_LON">CRS_WKT_AXIS_NAME_LON</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_WKT_AXIS_NAME_X">CRS_WKT_AXIS_NAME_X</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_WKT_AXIS_NAME_Y">CRS_WKT_AXIS_NAME_Y</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_WKT_AXIS_NAME_Z">CRS_WKT_AXIS_NAME_Z</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_WKT_DATUM_TYPE">CRS_WKT_DATUM_TYPE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_WKT_LEFT_DELIMITER">CRS_WKT_LEFT_DELIMITER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_WKT_LEFT_DELIMITER_COMPAT">CRS_WKT_LEFT_DELIMITER_COMPAT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_WKT_RIGHT_DELIMITER">CRS_WKT_RIGHT_DELIMITER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_WKT_RIGHT_DELIMITER_COMPAT">CRS_WKT_RIGHT_DELIMITER_COMPAT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@CRS_WKT_SEPARATOR">CRS_WKT_SEPARATOR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:GPKGUserTable.h@DEFAULT_AUTOINCREMENT">DEFAULT_AUTOINCREMENT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:GPKGFeatureTiles.h@DEFAULT_BOUNDING_BOX_CACHE_SIZE">DEFAULT_BOUNDING_BOX_CACHE_SIZE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:GPKGFeatureCache.h@DEFAULT_FEATURE_CACHE_MAX_SIZE">DEFAULT_FEATURE_CACHE_MAX_SIZE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:GPKGIconCache.h@DEFAULT_ICON_CACHE_SIZE">DEFAULT_ICON_CACHE_SIZE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:GPKGFeatureTiles.h@DEFAULT_MAP_SHAPE_CACHE_SIZE">DEFAULT_MAP_SHAPE_CACHE_SIZE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:GPKGUserTable.h@DEFAULT_PK_NOT_NULL">DEFAULT_PK_NOT_NULL</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:SFByteReader.h@DEFAULT_READ_BYTE_ORDER">DEFAULT_READ_BYTE_ORDER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:GPKGUserColumn.h@DEFAULT_VALUE_CONSTRAINT_ORDER">DEFAULT_VALUE_CONSTRAINT_ORDER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:SFByteWriter.h@DEFAULT_WRITE_BYTE_ORDER">DEFAULT_WRITE_BYTE_ORDER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_APPLICATION_ID">GPKG_APPLICATION_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_BUNDLE_NAME">GPKG_BUNDLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDA_BICUBIC_NAME">GPKG_CDA_BICUBIC_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDA_BILINEAR_NAME">GPKG_CDA_BILINEAR_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDA_NEAREST_NEIGHBOR_NAME">GPKG_CDA_NEAREST_NEIGHBOR_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDGC_COLUMN_DATATYPE">GPKG_CDGC_COLUMN_DATATYPE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDGC_COLUMN_DATA_NULL">GPKG_CDGC_COLUMN_DATA_NULL</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDGC_COLUMN_FIELD_NAME">GPKG_CDGC_COLUMN_FIELD_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDGC_COLUMN_GRID_CELL_ENCODING">GPKG_CDGC_COLUMN_GRID_CELL_ENCODING</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDGC_COLUMN_ID">GPKG_CDGC_COLUMN_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDGC_COLUMN_OFFSET">GPKG_CDGC_COLUMN_OFFSET</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDGC_COLUMN_PK">GPKG_CDGC_COLUMN_PK</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDGC_COLUMN_PRECISION">GPKG_CDGC_COLUMN_PRECISION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDGC_COLUMN_QUANTITY_DEFINITION">GPKG_CDGC_COLUMN_QUANTITY_DEFINITION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDGC_COLUMN_SCALE">GPKG_CDGC_COLUMN_SCALE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDGC_COLUMN_TILE_MATRIX_SET_NAME">GPKG_CDGC_COLUMN_TILE_MATRIX_SET_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDGC_COLUMN_UOM">GPKG_CDGC_COLUMN_UOM</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDGC_TABLE_NAME">GPKG_CDGC_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDGT_COLUMN_ID">GPKG_CDGT_COLUMN_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDGT_COLUMN_MAX">GPKG_CDGT_COLUMN_MAX</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDGT_COLUMN_MEAN">GPKG_CDGT_COLUMN_MEAN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDGT_COLUMN_MIN">GPKG_CDGT_COLUMN_MIN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDGT_COLUMN_OFFSET">GPKG_CDGT_COLUMN_OFFSET</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDGT_COLUMN_PK">GPKG_CDGT_COLUMN_PK</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDGT_COLUMN_SCALE">GPKG_CDGT_COLUMN_SCALE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDGT_COLUMN_STANDARD_DEVIATION">GPKG_CDGT_COLUMN_STANDARD_DEVIATION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDGT_COLUMN_TABLE_ID">GPKG_CDGT_COLUMN_TABLE_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDGT_COLUMN_TABLE_NAME">GPKG_CDGT_COLUMN_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDGT_TABLE_NAME">GPKG_CDGT_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDT_ATTRIBUTES_NAME">GPKG_CDT_ATTRIBUTES_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDT_FEATURES_NAME">GPKG_CDT_FEATURES_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CDT_TILES_NAME">GPKG_CDT_TILES_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CD_GRIDDED_COVERAGE">GPKG_CD_GRIDDED_COVERAGE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CF_JPEG_NAME">GPKG_CF_JPEG_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CF_NONE_NAME">GPKG_CF_NONE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CF_PNG_NAME">GPKG_CF_PNG_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CI_COLUMN_ID">GPKG_CI_COLUMN_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CI_COLUMN_PK">GPKG_CI_COLUMN_PK</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CI_COLUMN_TABLE_NAME">GPKG_CI_COLUMN_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CI_TABLE_NAME">GPKG_CI_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_COLOR_BLACK">GPKG_COLOR_BLACK</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_COLOR_BLUE">GPKG_COLOR_BLUE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_COLOR_BROWN">GPKG_COLOR_BROWN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_COLOR_CYAN">GPKG_COLOR_CYAN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_COLOR_DKGRAY">GPKG_COLOR_DKGRAY</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_COLOR_GRAY">GPKG_COLOR_GRAY</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_COLOR_GREEN">GPKG_COLOR_GREEN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_COLOR_LTGRAY">GPKG_COLOR_LTGRAY</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_COLOR_MAGENTA">GPKG_COLOR_MAGENTA</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_COLOR_ORANGE">GPKG_COLOR_ORANGE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_COLOR_PINK">GPKG_COLOR_PINK</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_COLOR_PURPLE">GPKG_COLOR_PURPLE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_COLOR_RED">GPKG_COLOR_RED</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_COLOR_VIOLET">GPKG_COLOR_VIOLET</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_COLOR_WHITE">GPKG_COLOR_WHITE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_COLOR_YELLOW">GPKG_COLOR_YELLOW</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CONSTRAINT">GPKG_CONSTRAINT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CON_COLUMN_DATA_TYPE">GPKG_CON_COLUMN_DATA_TYPE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CON_COLUMN_DESCRIPTION">GPKG_CON_COLUMN_DESCRIPTION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CON_COLUMN_IDENTIFIER">GPKG_CON_COLUMN_IDENTIFIER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CON_COLUMN_LAST_CHANGE">GPKG_CON_COLUMN_LAST_CHANGE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CON_COLUMN_MAX_X">GPKG_CON_COLUMN_MAX_X</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CON_COLUMN_MAX_Y">GPKG_CON_COLUMN_MAX_Y</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CON_COLUMN_MIN_X">GPKG_CON_COLUMN_MIN_X</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CON_COLUMN_MIN_Y">GPKG_CON_COLUMN_MIN_Y</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CON_COLUMN_PK">GPKG_CON_COLUMN_PK</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CON_COLUMN_SRS_ID">GPKG_CON_COLUMN_SRS_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CON_COLUMN_TABLE_NAME">GPKG_CON_COLUMN_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CON_TABLE_NAME">GPKG_CON_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CRS_WKT_EXTENSION_NAME">GPKG_CRS_WKT_EXTENSION_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CT_AUTOINCREMENT_NAME">GPKG_CT_AUTOINCREMENT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CT_CHECK_NAME">GPKG_CT_CHECK_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CT_COLLATE_NAME">GPKG_CT_COLLATE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CT_DEFAULT_NAME">GPKG_CT_DEFAULT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CT_FOREIGN_KEY_NAME">GPKG_CT_FOREIGN_KEY_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CT_NOT_NULL_NAME">GPKG_CT_NOT_NULL_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CT_PRIMARY_KEY_NAME">GPKG_CT_PRIMARY_KEY_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_CT_UNIQUE_NAME">GPKG_CT_UNIQUE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DCCT_ENUM_NAME">GPKG_DCCT_ENUM_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DCCT_GLOB_NAME">GPKG_DCCT_GLOB_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DCCT_RANGE_NAME">GPKG_DCCT_RANGE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DCC_COLUMN_CONSTRAINT_NAME">GPKG_DCC_COLUMN_CONSTRAINT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DCC_COLUMN_CONSTRAINT_TYPE">GPKG_DCC_COLUMN_CONSTRAINT_TYPE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DCC_COLUMN_DESCRIPTION">GPKG_DCC_COLUMN_DESCRIPTION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DCC_COLUMN_MAX">GPKG_DCC_COLUMN_MAX</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DCC_COLUMN_MAX_IS_INCLUSIVE">GPKG_DCC_COLUMN_MAX_IS_INCLUSIVE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DCC_COLUMN_MIN">GPKG_DCC_COLUMN_MIN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DCC_COLUMN_MIN_IS_INCLUSIVE">GPKG_DCC_COLUMN_MIN_IS_INCLUSIVE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DCC_COLUMN_VALUE">GPKG_DCC_COLUMN_VALUE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DCC_TABLE_NAME">GPKG_DCC_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DCM_CONTENT_TYPE_NAME">GPKG_DCM_CONTENT_TYPE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DCM_DATE_NAME">GPKG_DCM_DATE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DCM_DESCRIPTION_NAME">GPKG_DCM_DESCRIPTION_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DCM_FORMAT_NAME">GPKG_DCM_FORMAT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DCM_IDENTIFIER_NAME">GPKG_DCM_IDENTIFIER_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DCM_ID_NAME">GPKG_DCM_ID_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DCM_SOURCE_NAME">GPKG_DCM_SOURCE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DCM_TITLE_NAME">GPKG_DCM_TITLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DC_COLUMN_COLUMN_NAME">GPKG_DC_COLUMN_COLUMN_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DC_COLUMN_CONSTRAINT_NAME">GPKG_DC_COLUMN_CONSTRAINT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DC_COLUMN_DESCRIPTION">GPKG_DC_COLUMN_DESCRIPTION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DC_COLUMN_MIME_TYPE">GPKG_DC_COLUMN_MIME_TYPE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DC_COLUMN_NAME">GPKG_DC_COLUMN_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DC_COLUMN_PK1">GPKG_DC_COLUMN_PK1</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DC_COLUMN_PK2">GPKG_DC_COLUMN_PK2</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DC_COLUMN_TABLE_NAME">GPKG_DC_COLUMN_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DC_COLUMN_TITLE">GPKG_DC_COLUMN_TITLE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DC_TABLE_NAME">GPKG_DC_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DTU_DATETIME_FORMAT">GPKG_DTU_DATETIME_FORMAT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DTU_DATETIME_FORMAT2">GPKG_DTU_DATETIME_FORMAT2</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DTU_DATE_FORMAT">GPKG_DTU_DATE_FORMAT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DTU_DATE_FORMAT2">GPKG_DTU_DATE_FORMAT2</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DTU_FUNCTION_DATE">GPKG_DTU_FUNCTION_DATE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DTU_FUNCTION_DATETIME">GPKG_DTU_FUNCTION_DATETIME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DTU_FUNCTION_JULIANDAY">GPKG_DTU_FUNCTION_JULIANDAY</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DTU_FUNCTION_STRFTIME">GPKG_DTU_FUNCTION_STRFTIME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DTU_FUNCTION_TIME">GPKG_DTU_FUNCTION_TIME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DT_BLOB_NAME">GPKG_DT_BLOB_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DT_BOOLEAN_NAME">GPKG_DT_BOOLEAN_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DT_DATETIME_NAME">GPKG_DT_DATETIME_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DT_DATE_NAME">GPKG_DT_DATE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DT_DOUBLE_NAME">GPKG_DT_DOUBLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DT_FLOAT_NAME">GPKG_DT_FLOAT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DT_INTEGER_NAME">GPKG_DT_INTEGER_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DT_INT_NAME">GPKG_DT_INT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DT_MEDIUMINT_NAME">GPKG_DT_MEDIUMINT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DT_REAL_NAME">GPKG_DT_REAL_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DT_SMALLINT_NAME">GPKG_DT_SMALLINT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DT_TEXT_NAME">GPKG_DT_TEXT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_DT_TINYINT_NAME">GPKG_DT_TINYINT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_EARTH_RADIUS">GPKG_EARTH_RADIUS</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_ER_COLUMN_BASE_PRIMARY_COLUMN">GPKG_ER_COLUMN_BASE_PRIMARY_COLUMN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_ER_COLUMN_BASE_TABLE_NAME">GPKG_ER_COLUMN_BASE_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_ER_COLUMN_ID">GPKG_ER_COLUMN_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_ER_COLUMN_MAPPING_TABLE_NAME">GPKG_ER_COLUMN_MAPPING_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_ER_COLUMN_PK">GPKG_ER_COLUMN_PK</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_ER_COLUMN_RELATED_PRIMARY_COLUMN">GPKG_ER_COLUMN_RELATED_PRIMARY_COLUMN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_ER_COLUMN_RELATED_TABLE_NAME">GPKG_ER_COLUMN_RELATED_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_ER_COLUMN_RELATION_NAME">GPKG_ER_COLUMN_RELATION_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_ER_TABLE_NAME">GPKG_ER_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_EST_READ_WRITE_NAME">GPKG_EST_READ_WRITE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_EST_WRITE_ONLY_NAME">GPKG_EST_WRITE_ONLY_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_EXTENDED_EXTENSION">GPKG_EXTENDED_EXTENSION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_EXTENSION">GPKG_EXTENSION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_EXTENSION_AUTHOR">GPKG_EXTENSION_AUTHOR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_EXTENSION_CONTENTS_ID_NAME_NO_AUTHOR">GPKG_EXTENSION_CONTENTS_ID_NAME_NO_AUTHOR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_EXTENSION_FEATURE_STYLE_NAME_NO_AUTHOR">GPKG_EXTENSION_FEATURE_STYLE_NAME_NO_AUTHOR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_EXTENSION_FEATURE_TILE_LINK_NAME_NO_AUTHOR">GPKG_EXTENSION_FEATURE_TILE_LINK_NAME_NO_AUTHOR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_EXTENSION_GEOMETRY_INDEX_NAME_NO_AUTHOR">GPKG_EXTENSION_GEOMETRY_INDEX_NAME_NO_AUTHOR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_EXTENSION_PROPERTIES_COLUMN_PROPERTY">GPKG_EXTENSION_PROPERTIES_COLUMN_PROPERTY</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_EXTENSION_PROPERTIES_COLUMN_VALUE">GPKG_EXTENSION_PROPERTIES_COLUMN_VALUE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_EXTENSION_PROPERTIES_NAME_NO_AUTHOR">GPKG_EXTENSION_PROPERTIES_NAME_NO_AUTHOR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_EXTENSION_PROPERTIES_TABLE_NAME">GPKG_EXTENSION_PROPERTIES_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_EXTENSION_RELATED_TABLES_NAME_NO_AUTHOR">GPKG_EXTENSION_RELATED_TABLES_NAME_NO_AUTHOR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_EXTENSION_TILE_SCALING_NAME_NO_AUTHOR">GPKG_EXTENSION_TILE_SCALING_NAME_NO_AUTHOR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_EX_COLUMN_COLUMN_NAME">GPKG_EX_COLUMN_COLUMN_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_EX_COLUMN_DEFINITION">GPKG_EX_COLUMN_DEFINITION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_EX_COLUMN_EXTENSION_NAME">GPKG_EX_COLUMN_EXTENSION_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_EX_COLUMN_SCOPE">GPKG_EX_COLUMN_SCOPE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_EX_COLUMN_TABLE_NAME">GPKG_EX_COLUMN_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_EX_EXTENSION_NAME_DIVIDER">GPKG_EX_EXTENSION_NAME_DIVIDER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_EX_TABLE_NAME">GPKG_EX_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_FIT_GEOPACKAGE_NAME">GPKG_FIT_GEOPACKAGE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_FIT_METADATA_NAME">GPKG_FIT_METADATA_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_FIT_NONE_NAME">GPKG_FIT_NONE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_FIT_RTREE_NAME">GPKG_FIT_RTREE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_FSE_TABLE_MAPPING_ICON">GPKG_FSE_TABLE_MAPPING_ICON</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_FSE_TABLE_MAPPING_STYLE">GPKG_FSE_TABLE_MAPPING_STYLE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_FSE_TABLE_MAPPING_TABLE_ICON">GPKG_FSE_TABLE_MAPPING_TABLE_ICON</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_FSE_TABLE_MAPPING_TABLE_STYLE">GPKG_FSE_TABLE_MAPPING_TABLE_STYLE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_FTL_COLUMN_FEATURE_TABLE_NAME">GPKG_FTL_COLUMN_FEATURE_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_FTL_COLUMN_PK1">GPKG_FTL_COLUMN_PK1</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_FTL_COLUMN_PK2">GPKG_FTL_COLUMN_PK2</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_FTL_COLUMN_TILE_TABLE_NAME">GPKG_FTL_COLUMN_TILE_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_FTL_TABLE_NAME">GPKG_FTL_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GCDT_FLOAT_NAME">GPKG_GCDT_FLOAT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GCDT_INTEGER_NAME">GPKG_GCDT_INTEGER_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GCET_AREA_NAME">GPKG_GCET_AREA_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GCET_CENTER_NAME">GPKG_GCET_CENTER_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GCET_CORNER_NAME">GPKG_GCET_CORNER_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GC_COLUMN_COLUMN_NAME">GPKG_GC_COLUMN_COLUMN_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GC_COLUMN_GEOMETRY_TYPE_NAME">GPKG_GC_COLUMN_GEOMETRY_TYPE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GC_COLUMN_M">GPKG_GC_COLUMN_M</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GC_COLUMN_PK1">GPKG_GC_COLUMN_PK1</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GC_COLUMN_PK2">GPKG_GC_COLUMN_PK2</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GC_COLUMN_SRS_ID">GPKG_GC_COLUMN_SRS_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GC_COLUMN_TABLE_NAME">GPKG_GC_COLUMN_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GC_COLUMN_Z">GPKG_GC_COLUMN_Z</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GC_TABLE_NAME">GPKG_GC_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GEOMETRY_EXTENSION_PREFIX">GPKG_GEOMETRY_EXTENSION_PREFIX</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GEOMETRY_MAGIC_NUMBER">GPKG_GEOMETRY_MAGIC_NUMBER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GEOMETRY_VERSION_1">GPKG_GEOMETRY_VERSION_1</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GI_COLUMN_GEOM_ID">GPKG_GI_COLUMN_GEOM_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GI_COLUMN_MAX_M">GPKG_GI_COLUMN_MAX_M</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GI_COLUMN_MAX_X">GPKG_GI_COLUMN_MAX_X</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GI_COLUMN_MAX_Y">GPKG_GI_COLUMN_MAX_Y</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GI_COLUMN_MAX_Z">GPKG_GI_COLUMN_MAX_Z</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GI_COLUMN_MIN_M">GPKG_GI_COLUMN_MIN_M</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GI_COLUMN_MIN_X">GPKG_GI_COLUMN_MIN_X</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GI_COLUMN_MIN_Y">GPKG_GI_COLUMN_MIN_Y</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GI_COLUMN_MIN_Z">GPKG_GI_COLUMN_MIN_Z</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GI_COLUMN_PK1">GPKG_GI_COLUMN_PK1</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GI_COLUMN_PK2">GPKG_GI_COLUMN_PK2</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GI_COLUMN_TABLE_NAME">GPKG_GI_COLUMN_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GI_TABLE_NAME">GPKG_GI_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_GEOPACKAGE_ID">GPKG_GPGM_COLUMN_GEOPACKAGE_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_ID">GPKG_GPGM_COLUMN_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_MAX_M">GPKG_GPGM_COLUMN_MAX_M</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_MAX_X">GPKG_GPGM_COLUMN_MAX_X</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_MAX_Y">GPKG_GPGM_COLUMN_MAX_Y</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_MAX_Z">GPKG_GPGM_COLUMN_MAX_Z</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_MIN_M">GPKG_GPGM_COLUMN_MIN_M</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_MIN_X">GPKG_GPGM_COLUMN_MIN_X</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_MIN_Y">GPKG_GPGM_COLUMN_MIN_Y</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_MIN_Z">GPKG_GPGM_COLUMN_MIN_Z</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_PK1">GPKG_GPGM_COLUMN_PK1</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_PK2">GPKG_GPGM_COLUMN_PK2</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_PK3">GPKG_GPGM_COLUMN_PK3</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_TABLE_NAME">GPKG_GPGM_COLUMN_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPGM_TABLE_NAME">GPKG_GPGM_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPM_COLUMN_ID">GPKG_GPM_COLUMN_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPM_COLUMN_NAME">GPKG_GPM_COLUMN_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPM_COLUMN_PATH">GPKG_GPM_COLUMN_PATH</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPM_COLUMN_PK">GPKG_GPM_COLUMN_PK</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPM_TABLE_NAME">GPKG_GPM_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPTM_COLUMN_GEOPACKAGE_ID">GPKG_GPTM_COLUMN_GEOPACKAGE_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPTM_COLUMN_LAST_INDEXED">GPKG_GPTM_COLUMN_LAST_INDEXED</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPTM_COLUMN_PK1">GPKG_GPTM_COLUMN_PK1</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPTM_COLUMN_PK2">GPKG_GPTM_COLUMN_PK2</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPTM_COLUMN_TABLE_NAME">GPKG_GPTM_COLUMN_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GPTM_TABLE_NAME">GPKG_GPTM_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_GRIDDED_COVERAGE_EXTENSION_NAME">GPKG_GRIDDED_COVERAGE_EXTENSION_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_IT_COLUMN_ANCHOR_U">GPKG_IT_COLUMN_ANCHOR_U</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_IT_COLUMN_ANCHOR_V">GPKG_IT_COLUMN_ANCHOR_V</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_IT_COLUMN_DESCRIPTION">GPKG_IT_COLUMN_DESCRIPTION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_IT_COLUMN_HEIGHT">GPKG_IT_COLUMN_HEIGHT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_IT_COLUMN_NAME">GPKG_IT_COLUMN_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_IT_COLUMN_WIDTH">GPKG_IT_COLUMN_WIDTH</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_IT_TABLE_NAME">GPKG_IT_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MEDIA_TYPE">GPKG_MEDIA_TYPE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_METADATA_APPLICATION_ID">GPKG_METADATA_APPLICATION_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_METADATA_EXTENSION_NAME">GPKG_METADATA_EXTENSION_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_METADATA_TABLES">GPKG_METADATA_TABLES</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MR_COLUMN_COLUMN_NAME">GPKG_MR_COLUMN_COLUMN_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MR_COLUMN_FILE_ID">GPKG_MR_COLUMN_FILE_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MR_COLUMN_PARENT_ID">GPKG_MR_COLUMN_PARENT_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MR_COLUMN_REFERENCE_SCOPE">GPKG_MR_COLUMN_REFERENCE_SCOPE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MR_COLUMN_ROW_ID_VALUE">GPKG_MR_COLUMN_ROW_ID_VALUE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MR_COLUMN_TABLE_NAME">GPKG_MR_COLUMN_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MR_COLUMN_TIMESTAMP">GPKG_MR_COLUMN_TIMESTAMP</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MR_TABLE_NAME">GPKG_MR_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_ATTRIBUTE_NAME">GPKG_MST_ATTRIBUTE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_ATTRIBUTE_TYPE_NAME">GPKG_MST_ATTRIBUTE_TYPE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_CATALOG_NAME">GPKG_MST_CATALOG_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_COLLECTION_HARDWARE_NAME">GPKG_MST_COLLECTION_HARDWARE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_COLLECTION_NAME">GPKG_MST_COLLECTION_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_COLLECTION_SESSION_NAME">GPKG_MST_COLLECTION_SESSION_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_DATASET_NAME">GPKG_MST_DATASET_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_DIMENSION_GROUP_NAME">GPKG_MST_DIMENSION_GROUP_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_FEATURE_NAME">GPKG_MST_FEATURE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_FEATURE_TYPE_NAME">GPKG_MST_FEATURE_TYPE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_FIELD_SESSION_NAME">GPKG_MST_FIELD_SESSION_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_MODEL_NAME">GPKG_MST_MODEL_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_MULTI_POINT_NAME">GPKG_MST_MULTI_POINT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_MULTI_POLYGON_NAME">GPKG_MST_MULTI_POLYGON_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_MULTI_POLYGON_POINTS_NAME">GPKG_MST_MULTI_POLYGON_POINTS_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_MULTI_POLYLINE_NAME">GPKG_MST_MULTI_POLYLINE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_MULTI_POLYLINE_POINTS_NAME">GPKG_MST_MULTI_POLYLINE_POINTS_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_NON_GEOGRAPHIC_DATASET_NAME">GPKG_MST_NON_GEOGRAPHIC_DATASET_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_POINT_NAME">GPKG_MST_POINT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_POLYGON_NAME">GPKG_MST_POLYGON_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_POLYGON_POINTS_NAME">GPKG_MST_POLYGON_POINTS_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_POLYLINE_NAME">GPKG_MST_POLYLINE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_POLYLINE_POINTS_NAME">GPKG_MST_POLYLINE_POINTS_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_SCHEMA_NAME">GPKG_MST_SCHEMA_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_SERIES_NAME">GPKG_MST_SERIES_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_SERVICE_NAME">GPKG_MST_SERVICE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_SOFTWARE_NAME">GPKG_MST_SOFTWARE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_STYLE_NAME">GPKG_MST_STYLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_TAXONOMY_NAME">GPKG_MST_TAXONOMY_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_TILE_NAME">GPKG_MST_TILE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_MST_UNDEFINED_NAME">GPKG_MST_UNDEFINED_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_M_COLUMN_ID">GPKG_M_COLUMN_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_M_COLUMN_METADATA">GPKG_M_COLUMN_METADATA</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_M_COLUMN_MIME_TYPE">GPKG_M_COLUMN_MIME_TYPE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_M_COLUMN_PK">GPKG_M_COLUMN_PK</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_M_COLUMN_SCOPE">GPKG_M_COLUMN_SCOPE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_M_COLUMN_STANDARD_URI">GPKG_M_COLUMN_STANDARD_URI</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_M_TABLE_NAME">GPKG_M_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_NGA_EXTENSION_AUTHOR">GPKG_NGA_EXTENSION_AUTHOR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_NGA_TABLES">GPKG_NGA_TABLES</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PE_CONTRIBUTOR">GPKG_PE_CONTRIBUTOR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PE_COVERAGE">GPKG_PE_COVERAGE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PE_CREATED">GPKG_PE_CREATED</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PE_CREATOR">GPKG_PE_CREATOR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PE_DATE">GPKG_PE_DATE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PE_DESCRIPTION">GPKG_PE_DESCRIPTION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PE_IDENTIFIER">GPKG_PE_IDENTIFIER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PE_LICENSE">GPKG_PE_LICENSE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PE_MODIFIED">GPKG_PE_MODIFIED</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PE_PUBLISHER">GPKG_PE_PUBLISHER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PE_REFERENCES">GPKG_PE_REFERENCES</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PE_RELATION">GPKG_PE_RELATION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PE_SOURCE">GPKG_PE_SOURCE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PE_SPATIAL">GPKG_PE_SPATIAL</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PE_SUBJECT">GPKG_PE_SUBJECT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PE_TAG">GPKG_PE_TAG</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PE_TEMPORAL">GPKG_PE_TEMPORAL</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PE_TITLE">GPKG_PE_TITLE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PE_TYPE">GPKG_PE_TYPE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PE_URI">GPKG_PE_URI</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PE_VALID">GPKG_PE_VALID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PE_VERSION">GPKG_PE_VERSION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROPERTY_LIST_TYPE">GPKG_PROPERTY_LIST_TYPE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_COLORS_ALPHA">GPKG_PROP_COLORS_ALPHA</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_COLORS_BLUE">GPKG_PROP_COLORS_BLUE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_COLORS_GREEN">GPKG_PROP_COLORS_GREEN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_COLORS_RED">GPKG_PROP_COLORS_RED</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_COLORS_WHITE">GPKG_PROP_COLORS_WHITE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_CONNECTION_POOL">GPKG_PROP_CONNECTION_POOL</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_CONNECTION_POOL_CHECK_CONNECTIONS">GPKG_PROP_CONNECTION_POOL_CHECK_CONNECTIONS</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_CONNECTION_POOL_CHECK_CONNECTIONS_FREQUENCY">GPKG_PROP_CONNECTION_POOL_CHECK_CONNECTIONS_FREQUENCY</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_CONNECTION_POOL_CHECK_CONNECTIONS_WARNING_TIME">GPKG_PROP_CONNECTION_POOL_CHECK_CONNECTIONS_WARNING_TIME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_CONNECTION_POOL_MAINTAIN_STACK_TRACES">GPKG_PROP_CONNECTION_POOL_MAINTAIN_STACK_TRACES</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_CONNECTION_POOL_OPEN_CONNECTIONS_PER_POOL">GPKG_PROP_CONNECTION_POOL_OPEN_CONNECTIONS_PER_POOL</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_CONTENTS_DATA_TYPE">GPKG_PROP_CONTENTS_DATA_TYPE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_DATETIME_FORMATS">GPKG_PROP_DATETIME_FORMATS</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_DIR_DATABASE">GPKG_PROP_DIR_DATABASE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_DIR_GEOPACKAGE">GPKG_PROP_DIR_GEOPACKAGE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_DIR_METADATA">GPKG_PROP_DIR_METADATA</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_DIR_METADATA_FILE_DB">GPKG_PROP_DIR_METADATA_FILE_DB</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_DIVIDER">GPKG_PROP_DIVIDER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_EXTENSION_CONTENTS_ID_DEFINITION">GPKG_PROP_EXTENSION_CONTENTS_ID_DEFINITION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_EXTENSION_FEATURE_STYLE_DEFINITION">GPKG_PROP_EXTENSION_FEATURE_STYLE_DEFINITION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_EXTENSION_FEATURE_TILE_LINK_DEFINITION">GPKG_PROP_EXTENSION_FEATURE_TILE_LINK_DEFINITION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_EXTENSION_GEOMETRY_INDEX_DEFINITION">GPKG_PROP_EXTENSION_GEOMETRY_INDEX_DEFINITION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_EXTENSION_PROPERTIES_DEFINITION">GPKG_PROP_EXTENSION_PROPERTIES_DEFINITION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_EXTENSION_RELATED_TABLES_DEFINITION">GPKG_PROP_EXTENSION_RELATED_TABLES_DEFINITION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_EXTENSION_TILE_SCALING_DEFINITION">GPKG_PROP_EXTENSION_TILE_SCALING_DEFINITION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_FEATURE_GENERATOR">GPKG_PROP_FEATURE_GENERATOR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_FEATURE_GENERATOR_DOWNLOAD_ATTEMPTS">GPKG_PROP_FEATURE_GENERATOR_DOWNLOAD_ATTEMPTS</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_FEATURE_LINE_STROKE_WIDTH">GPKG_PROP_FEATURE_LINE_STROKE_WIDTH</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_FEATURE_OVERLAY_QUERY">GPKG_PROP_FEATURE_OVERLAY_QUERY</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_FEATURE_POINT_RADIUS">GPKG_PROP_FEATURE_POINT_RADIUS</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_FEATURE_POLYGON_FILL">GPKG_PROP_FEATURE_POLYGON_FILL</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_FEATURE_POLYGON_STROKE_WIDTH">GPKG_PROP_FEATURE_POLYGON_STROKE_WIDTH</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_FEATURE_QUERY_DETAILED_INFO_PRINT_FEATURES">GPKG_PROP_FEATURE_QUERY_DETAILED_INFO_PRINT_FEATURES</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_FEATURE_QUERY_DETAILED_INFO_PRINT_POINTS">GPKG_PROP_FEATURE_QUERY_DETAILED_INFO_PRINT_POINTS</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_FEATURE_QUERY_FEATURES_INFO">GPKG_PROP_FEATURE_QUERY_FEATURES_INFO</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_FEATURE_QUERY_MAX_FEATURES_INFO">GPKG_PROP_FEATURE_QUERY_MAX_FEATURES_INFO</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_FEATURE_QUERY_MAX_FEATURE_DETAILED_INFO">GPKG_PROP_FEATURE_QUERY_MAX_FEATURE_DETAILED_INFO</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_FEATURE_QUERY_MAX_POINT_DETAILED_INFO">GPKG_PROP_FEATURE_QUERY_MAX_POINT_DETAILED_INFO</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_FEATURE_QUERY_SCREEN_CLICK_PERCENTAGE">GPKG_PROP_FEATURE_QUERY_SCREEN_CLICK_PERCENTAGE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_FEATURE_TILES">GPKG_PROP_FEATURE_TILES</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_FEATURE_TILES_COMPRESS_FORMAT">GPKG_PROP_FEATURE_TILES_COMPRESS_FORMAT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_MANAGER_VALIDATION">GPKG_PROP_MANAGER_VALIDATION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_MANAGER_VALIDATION_IMPORT_HEADER">GPKG_PROP_MANAGER_VALIDATION_IMPORT_HEADER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_MANAGER_VALIDATION_IMPORT_INTEGRITY">GPKG_PROP_MANAGER_VALIDATION_IMPORT_INTEGRITY</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_MANAGER_VALIDATION_OPEN_HEADER">GPKG_PROP_MANAGER_VALIDATION_OPEN_HEADER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_MANAGER_VALIDATION_OPEN_INTEGRITY">GPKG_PROP_MANAGER_VALIDATION_OPEN_INTEGRITY</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_MAX_ZOOM_LEVEL">GPKG_PROP_MAX_ZOOM_LEVEL</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES">GPKG_PROP_NUMBER_FEATURE_TILES</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_CIRCLE_COLOR">GPKG_PROP_NUMBER_FEATURE_TILES_CIRCLE_COLOR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_CIRCLE_FILL_COLOR">GPKG_PROP_NUMBER_FEATURE_TILES_CIRCLE_FILL_COLOR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_CIRCLE_PADDING_PERCENTAGE">GPKG_PROP_NUMBER_FEATURE_TILES_CIRCLE_PADDING_PERCENTAGE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_CIRCLE_STROKE_WIDTH">GPKG_PROP_NUMBER_FEATURE_TILES_CIRCLE_STROKE_WIDTH</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_DRAW_CIRCLE">GPKG_PROP_NUMBER_FEATURE_TILES_DRAW_CIRCLE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_DRAW_TILE_BORDER">GPKG_PROP_NUMBER_FEATURE_TILES_DRAW_TILE_BORDER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_DRAW_UNINDEXED_TILES">GPKG_PROP_NUMBER_FEATURE_TILES_DRAW_UNINDEXED_TILES</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_FILL_CIRCLE">GPKG_PROP_NUMBER_FEATURE_TILES_FILL_CIRCLE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_FILL_TILE">GPKG_PROP_NUMBER_FEATURE_TILES_FILL_TILE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_TEXT_COLOR">GPKG_PROP_NUMBER_FEATURE_TILES_TEXT_COLOR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_TEXT_FONT">GPKG_PROP_NUMBER_FEATURE_TILES_TEXT_FONT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_TEXT_FONT_SIZE">GPKG_PROP_NUMBER_FEATURE_TILES_TEXT_FONT_SIZE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_TILE_BORDER_COLOR">GPKG_PROP_NUMBER_FEATURE_TILES_TILE_BORDER_COLOR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_TILE_BORDER_STROKE_WIDTH">GPKG_PROP_NUMBER_FEATURE_TILES_TILE_BORDER_STROKE_WIDTH</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_TILE_FILL_COLOR">GPKG_PROP_NUMBER_FEATURE_TILES_TILE_FILL_COLOR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_UNINDEXED_TEXT">GPKG_PROP_NUMBER_FEATURE_TILES_UNINDEXED_TEXT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_SRS_DEFINITION">GPKG_PROP_SRS_DEFINITION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_SRS_DEFINITION_12_063">GPKG_PROP_SRS_DEFINITION_12_063</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_SRS_DESCRIPTION">GPKG_PROP_SRS_DESCRIPTION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_SRS_ORGANIZATION">GPKG_PROP_SRS_ORGANIZATION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_SRS_ORGANIZATION_COORDSYS_ID">GPKG_PROP_SRS_ORGANIZATION_COORDSYS_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_SRS_SRS_ID">GPKG_PROP_SRS_SRS_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_SRS_SRS_NAME">GPKG_PROP_SRS_SRS_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_SRS_UNDEFINED_CARTESIAN">GPKG_PROP_SRS_UNDEFINED_CARTESIAN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_SRS_UNDEFINED_GEOGRAPHIC">GPKG_PROP_SRS_UNDEFINED_GEOGRAPHIC</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_SRS_WEB_MERCATOR">GPKG_PROP_SRS_WEB_MERCATOR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_SRS_WGS_84">GPKG_PROP_SRS_WGS_84</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_SRS_WGS_84_3D">GPKG_PROP_SRS_WGS_84_3D</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_TILE_GENERATOR_VARIABLE">GPKG_PROP_TILE_GENERATOR_VARIABLE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_TILE_GENERATOR_VARIABLE_MAX_LAT">GPKG_PROP_TILE_GENERATOR_VARIABLE_MAX_LAT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_TILE_GENERATOR_VARIABLE_MAX_LON">GPKG_PROP_TILE_GENERATOR_VARIABLE_MAX_LON</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_TILE_GENERATOR_VARIABLE_MIN_LAT">GPKG_PROP_TILE_GENERATOR_VARIABLE_MIN_LAT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_TILE_GENERATOR_VARIABLE_MIN_LON">GPKG_PROP_TILE_GENERATOR_VARIABLE_MIN_LON</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_TILE_GENERATOR_VARIABLE_X">GPKG_PROP_TILE_GENERATOR_VARIABLE_X</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_TILE_GENERATOR_VARIABLE_Y">GPKG_PROP_TILE_GENERATOR_VARIABLE_Y</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_PROP_TILE_GENERATOR_VARIABLE_Z">GPKG_PROP_TILE_GENERATOR_VARIABLE_Z</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_RESOURCES_PROPERTIES">GPKG_RESOURCES_PROPERTIES</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_RESOURCES_TABLES">GPKG_RESOURCES_TABLES</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_RMT_COLUMN_CONTENT_TYPE">GPKG_RMT_COLUMN_CONTENT_TYPE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_RMT_COLUMN_DATA">GPKG_RMT_COLUMN_DATA</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_RSAT_COLUMN_ID">GPKG_RSAT_COLUMN_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_RST_COLUMN_NAME">GPKG_RST_COLUMN_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_RST_GEOPACKAGE_NAME">GPKG_RST_GEOPACKAGE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_RST_ROW_COL_NAME">GPKG_RST_ROW_COL_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_RST_ROW_NAME">GPKG_RST_ROW_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_RST_TABLE_NAME">GPKG_RST_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_RTREE_INDEX_EXTENSION_COLUMN_ID">GPKG_RTREE_INDEX_EXTENSION_COLUMN_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_RTREE_INDEX_EXTENSION_COLUMN_MAX_X">GPKG_RTREE_INDEX_EXTENSION_COLUMN_MAX_X</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_RTREE_INDEX_EXTENSION_COLUMN_MAX_Y">GPKG_RTREE_INDEX_EXTENSION_COLUMN_MAX_Y</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_RTREE_INDEX_EXTENSION_COLUMN_MIN_X">GPKG_RTREE_INDEX_EXTENSION_COLUMN_MIN_X</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_RTREE_INDEX_EXTENSION_COLUMN_MIN_Y">GPKG_RTREE_INDEX_EXTENSION_COLUMN_MIN_Y</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_RTREE_INDEX_EXTENSION_NAME">GPKG_RTREE_INDEX_EXTENSION_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_RTREE_INDEX_PREFIX">GPKG_RTREE_INDEX_PREFIX</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_RT_ATTRIBUTES_NAME">GPKG_RT_ATTRIBUTES_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_RT_FEATURES_NAME">GPKG_RT_FEATURES_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_RT_MEDIA_NAME">GPKG_RT_MEDIA_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_RT_SIMPLE_ATTRIBUTES_NAME">GPKG_RT_SIMPLE_ATTRIBUTES_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_RT_TILES_NAME">GPKG_RT_TILES_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_SCHEMA_EXTENSION_NAME">GPKG_SCHEMA_EXTENSION_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_SMC_NAME_NAME">GPKG_SMC_NAME_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_SMC_ROOTPAGE_NAME">GPKG_SMC_ROOTPAGE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_SMC_SQL_NAME">GPKG_SMC_SQL_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_SMC_TBL_NAME_NAME">GPKG_SMC_TBL_NAME_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_SMC_TYPE_NAME">GPKG_SMC_TYPE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_SMT_COLUMN_GEOMETRY_TYPE_NAME">GPKG_SMT_COLUMN_GEOMETRY_TYPE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_SMT_INDEX_NAME">GPKG_SMT_INDEX_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_SMT_TABLE_NAME">GPKG_SMT_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_SMT_TRIGGER_NAME">GPKG_SMT_TRIGGER_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_SMT_VIEW_NAME">GPKG_SMT_VIEW_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_SM_TABLE_NAME">GPKG_SM_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_SQLITE_APPLICATION_ID">GPKG_SQLITE_APPLICATION_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_SQLITE_HEADER_PREFIX">GPKG_SQLITE_HEADER_PREFIX</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_SRS_COLUMN_DEFINITION">GPKG_SRS_COLUMN_DEFINITION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_SRS_COLUMN_DEFINITION_12_063">GPKG_SRS_COLUMN_DEFINITION_12_063</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_SRS_COLUMN_DESCRIPTION">GPKG_SRS_COLUMN_DESCRIPTION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_SRS_COLUMN_ORGANIZATION">GPKG_SRS_COLUMN_ORGANIZATION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_SRS_COLUMN_ORGANIZATION_COORDSYS_ID">GPKG_SRS_COLUMN_ORGANIZATION_COORDSYS_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_SRS_COLUMN_PK">GPKG_SRS_COLUMN_PK</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_SRS_COLUMN_SRS_ID">GPKG_SRS_COLUMN_SRS_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_SRS_COLUMN_SRS_NAME">GPKG_SRS_COLUMN_SRS_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_SRS_TABLE_NAME">GPKG_SRS_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_ST_COLUMN_COLOR">GPKG_ST_COLUMN_COLOR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_ST_COLUMN_DESCRIPTION">GPKG_ST_COLUMN_DESCRIPTION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_ST_COLUMN_FILL_COLOR">GPKG_ST_COLUMN_FILL_COLOR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_ST_COLUMN_FILL_OPACITY">GPKG_ST_COLUMN_FILL_OPACITY</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_ST_COLUMN_ID">GPKG_ST_COLUMN_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_ST_COLUMN_NAME">GPKG_ST_COLUMN_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_ST_COLUMN_OPACITY">GPKG_ST_COLUMN_OPACITY</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_ST_COLUMN_WIDTH">GPKG_ST_COLUMN_WIDTH</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_ST_TABLE_NAME">GPKG_ST_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TC_COLUMN_ID">GPKG_TC_COLUMN_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TC_COLUMN_TILE_COLUMN">GPKG_TC_COLUMN_TILE_COLUMN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TC_COLUMN_TILE_DATA">GPKG_TC_COLUMN_TILE_DATA</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TC_COLUMN_TILE_ROW">GPKG_TC_COLUMN_TILE_ROW</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TC_COLUMN_ZOOM_LEVEL">GPKG_TC_COLUMN_ZOOM_LEVEL</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TI_CID">GPKG_TI_CID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TI_CID_INDEX">GPKG_TI_CID_INDEX</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TI_COLUMN_LAST_INDEXED">GPKG_TI_COLUMN_LAST_INDEXED</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TI_COLUMN_PK">GPKG_TI_COLUMN_PK</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TI_COLUMN_TABLE_NAME">GPKG_TI_COLUMN_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TI_DEFAULT_NULL">GPKG_TI_DEFAULT_NULL</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TI_DFLT_VALUE">GPKG_TI_DFLT_VALUE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TI_DFLT_VALUE_INDEX">GPKG_TI_DFLT_VALUE_INDEX</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TI_NAME">GPKG_TI_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TI_NAME_INDEX">GPKG_TI_NAME_INDEX</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TI_NOT_NULL">GPKG_TI_NOT_NULL</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TI_NOT_NULL_INDEX">GPKG_TI_NOT_NULL_INDEX</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TI_PK">GPKG_TI_PK</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TI_PK_INDEX">GPKG_TI_PK_INDEX</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TI_TABLE_NAME">GPKG_TI_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TI_TYPE">GPKG_TI_TYPE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TI_TYPE_INDEX">GPKG_TI_TYPE_INDEX</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TMS_COLUMN_MAX_X">GPKG_TMS_COLUMN_MAX_X</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TMS_COLUMN_MAX_Y">GPKG_TMS_COLUMN_MAX_Y</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TMS_COLUMN_MIN_X">GPKG_TMS_COLUMN_MIN_X</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TMS_COLUMN_MIN_Y">GPKG_TMS_COLUMN_MIN_Y</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TMS_COLUMN_PK">GPKG_TMS_COLUMN_PK</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TMS_COLUMN_SRS_ID">GPKG_TMS_COLUMN_SRS_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TMS_COLUMN_TABLE_NAME">GPKG_TMS_COLUMN_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TMS_TABLE_NAME">GPKG_TMS_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TM_COLUMN_MATRIX_HEIGHT">GPKG_TM_COLUMN_MATRIX_HEIGHT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TM_COLUMN_MATRIX_WIDTH">GPKG_TM_COLUMN_MATRIX_WIDTH</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TM_COLUMN_PIXEL_X_SIZE">GPKG_TM_COLUMN_PIXEL_X_SIZE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TM_COLUMN_PIXEL_Y_SIZE">GPKG_TM_COLUMN_PIXEL_Y_SIZE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TM_COLUMN_PK1">GPKG_TM_COLUMN_PK1</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TM_COLUMN_PK2">GPKG_TM_COLUMN_PK2</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TM_COLUMN_TABLE_NAME">GPKG_TM_COLUMN_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TM_COLUMN_TILE_HEIGHT">GPKG_TM_COLUMN_TILE_HEIGHT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TM_COLUMN_TILE_WIDTH">GPKG_TM_COLUMN_TILE_WIDTH</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TM_COLUMN_ZOOM_LEVEL">GPKG_TM_COLUMN_ZOOM_LEVEL</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TM_TABLE_NAME">GPKG_TM_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TSC_CLOSEST_IN_OUT_NAME">GPKG_TSC_CLOSEST_IN_OUT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TSC_CLOSEST_OUT_IN_NAME">GPKG_TSC_CLOSEST_OUT_IN_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TSC_IN_NAME">GPKG_TSC_IN_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TSC_IN_OUT_NAME">GPKG_TSC_IN_OUT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TSC_OUT_IN_NAME">GPKG_TSC_OUT_IN_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TSC_OUT_NAME">GPKG_TSC_OUT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TS_COLUMN_PK">GPKG_TS_COLUMN_PK</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TS_COLUMN_SCALING_TYPE">GPKG_TS_COLUMN_SCALING_TYPE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TS_COLUMN_TABLE_NAME">GPKG_TS_COLUMN_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TS_COLUMN_ZOOM_IN">GPKG_TS_COLUMN_ZOOM_IN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TS_COLUMN_ZOOM_OUT">GPKG_TS_COLUMN_ZOOM_OUT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TS_TABLE_NAME">GPKG_TS_TABLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TU_SCALE_FACTOR_DEFAULT">GPKG_TU_SCALE_FACTOR_DEFAULT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TU_TILE_DP">GPKG_TU_TILE_DP</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TU_TILE_PIXELS_DEFAULT">GPKG_TU_TILE_PIXELS_DEFAULT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_TU_TILE_PIXELS_HIGH">GPKG_TU_TILE_PIXELS_HIGH</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_UMT_COLUMN_BASE_ID">GPKG_UMT_COLUMN_BASE_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_UMT_COLUMN_RELATED_ID">GPKG_UMT_COLUMN_RELATED_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_UNIQUE">GPKG_UNIQUE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_USER_VERSION">GPKG_USER_VERSION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_UTM_DEFAULT_ID_COLUMN_NAME">GPKG_UTM_DEFAULT_ID_COLUMN_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_WEBP_EXTENSION_NAME">GPKG_WEBP_EXTENSION_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@GPKG_ZOOM_OTHER_EXTENSION_NAME">GPKG_ZOOM_OTHER_EXTENSION_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:GPKGUserColumn.h@NOT_NULL_CONSTRAINT_ORDER">NOT_NULL_CONSTRAINT_ORDER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:GPKGUserColumn.h@NO_INDEX">NO_INDEX</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_BBOX">OAF_BBOX</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_COLLECTIONS">OAF_COLLECTIONS</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_CRS">OAF_CRS</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_CRS_BASE_URL">OAF_CRS_BASE_URL</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_CRS_PATTERN">OAF_CRS_PATTERN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_CRS_PATTERN_AUTHORITY_GROUP">OAF_CRS_PATTERN_AUTHORITY_GROUP</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_CRS_PATTERN_CODE_GROUP">OAF_CRS_PATTERN_CODE_GROUP</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_CRS_PATTERN_VERSION_GROUP">OAF_CRS_PATTERN_VERSION_GROUP</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_DESCRIPTION">OAF_DESCRIPTION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_EXTENT">OAF_EXTENT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_HREF">OAF_HREF</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_HREFLANG">OAF_HREFLANG</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_ID">OAF_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_INTERVAL">OAF_INTERVAL</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_ITEM_TYPE">OAF_ITEM_TYPE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_LENGTH">OAF_LENGTH</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_LIMIT_DEFAULT">OAF_LIMIT_DEFAULT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_LINKS">OAF_LINKS</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_LINK_RELATION_NEXT">OAF_LINK_RELATION_NEXT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_NUMBER_MATCHED">OAF_NUMBER_MATCHED</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_NUMBER_RETURNED">OAF_NUMBER_RETURNED</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_REL">OAF_REL</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_SPATIAL">OAF_SPATIAL</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_TEMPORAL">OAF_TEMPORAL</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_TIME_STAMP">OAF_TIME_STAMP</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_TITLE">OAF_TITLE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_TRS">OAF_TRS</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@OAF_TYPE">OAF_TYPE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:GPKGUserColumn.h@PRIMARY_KEY_CONSTRAINT_ORDER">PRIMARY_KEY_CONSTRAINT_ORDER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@PROJ_AUTHORITY_EPSG">PROJ_AUTHORITY_EPSG</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@PROJ_AUTHORITY_NONE">PROJ_AUTHORITY_NONE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@PROJ_AUTHORITY_NSG">PROJ_AUTHORITY_NSG</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@PROJ_AUTHORITY_OGC">PROJ_AUTHORITY_OGC</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@PROJ_BUNDLE_NAME">PROJ_BUNDLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@PROJ_EPSG_WEB_MERCATOR">PROJ_EPSG_WEB_MERCATOR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@PROJ_EPSG_WORLD_GEODETIC_SYSTEM">PROJ_EPSG_WORLD_GEODETIC_SYSTEM</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@PROJ_EPSG_WORLD_GEODETIC_SYSTEM_GEOGRAPHICAL_3D">PROJ_EPSG_WORLD_GEODETIC_SYSTEM_GEOGRAPHICAL_3D</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@PROJ_MERCATOR_RADIUS">PROJ_MERCATOR_RADIUS</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@PROJ_OGC_CRS84">PROJ_OGC_CRS84</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@PROJ_PROPERTIES">PROJ_PROPERTIES</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@PROJ_PROPERTY_LIST_TYPE">PROJ_PROPERTY_LIST_TYPE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@PROJ_UNDEFINED_CARTESIAN">PROJ_UNDEFINED_CARTESIAN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@PROJ_UNDEFINED_GEOGRAPHIC">PROJ_UNDEFINED_GEOGRAPHIC</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@PROJ_WEB_MERCATOR_HALF_WORLD_WIDTH">PROJ_WEB_MERCATOR_HALF_WORLD_WIDTH</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@PROJ_WEB_MERCATOR_MAX_LAT_RANGE">PROJ_WEB_MERCATOR_MAX_LAT_RANGE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@PROJ_WEB_MERCATOR_MIN_LAT_RANGE">PROJ_WEB_MERCATOR_MIN_LAT_RANGE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@PROJ_WGS84_HALF_WORLD_LAT_HEIGHT">PROJ_WGS84_HALF_WORLD_LAT_HEIGHT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@PROJ_WGS84_HALF_WORLD_LON_WIDTH">PROJ_WGS84_HALF_WORLD_LON_WIDTH</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SFG_MEMBER_BBOX">SFG_MEMBER_BBOX</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SFG_MEMBER_COORDINATES">SFG_MEMBER_COORDINATES</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SFG_MEMBER_FEATURES">SFG_MEMBER_FEATURES</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SFG_MEMBER_GEOMETRIES">SFG_MEMBER_GEOMETRIES</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SFG_MEMBER_GEOMETRY">SFG_MEMBER_GEOMETRY</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SFG_MEMBER_ID">SFG_MEMBER_ID</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SFG_MEMBER_PROPERTIES">SFG_MEMBER_PROPERTIES</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SFG_MEMBER_TYPE">SFG_MEMBER_TYPE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SFG_TYPE_FEATURE">SFG_TYPE_FEATURE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SFG_TYPE_FEATURE_COLLECTION">SFG_TYPE_FEATURE_COLLECTION</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SF_CIRCULARSTRING_NAME">SF_CIRCULARSTRING_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SF_COMPOUNDCURVE_NAME">SF_COMPOUNDCURVE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SF_CURVEPOLYGON_NAME">SF_CURVEPOLYGON_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SF_CURVE_NAME">SF_CURVE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SF_GEOMETRYCOLLECTION_NAME">SF_GEOMETRYCOLLECTION_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SF_GEOMETRY_NAME">SF_GEOMETRY_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SF_LINESTRING_NAME">SF_LINESTRING_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SF_MULTICURVE_NAME">SF_MULTICURVE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SF_MULTILINESTRING_NAME">SF_MULTILINESTRING_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SF_MULTIPOINT_NAME">SF_MULTIPOINT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SF_MULTIPOLYGON_NAME">SF_MULTIPOLYGON_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SF_MULTISURFACE_NAME">SF_MULTISURFACE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SF_NONE_NAME">SF_NONE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SF_POINT_NAME">SF_POINT_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SF_POLYGON_NAME">SF_POLYGON_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SF_POLYHEDRALSURFACE_NAME">SF_POLYHEDRALSURFACE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SF_SURFACE_NAME">SF_SURFACE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SF_TIN_NAME">SF_TIN_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@SF_TRIANGLE_NAME">SF_TRIANGLE_NAME</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_BYTE_ORDER_BIG_ENDIAN">TIFF_BYTE_ORDER_BIG_ENDIAN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_BYTE_ORDER_LITTLE_ENDIAN">TIFF_BYTE_ORDER_LITTLE_ENDIAN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_COMPRESSION_CCITT_HUFFMAN">TIFF_COMPRESSION_CCITT_HUFFMAN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_COMPRESSION_DEFLATE">TIFF_COMPRESSION_DEFLATE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_COMPRESSION_JPEG_NEW">TIFF_COMPRESSION_JPEG_NEW</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_COMPRESSION_JPEG_OLD">TIFF_COMPRESSION_JPEG_OLD</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_COMPRESSION_LZW">TIFF_COMPRESSION_LZW</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_COMPRESSION_NO">TIFF_COMPRESSION_NO</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_COMPRESSION_PACKBITS">TIFF_COMPRESSION_PACKBITS</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_COMPRESSION_PKZIP_DEFLATE">TIFF_COMPRESSION_PKZIP_DEFLATE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_COMPRESSION_T4">TIFF_COMPRESSION_T4</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_COMPRESSION_T6">TIFF_COMPRESSION_T6</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_DEFAULT_MAX_BYTES_PER_STRIP">TIFF_DEFAULT_MAX_BYTES_PER_STRIP</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_EXTRA_SAMPLES_ASSOCIATED_ALPHA">TIFF_EXTRA_SAMPLES_ASSOCIATED_ALPHA</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_EXTRA_SAMPLES_UNASSOCIATED_ALPHA">TIFF_EXTRA_SAMPLES_UNASSOCIATED_ALPHA</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_EXTRA_SAMPLES_UNSPECIFIED">TIFF_EXTRA_SAMPLES_UNSPECIFIED</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_FILE_IDENTIFIER">TIFF_FILE_IDENTIFIER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_FILL_ORDER_LOWER_COLUMN_HIGHER_ORDER">TIFF_FILL_ORDER_LOWER_COLUMN_HIGHER_ORDER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_FILL_ORDER_LOWER_COLUMN_LOWER_ORDER">TIFF_FILL_ORDER_LOWER_COLUMN_LOWER_ORDER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_GRAY_RESPONSE_HUNDREDTHS">TIFF_GRAY_RESPONSE_HUNDREDTHS</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_GRAY_RESPONSE_HUNDRED_THOUSANDTHS">TIFF_GRAY_RESPONSE_HUNDRED_THOUSANDTHS</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_GRAY_RESPONSE_TENTHS">TIFF_GRAY_RESPONSE_TENTHS</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_GRAY_RESPONSE_TEN_THOUSANDTHS">TIFF_GRAY_RESPONSE_TEN_THOUSANDTHS</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_GRAY_RESPONSE_THOUSANDTHS">TIFF_GRAY_RESPONSE_THOUSANDTHS</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_HEADER_BYTES">TIFF_HEADER_BYTES</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_IFD_ENTRY_BYTES">TIFF_IFD_ENTRY_BYTES</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_IFD_HEADER_BYTES">TIFF_IFD_HEADER_BYTES</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_IFD_OFFSET_BYTES">TIFF_IFD_OFFSET_BYTES</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_ORIENTATION_BOTTOM_ROW_LEFT_COLUMN">TIFF_ORIENTATION_BOTTOM_ROW_LEFT_COLUMN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_ORIENTATION_BOTTOM_ROW_RIGHT_COLUMN">TIFF_ORIENTATION_BOTTOM_ROW_RIGHT_COLUMN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_ORIENTATION_LEFT_ROW_BOTTOM_COLUMN">TIFF_ORIENTATION_LEFT_ROW_BOTTOM_COLUMN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_ORIENTATION_LEFT_ROW_TOP_COLUMN">TIFF_ORIENTATION_LEFT_ROW_TOP_COLUMN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_ORIENTATION_RIGHT_ROW_BOTTOM_COLUMN">TIFF_ORIENTATION_RIGHT_ROW_BOTTOM_COLUMN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_ORIENTATION_RIGHT_ROW_TOP_COLUMN">TIFF_ORIENTATION_RIGHT_ROW_TOP_COLUMN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_ORIENTATION_TOP_ROW_LEFT_COLUMN">TIFF_ORIENTATION_TOP_ROW_LEFT_COLUMN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_ORIENTATION_TOP_ROW_RIGHT_COLUMN">TIFF_ORIENTATION_TOP_ROW_RIGHT_COLUMN</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_PHOTOMETRIC_INTERPRETATION_BLACK_IS_ZERO">TIFF_PHOTOMETRIC_INTERPRETATION_BLACK_IS_ZERO</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_PHOTOMETRIC_INTERPRETATION_PALETTE">TIFF_PHOTOMETRIC_INTERPRETATION_PALETTE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_PHOTOMETRIC_INTERPRETATION_RGB">TIFF_PHOTOMETRIC_INTERPRETATION_RGB</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_PHOTOMETRIC_INTERPRETATION_TRANSPARENCY">TIFF_PHOTOMETRIC_INTERPRETATION_TRANSPARENCY</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_PHOTOMETRIC_INTERPRETATION_WHITE_IS_ZERO">TIFF_PHOTOMETRIC_INTERPRETATION_WHITE_IS_ZERO</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_PLANAR_CONFIGURATION_CHUNKY">TIFF_PLANAR_CONFIGURATION_CHUNKY</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_PLANAR_CONFIGURATION_PLANAR">TIFF_PLANAR_CONFIGURATION_PLANAR</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_RESOLUTION_UNIT_CENTIMETER">TIFF_RESOLUTION_UNIT_CENTIMETER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_RESOLUTION_UNIT_INCH">TIFF_RESOLUTION_UNIT_INCH</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_RESOLUTION_UNIT_NO">TIFF_RESOLUTION_UNIT_NO</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_SAMPLE_FORMAT_FLOAT">TIFF_SAMPLE_FORMAT_FLOAT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_SAMPLE_FORMAT_SIGNED_INT">TIFF_SAMPLE_FORMAT_SIGNED_INT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_SAMPLE_FORMAT_SINGLE_PAGE_MULTI_PAGE">TIFF_SAMPLE_FORMAT_SINGLE_PAGE_MULTI_PAGE</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_SAMPLE_FORMAT_UNDEFINED">TIFF_SAMPLE_FORMAT_UNDEFINED</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_SAMPLE_FORMAT_UNSIGNED_INT">TIFF_SAMPLE_FORMAT_UNSIGNED_INT</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_SUBFILE_TYPE_FULL">TIFF_SUBFILE_TYPE_FULL</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_SUBFILE_TYPE_REDUCED">TIFF_SUBFILE_TYPE_REDUCED</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_THRESHHOLDING_NO">TIFF_THRESHHOLDING_NO</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_THRESHHOLDING_ORDERED">TIFF_THRESHHOLDING_ORDERED</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@TIFF_THRESHHOLDING_RANDOM">TIFF_THRESHHOLDING_RANDOM</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:GPKGUserColumn.h@UNIQUE_CONSTRAINT_ORDER">UNIQUE_CONSTRAINT_ORDER</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@geopackage_iosVersionNumber">geopackage_iosVersionNumber</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@geopackage_iosVersionString">geopackage_iosVersionString</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:GPKGTileReprojection.h@pixelSizeDelta">pixelSizeDelta</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@pj_datums">pj_datums</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@pj_ellps">pj_ellps</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@pj_errno">pj_errno</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@pj_list">pj_list</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@pj_prime_meridians">pj_prime_meridians</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@pj_release">pj_release</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@pj_selftest_list">pj_selftest_list</a> </li> <li class="nav-group-task"> <a href="../Constants.html#/c:@pj_units">pj_units</a> </li> </ul> </li> <li class="nav-group-name"> <a href="../Enums.html">Enumerations</a> <ul class="nav-group-tasks"> <li class="nav-group-task"> <a href="../Enums/CRSAxisDirectionType.html">CRSAxisDirectionType</a> </li> <li class="nav-group-task"> <a href="../Enums/CRSCategoryType.html">CRSCategoryType</a> </li> <li class="nav-group-task"> <a href="../Enums/CRSCoordinateSystemType.html">CRSCoordinateSystemType</a> </li> <li class="nav-group-task"> <a href="../Enums/CRSEllipsoidType.html">CRSEllipsoidType</a> </li> <li class="nav-group-task"> <a href="../Enums/CRSEllipsoidsType.html">CRSEllipsoidsType</a> </li> <li class="nav-group-task"> <a href="../Enums/CRSGeoDatumType.html">CRSGeoDatumType</a> </li> <li class="nav-group-task"> <a href="../Enums/CRSKeywordType.html">CRSKeywordType</a> </li> <li class="nav-group-task"> <a href="../Enums/CRSOperationMethodType.html">CRSOperationMethodType</a> </li> <li class="nav-group-task"> <a href="../Enums/CRSOperationParameterType.html">CRSOperationParameterType</a> </li> <li class="nav-group-task"> <a href="../Enums/CRSOperationType.html">CRSOperationType</a> </li> <li class="nav-group-task"> <a href="../Enums/CRSPrimeMeridianType.html">CRSPrimeMeridianType</a> </li> <li class="nav-group-task"> <a href="../Enums/CRSType.html">CRSType</a> </li> <li class="nav-group-task"> <a href="../Enums/CRSUnitType.html">CRSUnitType</a> </li> <li class="nav-group-task"> <a href="../Enums/CRSUnitsType.html">CRSUnitsType</a> </li> <li class="nav-group-task"> <a href="../Enums/GPKGCompressFormat.html">GPKGCompressFormat</a> </li> <li class="nav-group-task"> <a href="../Enums/GPKGConstraintType.html">GPKGConstraintType</a> </li> <li class="nav-group-task"> <a href="../Enums/GPKGContentsDataType.html">GPKGContentsDataType</a> </li> <li class="nav-group-task"> <a href="../Enums/GPKGCoverageDataAlgorithm.html">GPKGCoverageDataAlgorithm</a> </li> <li class="nav-group-task"> <a href="../Enums/GPKGDataColumnConstraintType.html">GPKGDataColumnConstraintType</a> </li> <li class="nav-group-task"> <a href="../Enums/GPKGDataType.html">GPKGDataType</a> </li> <li class="nav-group-task"> <a href="../Enums/GPKGDublinCoreType.html">GPKGDublinCoreType</a> </li> <li class="nav-group-task"> <a href="../Enums/GPKGExtensionScopeType.html">GPKGExtensionScopeType</a> </li> <li class="nav-group-task"> <a href="../Enums/GPKGFeatureIndexType.html">GPKGFeatureIndexType</a> </li> <li class="nav-group-task"> <a href="../Enums/GPKGGriddedCoverageDataType.html">GPKGGriddedCoverageDataType</a> </li> <li class="nav-group-task"> <a href="../Enums/GPKGGriddedCoverageEncodingType.html">GPKGGriddedCoverageEncodingType</a> </li> <li class="nav-group-task"> <a href="../Enums/GPKGMapShapeType.html">GPKGMapShapeType</a> </li> <li class="nav-group-task"> <a href="../Enums/GPKGMetadataScopeType.html">GPKGMetadataScopeType</a> </li> <li class="nav-group-task"> <a href="../Enums/GPKGPolygonOrientation.html">GPKGPolygonOrientation</a> </li> <li class="nav-group-task"> <a href="../Enums/GPKGReferenceScopeType.html">GPKGReferenceScopeType</a> </li> <li class="nav-group-task"> <a href="../Enums/GPKGRelationType.html">GPKGRelationType</a> </li> <li class="nav-group-task"> <a href="../Enums/GPKGSQLiteMasterColumn.html">GPKGSQLiteMasterColumn</a> </li> <li class="nav-group-task"> <a href="../Enums/GPKGSQLiteMasterType.html">GPKGSQLiteMasterType</a> </li> <li class="nav-group-task"> <a href="../Enums/GPKGTileScalingType.html">GPKGTileScalingType</a> </li> <li class="nav-group-task"> <a href="../Enums/PROJProjectionFactoryType.html">PROJProjectionFactoryType</a> </li> <li class="nav-group-task"> <a href="../Enums/PROJUnit.html">PROJUnit</a> </li> <li class="nav-group-task"> <a href="../Enums/SFEventType.html">SFEventType</a> </li> <li class="nav-group-task"> <a href="../Enums/SFFiniteFilterType.html">SFFiniteFilterType</a> </li> <li class="nav-group-task"> <a href="../Enums/SFGGeometryType.html">SFGGeometryType</a> </li> <li class="nav-group-task"> <a href="../Enums/SFGeometryType.html">SFGeometryType</a> </li> <li class="nav-group-task"> <a href="../Enums/TIFFFieldTagType.html">TIFFFieldTagType</a> </li> <li class="nav-group-task"> <a href="../Enums/TIFFFieldType.html">TIFFFieldType</a> </li> </ul> </li> <li class="nav-group-name"> <a href="../Protocols.html">Protocols</a> <ul class="nav-group-tasks"> <li class="nav-group-task"> <a href="../Protocols/CRSCommonOperation.html">CRSCommonOperation</a> </li> <li class="nav-group-task"> <a href="../Protocols/CRSGeoDatum.html">CRSGeoDatum</a> </li> <li class="nav-group-task"> <a href="../Protocols/CRSIdentifiable.html">CRSIdentifiable</a> </li> <li class="nav-group-task"> <a href="../Protocols/CRSScopeExtentIdentifierRemark.html">CRSScopeExtentIdentifierRemark</a> </li> <li class="nav-group-task"> <a href="../Protocols/GPKGCoverageDataImage.html">GPKGCoverageDataImage</a> </li> <li class="nav-group-task"> <a href="../Protocols/GPKGCustomFeaturesTile.html">GPKGCustomFeaturesTile</a> </li> <li class="nav-group-task"> <a href="../Protocols/GPKGMapPointInitializer.html">GPKGMapPointInitializer</a> </li> <li class="nav-group-task"> <a href="../Protocols/GPKGProgress.html">GPKGProgress</a> </li> <li class="nav-group-task"> <a href="../Protocols/GPKGShapePoints.html">GPKGShapePoints</a> </li> <li class="nav-group-task"> <a href="../Protocols/GPKGShapeWithChildrenPoints.html">GPKGShapeWithChildrenPoints</a> </li> <li class="nav-group-task"> <a href="../Protocols/GPKGTileRetriever.html">GPKGTileRetriever</a> </li> <li class="nav-group-task"> <a href="../Protocols/SFGeometryFilter.html">SFGeometryFilter</a> </li> <li class="nav-group-task"> <a href="../Protocols/TIFFCompressionDecoder.html">TIFFCompressionDecoder</a> </li> <li class="nav-group-task"> <a href="../Protocols/TIFFCompressionEncoder.html">TIFFCompressionEncoder</a> </li> </ul> </li> <li class="nav-group-name"> <a href="../Type%20Definitions.html">Type Definitions</a> <ul class="nav-group-tasks"> <li class="nav-group-task"> <a href="../Type%20Definitions/COMPLEX.html">COMPLEX</a> </li> <li class="nav-group-task"> <a href="../Type%20Definitions/FLP.html">FLP</a> </li> <li class="nav-group-task"> <a href="../Type%20Definitions/ILP.html">ILP</a> </li> <li class="nav-group-task"> <a href="../Type%20Definitions.html#/c:proj_api.h@T@PAFile">PAFile</a> </li> <li class="nav-group-task"> <a href="../Type%20Definitions/PJ.html">PJ</a> </li> <li class="nav-group-task"> <a href="../Type%20Definitions/PJ_GRIDINFO.html">PJ_GRIDINFO</a> </li> <li class="nav-group-task"> <a href="../Type%20Definitions/PJ_GridCatalog.html">PJ_GridCatalog</a> </li> <li class="nav-group-task"> <a href="../Type%20Definitions/PJ_GridCatalogEntry.html">PJ_GridCatalogEntry</a> </li> <li class="nav-group-task"> <a href="../Type%20Definitions/PJ_Region.html">PJ_Region</a> </li> <li class="nav-group-task"> <a href="../Type%20Definitions/PROJVALUE.html">PROJVALUE</a> </li> <li class="nav-group-task"> <a href="../Type%20Definitions/Tseries.html">Tseries</a> </li> <li class="nav-group-task"> <a href="../Type%20Definitions/paralist.html">paralist</a> </li> <li class="nav-group-task"> <a href="../Type%20Definitions.html#/c:proj_api.h@T@projCtx">projCtx</a> </li> <li class="nav-group-task"> <a href="../Type%20Definitions/projCtx_t.html">projCtx_t</a> </li> <li class="nav-group-task"> <a href="../Type%20Definitions/projFileAPI.html">projFileAPI</a> </li> <li class="nav-group-task"> <a href="../Type%20Definitions.html#/c:proj_api.h@T@projPJ">projPJ</a> </li> <li class="nav-group-task"> <a href="../Type%20Definitions/projUV.html">projUV</a> </li> <li class="nav-group-task"> <a href="../Type%20Definitions/projUVW.html">projUVW</a> </li> </ul> </li> <li class="nav-group-name"> <a href="../Functions.html">Functions</a> <ul class="nav-group-tasks"> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@aacos">aacos</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@aasin">aasin</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@aatan2">aatan2</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@adjlon">adjlon</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@asqrt">asqrt</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@bch2bps">bch2bps</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@bcheval">bcheval</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@bchgen">bchgen</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@biveval">biveval</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@bpseval">bpseval</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@dmstor">dmstor</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@dmstor_ctx">dmstor_ctx</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@freev2">freev2</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@hypot">hypot</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@mk_cheby">mk_cheby</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@nad_ctable2_init">nad_ctable2_init</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@nad_ctable2_load">nad_ctable2_load</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@nad_ctable_init">nad_ctable_init</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@nad_ctable_load">nad_ctable_load</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@nad_cvt">nad_cvt</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@nad_free">nad_free</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@nad_init">nad_init</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@nad_intr">nad_intr</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_acquire_lock">pj_acquire_lock</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_angular_units_set">pj_angular_units_set</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_apply_gridshift">pj_apply_gridshift</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_apply_gridshift_2">pj_apply_gridshift_2</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_apply_gridshift_3">pj_apply_gridshift_3</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_apply_vgridshift">pj_apply_vgridshift</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_atof">pj_atof</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_authlat">pj_authlat</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_authset">pj_authset</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_calloc">pj_calloc</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_cleanup_lock">pj_cleanup_lock</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_clear_initcache">pj_clear_initcache</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_clone_paralist">pj_clone_paralist</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_compare_datums">pj_compare_datums</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_ctx_alloc">pj_ctx_alloc</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_ctx_fclose">pj_ctx_fclose</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_ctx_fgets">pj_ctx_fgets</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_ctx_fopen">pj_ctx_fopen</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_ctx_fread">pj_ctx_fread</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_ctx_free">pj_ctx_free</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_ctx_fseek">pj_ctx_fseek</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_ctx_ftell">pj_ctx_ftell</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_ctx_get_app_data">pj_ctx_get_app_data</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_ctx_get_errno">pj_ctx_get_errno</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_ctx_get_fileapi">pj_ctx_get_fileapi</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_ctx_set_app_data">pj_ctx_set_app_data</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_ctx_set_debug">pj_ctx_set_debug</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_ctx_set_errno">pj_ctx_set_errno</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_ctx_set_fileapi">pj_ctx_set_fileapi</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_ctx_set_logger">pj_ctx_set_logger</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_dalloc">pj_dalloc</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_datum_set">pj_datum_set</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_datum_transform">pj_datum_transform</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_dealloc">pj_dealloc</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_deallocate_grids">pj_deallocate_grids</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_deriv">pj_deriv</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_ell_set">pj_ell_set</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_enfn">pj_enfn</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_factors">pj_factors</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_free">pj_free</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_fwd">pj_fwd</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_fwd3d">pj_fwd3d</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_gauss">pj_gauss</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_gauss_ini">pj_gauss_ini</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_gc_apply_gridshift">pj_gc_apply_gridshift</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_gc_findcatalog">pj_gc_findcatalog</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_gc_findgrid">pj_gc_findgrid</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_gc_parsedate">pj_gc_parsedate</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_gc_readcatalog">pj_gc_readcatalog</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_gc_unloadall">pj_gc_unloadall</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_generic_selftest">pj_generic_selftest</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_geocentric_to_geodetic">pj_geocentric_to_geodetic</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_geodetic_to_geocentric">pj_geodetic_to_geocentric</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_get_ctx">pj_get_ctx</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_get_datums_ref">pj_get_datums_ref</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_get_def">pj_get_def</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_get_default_ctx">pj_get_default_ctx</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_get_default_fileapi">pj_get_default_fileapi</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_get_ellps_ref">pj_get_ellps_ref</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_get_errno_ref">pj_get_errno_ref</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_get_list_ref">pj_get_list_ref</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_get_prime_meridians_ref">pj_get_prime_meridians_ref</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_get_release">pj_get_release</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_get_selftest_list_ref">pj_get_selftest_list_ref</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_get_spheroid_defn">pj_get_spheroid_defn</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_get_units_ref">pj_get_units_ref</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_gridinfo_free">pj_gridinfo_free</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_gridinfo_init">pj_gridinfo_init</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_gridinfo_load">pj_gridinfo_load</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_gridlist_from_nadgrids">pj_gridlist_from_nadgrids</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_init">pj_init</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_init_ctx">pj_init_ctx</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_init_plus">pj_init_plus</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_init_plus_ctx">pj_init_plus_ctx</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_insert_initcache">pj_insert_initcache</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_inv">pj_inv</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_inv3d">pj_inv3d</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_inv_gauss">pj_inv_gauss</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_inv_mlfn">pj_inv_mlfn</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_is_geocent">pj_is_geocent</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_is_latlong">pj_is_latlong</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_latlong_from_proj">pj_latlong_from_proj</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_log">pj_log</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_malloc">pj_malloc</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_mkparam">pj_mkparam</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_mlfn">pj_mlfn</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_msfn">pj_msfn</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_open_lib">pj_open_lib</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_param">pj_param</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_phi2">pj_phi2</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_pr_list">pj_pr_list</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_prepare">pj_prepare</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_prime_meridian_set">pj_prime_meridian_set</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_qsfn">pj_qsfn</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_qsfn_">pj_qsfn_</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_release_lock">pj_release_lock</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_run_selftests">pj_run_selftests</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_search_initcache">pj_search_initcache</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_set_ctx">pj_set_ctx</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_set_finder">pj_set_finder</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_set_searchpath">pj_set_searchpath</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_stderr_logger">pj_stderr_logger</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_strerrno">pj_strerrno</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_strtod">pj_strtod</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_transform">pj_transform</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_tsfn">pj_tsfn</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_zpoly1">pj_zpoly1</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@pj_zpolyd1">pj_zpolyd1</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@proj_inv_mdist">proj_inv_mdist</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@proj_mdist">proj_mdist</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@proj_mdist_ini">proj_mdist_ini</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@rtodms">rtodms</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@set_rtodms">set_rtodms</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@vector1">vector1</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/c:@F@vector2">vector2</a> </li> </ul> </li> <li class="nav-group-name"> <a href="../Structs.html">Structures</a> <ul class="nav-group-tasks"> <li class="nav-group-task"> <a href="../Structs/ARG_list.html">ARG_list</a> </li> <li class="nav-group-task"> <a href="../Structs/CTABLE.html">CTABLE</a> </li> <li class="nav-group-task"> <a href="../Structs/DERIVS.html">DERIVS</a> </li> <li class="nav-group-task"> <a href="../Structs/FACTORS.html">FACTORS</a> </li> <li class="nav-group-task"> <a href="../Structs/GPKGBoundingBoxSize.html">GPKGBoundingBoxSize</a> </li> <li class="nav-group-task"> <a href="../Structs/PJ_DATUMS.html">PJ_DATUMS</a> </li> <li class="nav-group-task"> <a href="../Structs/PJ_ELLPS.html">PJ_ELLPS</a> </li> <li class="nav-group-task"> <a href="../Structs/PJ_LIST.html">PJ_LIST</a> </li> <li class="nav-group-task"> <a href="../Structs/PJ_PRIME_MERIDIANS.html">PJ_PRIME_MERIDIANS</a> </li> <li class="nav-group-task"> <a href="../Structs/PJ_SELFTEST_LIST.html">PJ_SELFTEST_LIST</a> </li> <li class="nav-group-task"> <a href="../Structs/PJ_UNITS.html">PJ_UNITS</a> </li> <li class="nav-group-task"> <a href="../Structs/PJconsts.html">PJconsts</a> </li> <li class="nav-group-task"> <a href="../Structs/PW_COEF.html">PW_COEF</a> </li> <li class="nav-group-task"> <a href="../Structs/_PJ_GridCatalog.html">_PJ_GridCatalog</a> </li> <li class="nav-group-task"> <a href="../Structs/_pj_gi.html">_pj_gi</a> </li> <li class="nav-group-task"> <a href="../Structs/projFileAPI_t.html">projFileAPI_t</a> </li> </ul> </li> </ul> </nav> <article class="main-content"> <section> <section class="section"> <h1>TIFFImageWindow</h1> <div class="declaration"> <div class="language"> <p class="aside-title">Objective-C</p> <pre class="highlight objective_c"><code><span class="k">@interface</span> <span class="nc">TIFFImageWindow</span> <span class="p">:</span> <span class="nc">NSObject</span></code></pre> </div> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="kd">class</span> <span class="kt">TIFFImageWindow</span> <span class="p">:</span> <span class="kt">NSObject</span></code></pre> </div> </div> <p>Coordinates of a window over a portion or the entire image coordinates</p> <div class="slightly-smaller"> <a href="https://github.com/ngageoint/geopackage-ios/tree/7.0.2/Pods/tiff-ios/tiff-ios/TIFFImageWindow.h#L17-L64">Show on GitHub</a> </div> </section> <section class="section task-group-section"> <div class="task-group"> <ul> <li class="item"> <div> <code> <a name="/c:objc(cs)TIFFImageWindow(py)minX"></a> <a name="//apple_ref/objc/Property/minX" class="dashAnchor"></a> <a class="token" href="#/c:objc(cs)TIFFImageWindow(py)minX">minX</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>Min x</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Objective-C</p> <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="kt">int</span> <span class="n">minX</span><span class="p">;</span></code></pre> </div> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">minX</span><span class="p">:</span> <span class="kt">Int32</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> </div> </div> <div class="slightly-smaller"> <a href="https://github.com/ngageoint/geopackage-ios/tree/7.0.2/Pods/tiff-ios/tiff-ios/TIFFImageWindow.h#L22">Show on GitHub</a> </div> </section> </div> </li> <li class="item"> <div> <code> <a name="/c:objc(cs)TIFFImageWindow(py)minY"></a> <a name="//apple_ref/objc/Property/minY" class="dashAnchor"></a> <a class="token" href="#/c:objc(cs)TIFFImageWindow(py)minY">minY</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>Min y</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Objective-C</p> <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="kt">int</span> <span class="n">minY</span><span class="p">;</span></code></pre> </div> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">minY</span><span class="p">:</span> <span class="kt">Int32</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> </div> </div> <div class="slightly-smaller"> <a href="https://github.com/ngageoint/geopackage-ios/tree/7.0.2/Pods/tiff-ios/tiff-ios/TIFFImageWindow.h#L27">Show on GitHub</a> </div> </section> </div> </li> <li class="item"> <div> <code> <a name="/c:objc(cs)TIFFImageWindow(py)maxX"></a> <a name="//apple_ref/objc/Property/maxX" class="dashAnchor"></a> <a class="token" href="#/c:objc(cs)TIFFImageWindow(py)maxX">maxX</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>Max x</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Objective-C</p> <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="kt">int</span> <span class="n">maxX</span><span class="p">;</span></code></pre> </div> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">maxX</span><span class="p">:</span> <span class="kt">Int32</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> </div> </div> <div class="slightly-smaller"> <a href="https://github.com/ngageoint/geopackage-ios/tree/7.0.2/Pods/tiff-ios/tiff-ios/TIFFImageWindow.h#L32">Show on GitHub</a> </div> </section> </div> </li> <li class="item"> <div> <code> <a name="/c:objc(cs)TIFFImageWindow(py)maxY"></a> <a name="//apple_ref/objc/Property/maxY" class="dashAnchor"></a> <a class="token" href="#/c:objc(cs)TIFFImageWindow(py)maxY">maxY</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>Max y</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Objective-C</p> <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="kt">int</span> <span class="n">maxY</span><span class="p">;</span></code></pre> </div> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">maxY</span><span class="p">:</span> <span class="kt">Int32</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> </div> </div> <div class="slightly-smaller"> <a href="https://github.com/ngageoint/geopackage-ios/tree/7.0.2/Pods/tiff-ios/tiff-ios/TIFFImageWindow.h#L37">Show on GitHub</a> </div> </section> </div> </li> <li class="item"> <div> <code> <a name="/c:objc(cs)TIFFImageWindow(im)initWithMinX:andMinY:andMaxX:andMaxY:"></a> <a name="//apple_ref/objc/Method/-initWithMinX:andMinY:andMaxX:andMaxY:" class="dashAnchor"></a> <a class="token" href="#/c:objc(cs)TIFFImageWindow(im)initWithMinX:andMinY:andMaxX:andMaxY:">-initWithMinX:<wbr>andMinY:<wbr>andMaxX:<wbr>andMaxY:<wbr></a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>Initialize</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Objective-C</p> <pre class="highlight objective_c"><code><span class="k">-</span> <span class="p">(</span><span class="n">instancetype</span><span class="p">)</span><span class="nf">initWithMinX</span><span class="p">:(</span><span class="kt">int</span><span class="p">)</span><span class="nv">minX</span> <span class="nf">andMinY</span><span class="p">:(</span><span class="kt">int</span><span class="p">)</span><span class="nv">minY</span> <span class="nf">andMaxX</span><span class="p">:(</span><span class="kt">int</span><span class="p">)</span><span class="nv">maxX</span> <span class="nf">andMaxY</span><span class="p">:(</span><span class="kt">int</span><span class="p">)</span><span class="nv">maxY</span><span class="p">;</span></code></pre> </div> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="nf">init</span><span class="o">!</span><span class="p">(</span><span class="nv">minX</span><span class="p">:</span> <span class="kt">Int32</span><span class="p">,</span> <span class="n">andMinY</span> <span class="nv">minY</span><span class="p">:</span> <span class="kt">Int32</span><span class="p">,</span> <span class="n">andMaxX</span> <span class="nv">maxX</span><span class="p">:</span> <span class="kt">Int32</span><span class="p">,</span> <span class="n">andMaxY</span> <span class="nv">maxY</span><span class="p">:</span> <span class="kt">Int32</span><span class="p">)</span></code></pre> </div> </div> <div> <h4>Parameters</h4> <table class="graybox"> <tbody> <tr> <td> <code> <em>minX</em> </code> </td> <td> <div> <p>min x (inclusive)</p> </div> </td> </tr> <tr> <td> <code> <em>minY</em> </code> </td> <td> <div> <p>min y (inclusive)</p> </div> </td> </tr> <tr> <td> <code> <em>maxX</em> </code> </td> <td> <div> <p>max x (exclusive)</p> </div> </td> </tr> <tr> <td> <code> <em>maxY</em> </code> </td> <td> <div> <p>max y (exclusive)</p> </div> </td> </tr> </tbody> </table> </div> <div class="slightly-smaller"> <a href="https://github.com/ngageoint/geopackage-ios/tree/7.0.2/Pods/tiff-ios/tiff-ios/TIFFImageWindow.h#L47">Show on GitHub</a> </div> </section> </div> </li> <li class="item"> <div> <code> <a name="/c:objc(cs)TIFFImageWindow(im)initWithX:andY:"></a> <a name="//apple_ref/objc/Method/-initWithX:andY:" class="dashAnchor"></a> <a class="token" href="#/c:objc(cs)TIFFImageWindow(im)initWithX:andY:">-initWithX:<wbr>andY:<wbr></a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>Initialize for a single coordinate</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Objective-C</p> <pre class="highlight objective_c"><code><span class="k">-</span> <span class="p">(</span><span class="n">instancetype</span><span class="p">)</span><span class="nf">initWithX</span><span class="p">:(</span><span class="kt">int</span><span class="p">)</span><span class="nv">x</span> <span class="nf">andY</span><span class="p">:(</span><span class="kt">int</span><span class="p">)</span><span class="nv">y</span><span class="p">;</span></code></pre> </div> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="nf">init</span><span class="o">!</span><span class="p">(</span><span class="nv">x</span><span class="p">:</span> <span class="kt">Int32</span><span class="p">,</span> <span class="n">andY</span> <span class="nv">y</span><span class="p">:</span> <span class="kt">Int32</span><span class="p">)</span></code></pre> </div> </div> <div> <h4>Parameters</h4> <table class="graybox"> <tbody> <tr> <td> <code> <em>x</em> </code> </td> <td> <div> <p>x coordinate</p> </div> </td> </tr> <tr> <td> <code> <em>y</em> </code> </td> <td> <div> <p>y coordinate</p> </div> </td> </tr> </tbody> </table> </div> <div class="slightly-smaller"> <a href="https://github.com/ngageoint/geopackage-ios/tree/7.0.2/Pods/tiff-ios/tiff-ios/TIFFImageWindow.h#L55">Show on GitHub</a> </div> </section> </div> </li> <li class="item"> <div> <code> <a name="/c:objc(cs)TIFFImageWindow(im)initWithFileDirectory:"></a> <a name="//apple_ref/objc/Method/-initWithFileDirectory:" class="dashAnchor"></a> <a class="token" href="#/c:objc(cs)TIFFImageWindow(im)initWithFileDirectory:">-initWithFileDirectory:<wbr></a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>Initialize, full image size</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Objective-C</p> <pre class="highlight objective_c"><code><span class="k">-</span> <span class="p">(</span><span class="n">instancetype</span><span class="p">)</span><span class="nf">initWithFileDirectory</span><span class="p">:(</span><span class="n"><a href="../Classes/TIFFFileDirectory.html">TIFFFileDirectory</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">fileDirectory</span><span class="p">;</span></code></pre> </div> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="nf">init</span><span class="o">!</span><span class="p">(</span><span class="nv">fileDirectory</span><span class="p">:</span> <span class="kt"><a href="../Classes/TIFFFileDirectory.html">TIFFFileDirectory</a></span><span class="o">!</span><span class="p">)</span></code></pre> </div> </div> <div> <h4>Parameters</h4> <table class="graybox"> <tbody> <tr> <td> <code> <em>fileDirectory</em> </code> </td> <td> <div> <p>file directory</p> </div> </td> </tr> </tbody> </table> </div> <div class="slightly-smaller"> <a href="https://github.com/ngageoint/geopackage-ios/tree/7.0.2/Pods/tiff-ios/tiff-ios/TIFFImageWindow.h#L62">Show on GitHub</a> </div> </section> </div> </li> </ul> </div> </section> </section> <section id="footer"> <p>&copy; 2021 <a class="link" href="https://www.nga.mil" target="_blank" rel="external noopener">NGA</a>. All rights reserved. (Last updated: 2021-12-16)</p> <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external noopener">jazzy ♪♫ v0.14.1</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external noopener">Realm</a> project.</p> </section> </article> </div> </body> </html>
ngageoint/geopackage-ios
docs/docs/api/docsets/geopackage-ios.docset/Contents/Resources/Documents/Classes/TIFFImageWindow.html
HTML
mit
263,689
require 'spec_helper' describe Hutch::Consumer do around(:each) do |example| isolate_constants do example.run end end let(:simple_consumer) do unless defined? SimpleConsumer class SimpleConsumer include Hutch::Consumer consume 'hutch.test1' end end SimpleConsumer end let(:complex_consumer) do unless defined? ComplexConsumer class ComplexConsumer include Hutch::Consumer consume 'hutch.test1', 'hutch.test2' end end ComplexConsumer end describe 'module inclusion' do it 'registers the class as a consumer' do expect(Hutch).to receive(:register_consumer) do |klass| expect(klass).to eq(simple_consumer) end simple_consumer end end describe '.consume' do it 'saves the routing key to the consumer' do expect(simple_consumer.routing_keys).to include 'hutch.test1' end context 'with multiple routing keys' do it 'registers the class once for each routing key' do expect(complex_consumer.routing_keys).to include 'hutch.test1' expect(complex_consumer.routing_keys).to include 'hutch.test2' end end context 'when given the same routing key multiple times' do subject { simple_consumer.routing_keys } before { simple_consumer.consume 'hutch.test1' } describe '#length' do subject { super().length } it { is_expected.to eq(1)} end end end describe '.queue_name' do it 'overrides the queue name' do end end describe '.get_queue_name' do context 'when queue name has been set explicitly' do it 'returns the give queue name' do class Foo include Hutch::Consumer queue_name "bar" end expect(Foo.get_queue_name).to eq("bar") end end context 'when no queue name has been set' do it 'replaces module separators with colons' do module Foo class Bar include Hutch::Consumer end end expect(Foo::Bar.get_queue_name).to eq('foo:bar') end it 'converts camelcase class names to snake case' do class FooBarBAZ include Hutch::Consumer end expect(FooBarBAZ.get_queue_name).to eq('foo_bar_baz') end end end end
reevoo/hutch
spec/hutch/consumer_spec.rb
Ruby
mit
2,360
// Copyright 2015 go-smpp authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package smpptest import ( "crypto/tls" "errors" "fmt" "io" "log" "net" "sync" "github.com/fiorix/go-smpp/smpp/pdu" "github.com/fiorix/go-smpp/smpp/pdu/pdufield" ) // Default settings. var ( DefaultUser = "client" DefaultPasswd = "secret" DefaultSystemID = "smpptest" ) // HandlerFunc is the signature of a function passed to Server instances, // that is called when client PDU messages arrive. type HandlerFunc func(c Conn, m pdu.Body) // Server is an SMPP server for testing purposes. By default it authenticate // clients with the configured credentials, and echoes any other PDUs // back to the client. type Server struct { User string Passwd string TLS *tls.Config Handler HandlerFunc conns []Conn mu sync.Mutex l net.Listener } // NewServer creates and initializes a new Server. Callers are supposed // to call Close on that server later. func NewServer() *Server { s := NewUnstartedServer() s.Start() return s } // NewUnstartedServer creates a new Server with default settings, and // does not start it. Callers are supposed to call Start and Close later. func NewUnstartedServer() *Server { return &Server{ User: DefaultUser, Passwd: DefaultPasswd, Handler: EchoHandler, l: newLocalListener(), } } func newLocalListener() net.Listener { l, err := net.Listen("tcp", "127.0.0.1:0") if err == nil { return l } if l, err = net.Listen("tcp6", "[::1]:0"); err != nil { panic(fmt.Sprintf("smpptest: failed to listen on a port: %v", err)) } return l } // Start starts the server. func (srv *Server) Start() { go srv.Serve() } // Addr returns the local address of the server, or an empty string // if the server hasn't been started yet. func (srv *Server) Addr() string { if srv.l == nil { return "" } return srv.l.Addr().String() } // Close stops the server, causing the accept loop to break out. func (srv *Server) Close() { if srv.l == nil { panic("smpptest: server is not started") } srv.l.Close() } // Serve accepts new clients and handle them by authenticating the // first PDU, expected to be a Bind PDU, then echoing all other PDUs. func (srv *Server) Serve() { for { cli, err := srv.l.Accept() if err != nil { break // on srv.l.Close } c := newConn(cli) srv.conns = append(srv.conns, c) go srv.handle(c) } } // BroadcastMessage broadcasts a test PDU to the all bound clients func (srv *Server) BroadcastMessage(p pdu.Body) { for i := range srv.conns { srv.conns[i].Write(p) } } // handle new clients. func (srv *Server) handle(c *conn) { defer c.Close() if err := srv.auth(c); err != nil { if err != io.EOF { log.Println("smpptest: server auth failed:", err) } return } for { p, err := c.Read() if err != nil { if err != io.EOF { log.Println("smpptest: read failed:", err) } break } srv.Handler(c, p) } } // auth authenticate new clients. func (srv *Server) auth(c *conn) error { p, err := c.Read() if err != nil { return err } var resp pdu.Body switch p.Header().ID { case pdu.BindTransmitterID: resp = pdu.NewBindTransmitterResp() case pdu.BindReceiverID: resp = pdu.NewBindReceiverResp() case pdu.BindTransceiverID: resp = pdu.NewBindTransceiverResp() default: return errors.New("unexpected pdu, want bind") } f := p.Fields() user := f[pdufield.SystemID] passwd := f[pdufield.Password] if user == nil || passwd == nil { return errors.New("malformed pdu, missing system_id/password") } if user.String() != srv.User { return errors.New("invalid user") } if passwd.String() != srv.Passwd { return errors.New("invalid passwd") } resp.Fields().Set(pdufield.SystemID, DefaultSystemID) return c.Write(resp) } // EchoHandler is the default Server HandlerFunc, and echoes back // any PDUs received. func EchoHandler(cli Conn, m pdu.Body) { // log.Printf("smpptest: echo PDU from %s: %#v", cli.RemoteAddr(), m) // // Real servers will reply with at least the same sequence number // from the request: // resp := pdu.NewSubmitSMResp() // resp.Header().Seq = m.Header().Seq // resp.Fields().Set(pdufield.MessageID, "1234") // cli.Write(resp) // // We just echo m back: cli.Write(m) }
fiorix/go-smpp
smpp/smpptest/server.go
GO
mit
4,366
<!DOCTYPE html> <html lang="en" ng-app="paymentDemoApp" id="top"> <head> <meta charset="utf-8"> <title>Angular directives based on Stripe's jQuery payment library</title> <meta name="description" content="AngularJS (Angular) native directives for Stripe's javascript payment library. Small footprint (~3kB gzipped!), no 3rd party JS dependencies (jQuery, etc.) required! Widgets: <% demoModules.forEach(function(module) { %><%= module.displayName %>, <% }); %>"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/<%= ngversion %>/angular.min.js"></script> <script src="angular-payment-tpls-<%= pkg.version%>.js"></script> <script src="assets/app.js"></script> <script src="assets/dropdownToggle.js"></script> <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/<%= bsversion %>/css/bootstrap.min.css"> <link rel="stylesheet" href="assets/demo.css"/> <link rel="author" href="https://github.com/seandesmond/angular-payment/graphs/contributors"> </head> <body class="ng-cloak" ng-controller="MainCtrl"> <header class="navbar navbar-default navbar-fixed-top" role="banner"> <div class="container"> <div class="navbar-header"> <button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".ap-navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a href="./" class="navbar-brand">Angular Payment</a> </div> <nav class="collapse navbar-collapse ap-navbar-collapse" role="navigation"> <ul class="nav navbar-nav"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Directives <b class="caret"></b></a> <ul class="dropdown-menu" role="menu"> <% demoModules.forEach(function(module) { %> <li><a ng-click="scrollTo('<%= module.name %>')" href="javascript:void(0);"><%= module.displayName %></a></li> <% }); %> </ul> </li> <li><a ng-click="scrollTo('getting_started')" href="javascript:void(0);">Getting started</a></li> </ul> </nav> </div> </header> <div class="ap-header" id="content"> <div class="container"> <h1>Angular Payment</h1> <p class="lead">Stripe's <strong><a href="https://github.com/stripe/jquery.payment">jquery.payment</a></strong> library converted to pure <strong><a href="http://angularjs.org">AngularJS</a></strong></p> <div class="btn-group"> <a class="btn btn-default" href="https://github.com/seandesmond/angular-payment"><i class="icon-github"></i> Code on Github</a> <a class="btn btn-primary" href="https://github.com/seandesmond/angular-payment/tree/gh-pages"> <i class="icon-download-alt icon-white"></i> Download <small>(<%= pkg.version%>)</small> </a> </div> </div> </div> <div class="bs-docs-social"> <div class="container"> <ul class="bs-docs-social-buttons"> <li> <iframe src="http://ghbtns.com/github-btn.html?user=seandesmond&repo=angular-payment&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe> </li> <li> <iframe src="http://ghbtns.com/github-btn.html?user=seandesmond&repo=angular-payment&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe> </li> </ul> </div> </div> <div class="container"> <div class="row"> <div class="col-md-12"> <section id="getting_started"> <div class="page-header"> <h1>Getting started</h1> </div> <h3>Dependencies</h3> <p> This repository contains a set of <strong>native AngularJS directives</strong> based on Stripe's jquery.payment library. As a result no dependencies (jQuery or the existing library) are required. The <strong>only required dependency</strong> is: </p> <ul> <li>AngularJS (minimal version 1.0.4 or 1.1.2)</li> </ul> <h3>Files to download</h3> <p> Build files for all directives are distributed in several flavours: minified for production usage, un-minified for development, with or without templates. All the options are described and can be <a href="https://github.com/seandesmond/angular-payment/tree/gh-pages">downloaded from here</a>. </p> <p>The good news is that the overall size of a download is very small: &lt;9kB for all directives (~3kB with gzip compression!)</p> <h3>Installation</h3> <p>As soon as you've got all the files downloaded and included in your page you just need to declare a dependency on the <code>payment</code> <a href="http://docs.angularjs.org/guide/module">module</a>:<br> <code>angular.module('myModule', ['payment']);</code> </p> </section> <% demoModules.forEach(function(module) { %> <section id="<%= module.name %>"> <div class="page-header"> <h1><%= module.displayName %> <small> (<a target="_blank" href="https://github.com/seandesmond/angular-payment/tree/master/src/<%= module.name %>">payment.<%= module.name %></a>) </small> </h1> </div> <div class="row"> <div class="col-md-6"> <%= module.docs.html %> </div> <div class="col-md-6"> <%= module.docs.md %> </div> </div> <script><%= module.docs.js %></script> </section> <% }); %> </div> </div> </div> <footer class="footer"> <div class="container"> <p>Code licensed under <a href="https://github.com/seandesmond/angular-payment/blob/master/LICENSE">MIT License</a>. </p> <p><a href="https://github.com/seandesmond/angular-payment/issues?state=open">Issues</a></p> </div> </footer> </body> </html>
evandroguedes/angular-payment
misc/demo/index.html
HTML
mit
7,047
<?php return [ /* |-------------------------------------------------------------------------- | Menus Language Lines |-------------------------------------------------------------------------- | | The following language lines are used in menu items throughout the system. | Regardless where it is placed, a menu item can be listed here so it is easily | found in a intuitive way. | */ 'active_users' => 'Aktiva användare', 'banned_users' => 'Bannade användare', 'create_permission' => 'Skapa rättighet', 'create_role' => 'Skapa roll', 'create_user' => 'Skapa användare', 'dashboard' => 'Huvudpanelen', 'deactivated_users' => 'Avaktiverade användare', 'deleted_users' => 'Raderade användare', 'edit_permission' => 'Redigera rättigheter', 'edit_role' => 'Redigera roll', 'edit_user' => 'Redigera användare', 'general' => 'Allmännt', 'header_buttons' => [ 'permissions' => [ 'all' => 'Alla rättigheter', 'button' => 'Rättigheter', ], 'roles' => [ 'all' => 'Alla roller', 'button' => 'Roller', ], 'users' => [ 'all' => 'Alla användare', 'button' => 'Användare', ], ], 'log-viewer' => [ 'main' => 'Loggöversikt', 'dashboard' => 'Huvudpanelen', 'logs' => 'Loggar', ], 'permission_management' => 'Hantera rättigheter', 'role_management' => 'Hantera roller', 'user_management' => 'Hantera användare', 'language-picker' => [ 'language' => 'Språk', 'langs' => [ 'en' => 'Engelska', 'it' => 'Italienska', 'pt-BR' => 'Portugisiska (Brasilien)', 'ru' => 'Ryska', 'sv' => 'Svenska', ], ], ];
Lphmedia/youbloom
resources/lang/sv/menus.php
PHP
mit
1,851
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; using System.Globalization; using System.Security.Cryptography; using System.Text; namespace Microsoft.Common.Core { public static class StringExtensions { public static bool EqualsOrdinal(this string s, string other) { return string.Equals(s, other, StringComparison.Ordinal); } public static bool EqualsIgnoreCase(this string s, string other) { return string.Equals(s, other, StringComparison.OrdinalIgnoreCase); } public static bool StartsWithIgnoreCase(this string s, string prefix) { return s.StartsWith(prefix, StringComparison.OrdinalIgnoreCase); } public static bool StartsWithOrdinal(this string s, string prefix) { return s.StartsWith(prefix, StringComparison.Ordinal); } public static bool EndsWithIgnoreCase(this string s, string suffix) { return s.EndsWith(suffix, StringComparison.OrdinalIgnoreCase); } public static bool EndsWithOrdinal(this string s, string suffix) { return s.EndsWith(suffix, StringComparison.Ordinal); } public static bool EndsWith(this string s, char ch) { return s.Length > 0 && s[s.Length-1] == ch; } public static int IndexOfIgnoreCase(this string s, string searchFor) { return s.IndexOf(searchFor, StringComparison.OrdinalIgnoreCase); } public static int IndexOfIgnoreCase(this string s, string searchFor, int startIndex) { return s.IndexOf(searchFor, startIndex, StringComparison.OrdinalIgnoreCase); } public static int IndexOfOrdinal(this string s, string searchFor) { return s.IndexOf(searchFor, StringComparison.Ordinal); } public static int LastIndexOfIgnoreCase(this string s, string searchFor) { return s.LastIndexOf(searchFor, StringComparison.OrdinalIgnoreCase); } public static int LastIndexOfIgnoreCase(this string s, string searchFor, int startIndex) { return s.LastIndexOf(searchFor, startIndex, StringComparison.OrdinalIgnoreCase); } public static bool ContainsIgnoreCase(this string s, string prefix) { return s.IndexOf(prefix, StringComparison.OrdinalIgnoreCase) >= 0; } public static string TrimQuotes(this string s) { if (s.Length > 0) { char quote = s[0]; if (quote == '\'' || quote == '\"') { if (s.Length > 1 && s[s.Length - 1] == quote) { return s.Substring(1, s.Length - 2); } return s.Substring(1); } } return s; } public static string Replace(this string s, string oldValue, string newValue, int start, int length) { if (string.IsNullOrEmpty(oldValue)) { throw new ArgumentException("oldValue can't be null or empty string", nameof(oldValue)); } if (string.IsNullOrEmpty(s)) { return s; } if (start < 0) { start = 0; } if (length < 0) { length = 0; } return new StringBuilder(s) .Replace(oldValue, newValue, start, length) .ToString(); } public static string RemoveWhiteSpaceLines(this string text) { if (string.IsNullOrWhiteSpace(text)) { return string.Empty; } var sb = new StringBuilder(text); var lineBreakIndex = sb.Length; var isWhiteSpaceOnly = true; for (var i = sb.Length - 1; i >= 0; i--) { var ch = sb[i]; if (ch == '\r' || ch == '\n') { if (ch == '\n' && i > 0 && sb[i - 1] == '\r') { i--; } if (isWhiteSpaceOnly) { sb.Remove(i, lineBreakIndex - i); } else if (i == 0) { var rn = sb.Length > 1 && sb[0] == '\r' && sb[1] == '\n'; sb.Remove(0, rn ? 2 : 1); break; } lineBreakIndex = i; isWhiteSpaceOnly = true; } isWhiteSpaceOnly = isWhiteSpaceOnly && char.IsWhiteSpace(ch); } return sb.ToString(); } public static int SubstringToHex(this string s, int position, int count) { int mul = 1 << (4 * (count - 1)); int result = 0; for (int i = 0; i < count; i++) { char ch = s[position + i]; int z; if (ch >= '0' && ch <= '9') { z = ch - '0'; } else if (ch >= 'a' && ch <= 'f') { z = ch - 'a' + 10; } else if (ch >= 'A' && ch <= 'F') { z = ch - 'A' + 10; } else { return -1; } result += z * mul; mul >>= 4; } return result; } /// <summary> /// Given a string (typically text from a file) determines /// which line break sequence should be used when editing or /// formatting the file. If no line breaks found, LF is returned. /// </summary> public static string GetDefaultLineBreakSequence(this string s) { int i = s.IndexOfAny(CharExtensions.LineBreakChars); if (i >= 0) { if (s[i] == '\n') { if (i + 1 < s.Length && s[i + 1] == '\r') { return "\n\r"; } return "\n"; } if (s[i] == '\r') { if (i + 1 < s.Length && s[i + 1] == '\n') { return "\r\n"; } return "\r"; } } return "\n"; // default } public static string GetMD5Hash(this string input) { SHA512 sha = SHA512.Create(); byte[] inputBytes = Encoding.Unicode.GetBytes(input); byte[] hash = sha.ComputeHash(inputBytes); return BitConverter.ToString(hash); } public static string FormatInvariant(this string format, object arg) => string.Format(CultureInfo.InvariantCulture, format, arg); public static string FormatInvariant(this string format, params object[] args) => string.Format(CultureInfo.InvariantCulture, format, args); public static long ToLongOrDefault(this string value) { long ret; long.TryParse(value, out ret); return ret; } public static DateTime ToDateTimeOrDefault(this string value) { DateTime ret; DateTime.TryParse(value, out ret); return ret; } } }
Vbif/VisualRust
Microsoft.Common.Core/Extensions/StringExtensions.cs
C#
mit
7,259
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Class: Border</title> <script src="scripts/prettify/prettify.js"> </script> <script src="scripts/prettify/lang-css.js"> </script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> </head> <body> <div id="main"> <h1 class="page-title">Class: Border</h1> <section> <header> <h2> Border </h2> </header> <article> <div class="container-overview"> <dt> <h4 class="name" id="Border"><span class="type-signature"></span>new Border<span class="signature">()</span><span class="type-signature"></span></h4> </dt> <dd> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="elxml.js.html">elxml.js</a>, <a href="elxml.js.html#line441">line 441</a> </li></ul></dd> </dl> </dd> </div> </article> </section> </div> <nav> <h2><a href="index.html">Index</a></h2><h3>Classes</h3><ul><li><a href="Border.html">Border</a></li><li><a href="BorderPr.html">BorderPr</a></li><li><a href="Cell.html">Cell</a></li><li><a href="CellStyle.html">CellStyle</a></li><li><a href="Color.html">Color</a></li><li><a href="NumberFormat.html">NumberFormat</a></li><li><a href="PatternFill.html">PatternFill</a></li><li><a href="Row.html">Row</a></li><li><a href="Sheet.html">Sheet</a></li><li><a href="Workbook.html">Workbook</a></li></ul><h3>Global</h3><ul><li><a href="global.html#BORDER_STYLE_DASH_DOT">BORDER_STYLE_DASH_DOT</a></li><li><a href="global.html#BORDER_STYLE_DASH_DOT_DOT">BORDER_STYLE_DASH_DOT_DOT</a></li><li><a href="global.html#BORDER_STYLE_DASHED">BORDER_STYLE_DASHED</a></li><li><a href="global.html#BORDER_STYLE_DOTTED">BORDER_STYLE_DOTTED</a></li><li><a href="global.html#BORDER_STYLE_DOUBLE">BORDER_STYLE_DOUBLE</a></li><li><a href="global.html#BORDER_STYLE_HAIR">BORDER_STYLE_HAIR</a></li><li><a href="global.html#BORDER_STYLE_MEDIUM">BORDER_STYLE_MEDIUM</a></li><li><a href="global.html#BORDER_STYLE_MEDIUM_DASH_DOT">BORDER_STYLE_MEDIUM_DASH_DOT</a></li><li><a href="global.html#BORDER_STYLE_MEDIUM_DASH_DOT_DOT">BORDER_STYLE_MEDIUM_DASH_DOT_DOT</a></li><li><a href="global.html#BORDER_STYLE_MEDIUM_DASHED">BORDER_STYLE_MEDIUM_DASHED</a></li><li><a href="global.html#BORDER_STYLE_NONE">BORDER_STYLE_NONE</a></li><li><a href="global.html#BORDER_STYLE_SLANT_DASH_DOT">BORDER_STYLE_SLANT_DASH_DOT</a></li><li><a href="global.html#BORDER_STYLE_THICK">BORDER_STYLE_THICK</a></li><li><a href="global.html#BORDER_STYLE_THIN">BORDER_STYLE_THIN</a></li><li><a href="global.html#CELL_ALIGNMENT_H_CENTER">CELL_ALIGNMENT_H_CENTER</a></li><li><a href="global.html#CELL_ALIGNMENT_H_CENTER_CONT">CELL_ALIGNMENT_H_CENTER_CONT</a></li><li><a href="global.html#CELL_ALIGNMENT_H_DISTRIBUTED">CELL_ALIGNMENT_H_DISTRIBUTED</a></li><li><a href="global.html#CELL_ALIGNMENT_H_FILL">CELL_ALIGNMENT_H_FILL</a></li><li><a href="global.html#CELL_ALIGNMENT_H_JUSTIFY">CELL_ALIGNMENT_H_JUSTIFY</a></li><li><a href="global.html#CELL_ALIGNMENT_H_LEFT">CELL_ALIGNMENT_H_LEFT</a></li><li><a href="global.html#CELL_ALIGNMENT_H_RIGHT">CELL_ALIGNMENT_H_RIGHT</a></li><li><a href="global.html#CELL_ALIGNMENT_V_BOTTOM">CELL_ALIGNMENT_V_BOTTOM</a></li><li><a href="global.html#CELL_ALIGNMENT_V_CENTER">CELL_ALIGNMENT_V_CENTER</a></li><li><a href="global.html#CELL_ALIGNMENT_V_DISTRIBUTED">CELL_ALIGNMENT_V_DISTRIBUTED</a></li><li><a href="global.html#CELL_ALIGNMENT_V_JUSTIFY">CELL_ALIGNMENT_V_JUSTIFY</a></li><li><a href="global.html#CELL_ALIGNMENT_V_TOP">CELL_ALIGNMENT_V_TOP</a></li><li><a href="global.html#CELL_TYPE_BOOLEAN">CELL_TYPE_BOOLEAN</a></li><li><a href="global.html#CELL_TYPE_DATE">CELL_TYPE_DATE</a></li><li><a href="global.html#CELL_TYPE_ERROR">CELL_TYPE_ERROR</a></li><li><a href="global.html#CELL_TYPE_FORMULAR">CELL_TYPE_FORMULAR</a></li><li><a href="global.html#CELL_TYPE_NUMBER">CELL_TYPE_NUMBER</a></li><li><a href="global.html#CELL_TYPE_STRING">CELL_TYPE_STRING</a></li><li><a href="global.html#createWorkbook">createWorkbook</a></li><li><a href="global.html#PATTERN_TYPE_DARK_DOWN">PATTERN_TYPE_DARK_DOWN</a></li><li><a href="global.html#PATTERN_TYPE_DARK_GRAY">PATTERN_TYPE_DARK_GRAY</a></li><li><a href="global.html#PATTERN_TYPE_DARK_GRID">PATTERN_TYPE_DARK_GRID</a></li><li><a href="global.html#PATTERN_TYPE_DARK_HORIZONTAL">PATTERN_TYPE_DARK_HORIZONTAL</a></li><li><a href="global.html#PATTERN_TYPE_DARK_TRELLIS">PATTERN_TYPE_DARK_TRELLIS</a></li><li><a href="global.html#PATTERN_TYPE_DARK_VERTICAL">PATTERN_TYPE_DARK_VERTICAL</a></li><li><a href="global.html#PATTERN_TYPE_GRAY125">PATTERN_TYPE_GRAY125</a></li><li><a href="global.html#PATTERN_TYPE_GRAY0625">PATTERN_TYPE_GRAY0625</a></li><li><a href="global.html#PATTERN_TYPE_LIGHT_DOWN">PATTERN_TYPE_LIGHT_DOWN</a></li><li><a href="global.html#PATTERN_TYPE_LIGHT_GREY">PATTERN_TYPE_LIGHT_GREY</a></li><li><a href="global.html#PATTERN_TYPE_LIGHT_GRID">PATTERN_TYPE_LIGHT_GRID</a></li><li><a href="global.html#PATTERN_TYPE_LIGHT_HORIZONTAL">PATTERN_TYPE_LIGHT_HORIZONTAL</a></li><li><a href="global.html#PATTERN_TYPE_LIGHT_TRELLIS">PATTERN_TYPE_LIGHT_TRELLIS</a></li><li><a href="global.html#PATTERN_TYPE_LIGHT_UP">PATTERN_TYPE_LIGHT_UP</a></li><li><a href="global.html#PATTERN_TYPE_LIGHT_VERTICAL">PATTERN_TYPE_LIGHT_VERTICAL</a></li><li><a href="global.html#PATTERN_TYPE_MEDIUM_GRAY">PATTERN_TYPE_MEDIUM_GRAY</a></li><li><a href="global.html#PATTERN_TYPE_NONE">PATTERN_TYPE_NONE</a></li><li><a href="global.html#PATTERN_TYPE_SOLID">PATTERN_TYPE_SOLID</a></li></ul> </nav> <br clear="both"> <footer> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha5</a> on Sun Mar 23 2014 12:53:44 GMT+0100 (Mitteleuropäische Zeit) </footer> <script> prettyPrint(); </script> <script src="scripts/linenumber.js"> </script> </body> </html>
dunkelrot/elxml
out/Border.html
HTML
mit
6,289
from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.button import Button from kivy.lang import Builder from kivy.properties import StringProperty from plyer import sms Builder.load_string(''' <SmsInterface>: orientation: 'vertical' BoxLayout: size_hint_y: None height: sp(30) Label: text: 'Recipient:' TextInput: id: recipient multiline: False on_text_validate: message.focus = True BoxLayout: Label: text: 'Message:' TextInput: id: message IntentButton: sms_recipient: recipient.text sms_message: message.text text: 'Send SMS' size_hint_y: None height: sp(40) on_release: self.send_sms() ''') class SmsInterface(BoxLayout): pass class IntentButton(Button): sms_recipient = StringProperty() sms_message = StringProperty() def send_sms(self, *args): sms.send(recipient=self.sms_recipient, message=self.sms_message) class SmsApp(App): def build(self): return SmsInterface() def on_pause(self): return True if __name__ == "__main__": SmsApp().run()
KeyWeeUsr/plyer
examples/sms/main.py
Python
mit
1,222
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <!-- Mirrored from myadmin-html.axiomthemes.com/assets/templates/email/ping.html by HTTrack Website Copier/3.x [XR&CO'2013], Fri, 22 Jul 2016 06:34:14 GMT --> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>ThemeREX Email Template - Ping</title> <style type="text/css"> /* Take care of image borders and formatting, client hacks */ img { max-width: 600px; outline: none; text-decoration: none; -ms-interpolation-mode: bicubic;} a img { border: none; } table { border-collapse: collapse !important;} #outlook a { padding:0; } .ReadMsgBody { width: 100%; } .ExternalClass { width: 100%; } .backgroundTable { margin: 0 auto; padding: 0; width: 100% !important; } table td { border-collapse: collapse; } .ExternalClass * { line-height: 115%; } .container-for-gmail-android { min-width: 600px; } /* General styling */ * { font-family: 'Ubuntu', Arial, sans-serif; } body { -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; width: 100% !important; margin: 0 !important; height: 100%; color: #7f828f; } td { font-family: 'Ubuntu', Arial, sans-serif; font-size: 14px; color: #7f828f; text-align: center; line-height: 24px; } a { color: #7f828f; text-decoration: none !important; } .pull-left { text-align: left; } .pull-right { text-align: right; } .header-lg, .header-md, .header-sm { font-size: 36px; font-weight: 700; line-height: normal; padding: 25px 0 0; color: #4d4d4d; } .header-md { font-size: 24px; } .header-sm { color: #2a2f43; padding: 5px 0 0; margin-bottom: 3px; font-size: 22px; line-height: 24px; display: block; } .price { color: #f5393d; font: 700 32px/36px 'Ubuntu'; padding: 12px 0 10px; } .content-padding { padding: 40px 0 40px; } .content-top { background: #67d3e0 url('img/top-bg.jpg') center center no-repeat; /*-webkit-border-radius: 3px 3px 0 0; border-radius: 3px 3px 0 0;*/ color: #fff; padding: 55px 0 65px; } .content-top .btn a { background-color: #fff; /*border-bottom: 3px solid #e43539; -webkit-border-radius: 3px; border-radius: 3px;*/ color: #2a2f43; display: inline-block; font:700 16px/18px 'Ubuntu'; margin-top: 66px; padding: 17px 35px 16px; text-align: center; /*text-transform: uppercase;*/ } .content-top .btn a:hover { background-color: #F1F1F1; } .content-top .free-text, .content-top .header-lg { color: #fff; font-family: 'Ubuntu'; } .mobile-header-padding-right { width: 290px; text-align: right; padding-left: 10px; } .mobile-header-padding-left { width: 310px; text-align: left; padding-left: 10px; padding-bottom: 8px; } .free-text { width: 100% !important; padding: 10px 35px 0px; } .fs15 {font-size: 15px;} .fw300{font-weight: 300;} .lsn025 {letter-spacing: -0.25px;} .block-rounded { /*border-radius: 5px;*/ /*box-shadow: 1px 2px 0 rgba(0,0,0,0.15);*/ vertical-align: top; } .button { padding: 30px 0; } .info-block { padding: 0 15px 0 42px; /*width: 310px;*/ } /*.block-rounded { background: #ffffff; width: 310px; }*/ .info-block > table > tbody > tr > td > table > tbody > tr{ border: 2px solid #ebebeb; } .info-block > table > tbody > tr > td > table > tbody > tr + tr{ border-top: none; } .info-img { width: 305px; /*border-radius: 5px 5px 0 0;*/ } .force-width-gmail { min-width:600px; height: 0px !important; line-height: 1px !important; font-size: 1px !important; } .button-width { /*-webkit-border-radius: 3px; border-radius: 3px;*/ font: 700 0/57px 'Ubuntu'; display: block; height: 57px; width: 57px; background: #67d3e0 url('img/btn-bg.png') center center no-repeat; color: #67d3e0; margin: -29px auto 0; z-index: 15; position: relative; } .button-width:hover {background-color: #5bc7d4} .footer { background-color: #2a2f43; /*border-radius: 0 0 3px 3px;*/ height: 100px; } .footer-content { padding: 45px 0; line-height:29px; color: #fff; } </style> <style type="text/css" media="screen"> @import url(https://fonts.googleapis.com/css?family=Ubuntu:400,300,300italic,400italic,500,500italic,700,700italic); </style> <style type="text/css" media="screen"> @media screen { /* Thanks Outlook 2013! http://goo.gl/XLxpyl */ * { font-family: 'Ubuntu', 'Arial', 'sans-serif' !important; } } </style> <style type="text/css" media="only screen and (max-width: 480px)"> /* Mobile styles */ @media only screen and (max-width: 480px) { table[class*="container-for-gmail-android"] { min-width: 290px !important; width: 100% !important; } table[class="w320"] { width: 320px !important; } img[class="force-width-gmail"] { display: none !important; width: 0 !important; height: 0 !important; } a[class="button-width"], a[class="button-mobile"] { width: 248px !important; } td[class*="mobile-header-padding-left"] { width: 160px !important; padding-left: 0 !important; } td[class*="mobile-header-padding-right"] { width: 160px !important; padding-right: 0 !important; } td[class="header-lg"] { font-size: 24px !important; padding-bottom: 5px !important; } td[class="header-md"] { font-size: 18px !important; padding-bottom: 5px !important; } td[class="content-padding"] { padding: 5px 0 30px !important; } td[class="button"] { padding: 5px !important; } td[class*="free-text"] { padding: 10px 18px 30px !important; } td[class="info-block"] { display: block !important; width: 280px !important; padding-bottom: 40px !important; } td[class="info-img"], img[class="info-img"] { width: 278px !important; } } </style> </head> <body bgcolor="#f7f7f7"> <table align="center" cellpadding="0" cellspacing="0" class="container-for-gmail-android" width="100%"> <tr> <td align="center" valign="top" width="100%" style="background-color: #f7f7f7;" class="content-top"> <center> <table cellspacing="0" cellpadding="0" width="600" class="w320"> <tr> <td class="header-lg"> Your account was updated! </td> </tr> <tr> <td class="free-text"> Your password was changed. If you'd didn't change your password don't hesitate to contact us via live chat! <a href="#" style="color: #FFC0C0;">Live Chat</a>. </td> </tr> <tr> <td class="btn"> <a href="http://">My account</a> </td> </tr> </table> </center> </td> </tr> <tr> <td align="center" valign="top" width="100%" style="background-color: #fcfcfc;"> <center> <table cellpadding="0" cellspacing="0" width="600" class="w320"> <tr> <td class="content-padding"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td class="header-sm"> Don't miss products on sale! </td> </tr> </table> </td> </tr> <tr> <td style="padding-bottom: 60px;"> <table cellpadding="0" cellspacing="0" width="100%" style="border-collapse:separate !important;"> <tr> <td class="info-block"> <table cellpadding="0" cellspacing="0" width="100%" style="border-collapse:separate !important;"> <tr> <td class="block-rounded"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td class="info-img"> <a href="#"><img class="info-img" src="img/prod2.jpg" alt="img" /></a> </td> </tr> <tr> <td style="padding: 28px 15px 15px;"> <table cellspacing="0" cellpadding="0" width="100%"> <tr> <td style="text-align:left; width:155px;text-align: center"> <a href="#"><span class="header-sm">Sample Product</span></a> Best Price! </td> </tr> <tr> <td class="price">$169.00</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> <td class="info-block"> <table cellpadding="0" cellspacing="0" width="100%" style="border-collapse:separate !important;"> <tr> <td class="block-rounded"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td class="info-img"> <a href="#"><img class="info-img" src="img/prod1.jpg" alt="img" /></a> </td> </tr> <tr> <td style="padding: 28px 15px 15px;"> <table cellspacing="0" cellpadding="0" width="100%"> <tr> <td style="text-align:left; width:155px;text-align: center"> <a href="#"><span class="header-sm">Second Sample</span></a> Best Price! </td> </tr> <tr> <td class="price">$169.00</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </center> </td> </tr> <tr> <td align="center" valign="top" width="100%" class="footer"> <center> <table cellspacing="0" cellpadding="0" width="600" class="w320"> <tr> <td class="footer-content"> <img src="img/footer-1.png" alt="" style="vertical-align: middle;"/>176 W street name, New York, NY 10014<img src="img/footer-2.png" alt="" style="vertical-align: middle;"/>+1(800)123-4566 </td> </tr> </table> </center> </td> </tr> </table> </body> <!-- Mirrored from myadmin-html.axiomthemes.com/assets/templates/email/ping.html by HTTrack Website Copier/3.x [XR&CO'2013], Fri, 22 Jul 2016 06:34:14 GMT --> </html>
vivekdizzal/beamon-boss
assets/templates/email/ping.html
HTML
mit
14,285
"use strict";var __extends=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}}();Object.defineProperty(exports,"__esModule",{value:!0});var concat_util=require("../ops/concat_util"),conv_util=require("../ops/conv_util"),tensor_1=require("../tensor"),util=require("../util"),initializers_1=require("./initializers"),GraphLayers=function(){function t(t){this.g=t}return t.prototype.dense=function(t,e,o,n,a,s,r){void 0===n&&(n=null),void 0===a&&(a=!0),void 0===s&&(s=new initializers_1.VarianceScalingInitializer),void 0===r&&(r=new initializers_1.ZerosInitializer);var i,u=this.g.variable(t+"-weights",s.initialize([e.shape[0],o],e.shape[0],o)),h=this.g.matmul(e,u);return a&&(i=this.g.variable(t+"-bias",r.initialize([o],e.shape[0],o)),h=this.g.add(h,i)),null!=n&&(h=n(h)),h},t}();exports.GraphLayers=GraphLayers;var Graph=function(){function t(){this.nodes=[],this.layers=new GraphLayers(this)}return t.prototype.variable=function(t,e){return this.addNodeAndReturnOutput(new VariableNode(this,t,e))},t.prototype.placeholder=function(t,e){return this.addNodeAndReturnOutput(new PlaceholderNode(this,t,e))},t.prototype.constant=function(t){if("number"==typeof t)n=tensor_1.Scalar.new(t);else if(t instanceof tensor_1.Tensor)n=t;else{if(!(t instanceof Array))throw new Error("unimplemented constant type.");var e=util.flatten(t),o=new Float32Array(e),n=tensor_1.Tensor.make(util.inferShape(t),{values:o})}return this.addNodeAndReturnOutput(new ConstantNode(this,n))},t.prototype.reshape=function(t,e){return this.addNodeAndReturnOutput(new ReshapeNode(this,"Reshape",t,e))},t.prototype.fusedLinearCombination=function(t,e,o,n){return this.addNodeAndReturnOutput(new FusedLinearCombinationNode(this,t,e,o,n))},t.prototype.add=function(t,e){return this.addNodeAndReturnOutput(new AddNode(this,t,e))},t.prototype.subtract=function(t,e){return this.addNodeAndReturnOutput(new SubtractNode(this,t,e))},t.prototype.multiply=function(t,e){return this.addNodeAndReturnOutput(new MultiplyNode(this,t,e))},t.prototype.divide=function(t,e){return this.addNodeAndReturnOutput(new DivideNode(this,t,e))},t.prototype.reduceSum=function(t){return this.addNodeAndReturnOutput(new ReduceSumNode(this,t))},t.prototype.concat1d=function(t,e){return this.addNodeAndReturnOutput(new Concat1DNode(this,t,e))},t.prototype.concat2d=function(t,e,o){return this.addNodeAndReturnOutput(new Concat2DNode(this,t,e,o))},t.prototype.concat3d=function(t,e,o){return this.addNodeAndReturnOutput(new Concat3DNode(this,t,e,o))},t.prototype.concat4d=function(t,e,o){return this.addNodeAndReturnOutput(new Concat4DNode(this,t,e,o))},t.prototype.matmul=function(t,e){return this.addNodeAndReturnOutput(new MatMulNode(this,t,e))},t.prototype.conv2d=function(t,e,o,n,a,s,r){return void 0===s&&(s=1),this.addNodeAndReturnOutput(new Convolution2DNode(this,t,e,o,n,a,s,r))},t.prototype.maxPool=function(t,e,o,n){return void 0===o&&(o=1),this.addNodeAndReturnOutput(new MaxPoolNode(this,t,e,o,n))},t.prototype.exp=function(t){return this.addNodeAndReturnOutput(new ExpNode(this,t))},t.prototype.log=function(t){return this.addNodeAndReturnOutput(new LogNode(this,t))},t.prototype.relu=function(t){return this.addNodeAndReturnOutput(new ReLUNode(this,t))},t.prototype.leakyRelu=function(t,e){return this.addNodeAndReturnOutput(new LeakyReLUNode(this,t,e))},t.prototype.prelu=function(t,e){return this.addNodeAndReturnOutput(new PReLUNode(this,t,e))},t.prototype.elu=function(t){return this.addNodeAndReturnOutput(new EluNode(this,t))},t.prototype.tanh=function(t){return this.addNodeAndReturnOutput(new TanHNode(this,t))},t.prototype.sigmoid=function(t){return this.addNodeAndReturnOutput(new SigmoidNode(this,t))},t.prototype.square=function(t){return this.addNodeAndReturnOutput(new SquareNode(this,t))},t.prototype.softmax=function(t){return this.addNodeAndReturnOutput(new SoftmaxNode(this,t))},t.prototype.softmaxCrossEntropyCost=function(t,e){return this.addNodeAndReturnOutput(new SoftmaxCrossEntropyCostNode(this,t,e))},t.prototype.meanSquaredCost=function(t,e){return this.addNodeAndReturnOutput(new MeanSquaredCostNode(this,t,e))},t.prototype.argmax=function(t){return this.addNodeAndReturnOutput(new ArgMaxNode(this,t))},t.prototype.argmaxEquals=function(t,e){return this.addNodeAndReturnOutput(new ArgMaxEqualsNode(this,t,e))},t.prototype.addNodeAndReturnOutput=function(t){return this.nodes.push(t),t.validate(),t.output},t.prototype.getNodes=function(){return this.nodes},t}();exports.Graph=Graph;var SymbolicTensor=function(o){function n(t){var e=o.call(this,[],"float32")||this;return e.shape=t,e.id=n.nextID++,e}return __extends(n,o),n.nextID=0,n}(tensor_1.Tensor);exports.SymbolicTensor=SymbolicTensor;var Node=function(){function a(t,e,o,n){this.graph=t,this.name=e,this.inputs=o,this.output=n,this.id=a.nextID++,n.node=this}return a.nextID=0,a}(),VariableNode=function(a){function t(t,e,o){var n=a.call(this,t,e,{},new SymbolicTensor(o.shape))||this;return n.data=o,n}return __extends(t,a),t.prototype.validate=function(){util.assert(null!=this.data,"Error adding variable op: Data for variable '"+this.name+"' is null or undefined")},t}(exports.Node=Node);exports.VariableNode=VariableNode;var PlaceholderNode=function(n){function t(t,e,o){return n.call(this,t,e,{},new SymbolicTensor(o))||this}return __extends(t,n),t.prototype.validate=function(){},t}(Node);exports.PlaceholderNode=PlaceholderNode;var ConstantNode=function(n){function t(t,e){var o=n.call(this,t,"Constant",{},new SymbolicTensor(e.shape))||this;return o.data=e,o}return __extends(t,n),t.prototype.validate=function(){util.assert(null!=this.data,"Error adding constant: data for placeholder '"+this.name+"' is null or undefined")},t}(Node);exports.ConstantNode=ConstantNode;var ReshapeNode=function(s){function t(t,e,o,n){var a=s.call(this,t,e,{x:o},new SymbolicTensor(n))||this;return a.name=e,a.x=o,a.shape=n,a}return __extends(t,s),t.prototype.validate=function(){var t=util.sizeFromShape(this.x.shape),e=util.sizeFromShape(this.shape);util.assert(t===e,"Error making reshape operation: input to reshape '"+this.name+"' of shape ("+this.x.shape+") does not match size of requested shape "+this.shape+".")},t.X="x",t}(Node);exports.ReshapeNode=ReshapeNode;var FusedLinearCombinationNode=function(r){function t(t,e,o,n,a){var s=r.call(this,t,"Linear Combination",{t1:e,t2:o,c1:n,c2:a},new SymbolicTensor(e.shape))||this;return s.t1=e,s.t2=o,s.c1=n,s.c2=a,s}return __extends(t,r),t.prototype.validate=function(){if(util.assertShapesMatch(this.t1.shape,this.t2.shape),!util.isScalarShape(this.c1.shape))throw new Error("Error adding fusedLinearCombination: c1 is not a scalar, got shape: "+this.c1.shape);if(!util.isScalarShape(this.c2.shape))throw new Error("Error adding fusedLinearCombination: c2 is not a scalar, got shape: "+this.c2.shape)},t.T1="t1",t.T2="t2",t.C1="c1",t.C2="c2",t}(Node);exports.FusedLinearCombinationNode=FusedLinearCombinationNode;var AddNode=function(a){function t(t,e,o){var n=a.call(this,t,"Add",{t1:e,t2:o},new SymbolicTensor(1===util.sizeFromShape(e.shape)||e.shape.length<o.shape.length?o.shape:e.shape))||this;return n.t1=e,n.t2=o,n}return __extends(t,a),t.prototype.validate=function(){util.assert(1===util.sizeFromShape(this.t1.shape)||1===util.sizeFromShape(this.t2.shape)||util.arraysEqual(this.t1.shape,this.t2.shape)||2===this.t1.shape.length&&1===this.t2.shape.length&&this.t1.shape[1]===this.t2.shape[0]||1===this.t1.shape.length&&2===this.t2.shape.length&&this.t1.shape[0]===this.t2.shape[1],"Error adding add operation op: one of inputs must be scalar, shapes "+this.t1.shape+" and "+this.t2.shape+" must match,or one of them can be broadcasted (2D and 1D).")},t.T1="t1",t.T2="t2",t}(Node);exports.AddNode=AddNode;var SubtractNode=function(a){function t(t,e,o){var n=a.call(this,t,"Subtract",{t1:e,t2:o},new SymbolicTensor(1===util.sizeFromShape(e.shape)?o.shape:e.shape))||this;return n.t1=e,n.t2=o,n}return __extends(t,a),t.prototype.validate=function(){util.assert(1===util.sizeFromShape(this.t1.shape)||1===util.sizeFromShape(this.t2.shape)||util.arraysEqual(this.t1.shape,this.t2.shape),"Error adding subtract op: one of inputs must be scalar or the shapes "+this.t1.shape+" and "+this.t2.shape+" must match.")},t.T1="t1",t.T2="t2",t}(Node);exports.SubtractNode=SubtractNode;var MultiplyNode=function(a){function t(t,e,o){var n=a.call(this,t,"Multiply",{t1:e,t2:o},new SymbolicTensor(1===util.sizeFromShape(e.shape)?o.shape:e.shape))||this;return n.t1=e,n.t2=o,n}return __extends(t,a),t.prototype.validate=function(){util.assert(1===util.sizeFromShape(this.t1.shape)||1===util.sizeFromShape(this.t2.shape)||util.arraysEqual(this.t1.shape,this.t2.shape),"Error adding multiply op: one of inputs must be scalar or the shapes "+this.t1.shape+" and "+this.t2.shape+" must match.")},t.T1="t1",t.T2="t2",t}(Node);exports.MultiplyNode=MultiplyNode;var DivideNode=function(a){function t(t,e,o){var n=a.call(this,t,"Divide",{t1:e,t2:o},new SymbolicTensor(1===util.sizeFromShape(e.shape)?o.shape:e.shape))||this;return n.t1=e,n.t2=o,n}return __extends(t,a),t.prototype.validate=function(){util.assert(1===util.sizeFromShape(this.t1.shape)||1===util.sizeFromShape(this.t2.shape)||util.arraysEqual(this.t1.shape,this.t2.shape),"Error adding divide op: one of inputs must be scalar or the shapes "+this.t1.shape+" and "+this.t2.shape+" must match.")},t.T1="t1",t.T2="t2",t}(Node);exports.DivideNode=DivideNode;var ReduceSumNode=function(o){function t(t,e){return o.call(this,t,"ReduceSum",{x:e},new SymbolicTensor([]))||this}return __extends(t,o),t.prototype.validate=function(){},t.X="x",t}(Node);exports.ReduceSumNode=ReduceSumNode;var Concat1DNode=function(n){function t(t,e,o){return n.call(this,t,"Concat1D",{x1:e,x2:o},new SymbolicTensor(concat_util.computeOutShape1D(e.shape,o.shape)))||this}return __extends(t,n),t.prototype.validate=function(){},t.X1="x1",t.X2="x2",t}(Node);exports.Concat1DNode=Concat1DNode;var Concat2DNode=function(s){function t(t,e,o,n){var a=s.call(this,t,"Concat2D",{x1:e,x2:o},new SymbolicTensor(concat_util.computeOutShape(e.shape,o.shape,n)))||this;return a.x1=e,a.x2=o,a.axis=n,a}return __extends(t,s),t.prototype.validate=function(){concat_util.assertParams(this.x1.shape,this.x2.shape,this.axis)},t.X1="x1",t.X2="x2",t.AXIS="axis",t}(Node);exports.Concat2DNode=Concat2DNode;var Concat3DNode=function(s){function t(t,e,o,n){var a=s.call(this,t,"Concat3D",{x1:e,x2:o},new SymbolicTensor(concat_util.computeOutShape(e.shape,o.shape,n)))||this;return a.x1=e,a.x2=o,a.axis=n,a}return __extends(t,s),t.prototype.validate=function(){concat_util.assertParams(this.x1.shape,this.x2.shape,this.axis)},t.X1="x1",t.X2="x2",t.AXIS="axis",t}(Node);exports.Concat3DNode=Concat3DNode;var Concat4DNode=function(s){function t(t,e,o,n){var a=s.call(this,t,"Concat4D",{x1:e,x2:o},new SymbolicTensor(concat_util.computeOutShape(e.shape,o.shape,n)))||this;return a.x1=e,a.x2=o,a.axis=n,a}return __extends(t,s),t.prototype.validate=function(){concat_util.assertParams(this.x1.shape,this.x2.shape,this.axis)},t.X1="x1",t.X2="x2",t.AXIS="axis",t}(Node);function getMatMulOutputShape(t,e){return 1===t.length&&1===e.length?[1]:1===t.length&&2===e.length?[e[1]]:2===t.length&&1===e.length?[t[0]]:[t[0],e[1]]}exports.Concat4DNode=Concat4DNode;var MatMulNode=function(a){function t(t,e,o){var n=a.call(this,t,"MatMul",{x1:e,x2:o},new SymbolicTensor(getMatMulOutputShape(e.shape,o.shape)))||this;return n.x1=e,n.x2=o,n}return __extends(t,a),t.prototype.validate=function(){if(2===this.x1.shape.length&&2===this.x2.shape.length)util.assert(this.x1.shape[1]===this.x2.shape[0],"Error adding matmul op: inner shapes of matrices with shapes "+this.x1.shape+" and "+this.x2.shape+" must match.");else if(2===this.x1.shape.length&&1===this.x2.shape.length)util.assert(this.x1.shape[1]===this.x2.shape[0],"Error adding matmul op: second dimension of matrix with shape "+this.x1.shape.toString()+" must match size of vector with shape "+this.x2.shape+".");else{if(1!==this.x1.shape.length||2!==this.x2.shape.length)throw new Error("Error adding matmul op: inputs must be vectors or matrices.");util.assert(this.x1.shape[0]===this.x2.shape[0],"Error adding matmul op: size of vector with shape "+this.x1.shape+" must match first dimension of matrix with shape "+this.x2.shape+".")}},t.X1="x1",t.X2="x2",t}(Node);exports.MatMulNode=MatMulNode;var Convolution2DNode=function(h){function t(t,e,o,n,a,s,r,i){void 0===r&&(r=1);var u=h.call(this,t,"Convolution 2D",{x:e,w:o,b:n},new SymbolicTensor(conv_util.computeOutputShape3D(e.shape,a,s,r,i)))||this;return u.x=e,u.w=o,u.b=n,u.fieldSize=a,u.outputDepth=s,u.stride=r,u.zeroPad=i,u}return __extends(t,h),t.prototype.validate=function(){util.assert(3===this.x.shape.length,"Error adding conv2d op: input must be of rank 3, but got shape: "+this.x.shape+"."),util.assert(4===this.w.shape.length,"Error adding conv2d op: weights must be of rank 4, but got shape: "+this.w.shape+"."),util.assert(1===this.b.shape.length,"Error adding conv2d op: biases must be of rank 1, but got shape: "+this.b.shape+"."),util.assert(this.x.shape[2]===this.w.shape[2],"Error adding conv2d op: depth of input ("+this.x.shape[2]+") must match input depth for weights ("+this.w.shape[2]+").")},t.X="x",t.W="w",t.B="b",t}(Node);exports.Convolution2DNode=Convolution2DNode;var MaxPoolNode=function(r){function t(t,e,o,n,a){void 0===n&&(n=1);var s=r.call(this,t,"Max pool",{x:e},new SymbolicTensor(conv_util.computeOutputShape3D(e.shape,o,e.shape[2],n,a)))||this;return s.x=e,s.fieldSize=o,s.stride=n,s.zeroPad=a,s}return __extends(t,r),t.prototype.validate=function(){util.assert(3===this.x.shape.length,"Error adding maxPool op: input must be of rank 3, but got shape: "+this.x.shape+".")},t.X="x",t}(Node);exports.MaxPoolNode=MaxPoolNode;var ReLUNode=function(o){function t(t,e){return o.call(this,t,"ReLU",{x:e},new SymbolicTensor(e.shape))||this}return __extends(t,o),t.prototype.validate=function(){},t.X="x",t}(Node);exports.ReLUNode=ReLUNode;var LeakyReLUNode=function(a){function t(t,e,o){var n=a.call(this,t,"LeakyReLU",{x:e},new SymbolicTensor(e.shape))||this;return n.alpha=o,n}return __extends(t,a),t.prototype.validate=function(){},t.X="x",t}(Node);exports.LeakyReLUNode=LeakyReLUNode;var PReLUNode=function(a){function t(t,e,o){var n=a.call(this,t,"PReLU",{x:e,alpha:o},new SymbolicTensor(e.shape))||this;return n.x=e,n.alpha=o,n}return __extends(t,a),t.prototype.validate=function(){util.assert(util.arraysEqual(this.x.shape,this.alpha.shape),"Error adding pRelu op: the shapes x: "+this.x.shape+" and alpha: "+this.alpha.shape+" must match.")},t.X="x",t.ALPHA="alpha",t}(Node);exports.PReLUNode=PReLUNode;var EluNode=function(o){function t(t,e){return o.call(this,t,"Elu",{x:e},new SymbolicTensor(e.shape))||this}return __extends(t,o),t.prototype.validate=function(){},t.X="x",t}(Node);exports.EluNode=EluNode;var ExpNode=function(o){function t(t,e){return o.call(this,t,"Exp",{x:e},new SymbolicTensor(e.shape))||this}return __extends(t,o),t.prototype.validate=function(){},t.X="x",t}(Node);exports.ExpNode=ExpNode;var LogNode=function(o){function t(t,e){return o.call(this,t,"Log",{x:e},new SymbolicTensor(e.shape))||this}return __extends(t,o),t.prototype.validate=function(){},t.X="x",t}(Node);exports.LogNode=LogNode;var TanHNode=function(o){function t(t,e){return o.call(this,t,"TanH",{x:e},new SymbolicTensor(e.shape))||this}return __extends(t,o),t.prototype.validate=function(){},t.X="x",t}(Node);exports.TanHNode=TanHNode;var SigmoidNode=function(o){function t(t,e){return o.call(this,t,"Sigmoid",{x:e},new SymbolicTensor(e.shape))||this}return __extends(t,o),t.prototype.validate=function(){},t.X="x",t}(Node);exports.SigmoidNode=SigmoidNode;var SquareNode=function(o){function t(t,e){return o.call(this,t,"Square",{x:e},new SymbolicTensor(e.shape))||this}return __extends(t,o),t.prototype.validate=function(){},t.X="x",t}(Node);exports.SquareNode=SquareNode;var SoftmaxCrossEntropyCostNode=function(a){function t(t,e,o){var n=a.call(this,t,"SoftmaxCrossEntropyCost",{x:e,target:o},new SymbolicTensor([]))||this;return n.x=e,n.target=o,n}return __extends(t,a),t.prototype.validate=function(){util.assert(util.arraysEqual(this.x.shape,this.target.shape),"Error adding softmaxCrossEntropyCost op: x shape ("+this.x.shape+") must match target shape ("+this.target.shape+").")},t.X="x",t.TARGET="target",t}(Node);exports.SoftmaxCrossEntropyCostNode=SoftmaxCrossEntropyCostNode;var SoftmaxNode=function(n){function t(t,e){var o=n.call(this,t,"Softmax",{x:e},new SymbolicTensor(e.shape))||this;return o.x=e,o}return __extends(t,n),t.prototype.validate=function(){util.assert(1===this.x.shape.length,"The input to a softmax must be a 1-D tensor"),util.assert(2<=this.x.shape[0],"The input to a softmax must have at least 2 values")},t.X="x",t}(Node);exports.SoftmaxNode=SoftmaxNode;var MeanSquaredCostNode=function(a){function t(t,e,o){var n=a.call(this,t,"Mean Squared Cost",{label:e,prediction:o},new SymbolicTensor([]))||this;return n.label=e,n.prediction=o,n}return __extends(t,a),t.prototype.validate=function(){util.assert(util.arraysEqual(this.label.shape,this.prediction.shape),"Error adding meanSquaredCost op: label shape ("+this.label.shape+") must match prediction shape ("+this.prediction.shape+").")},t.LABEL="label",t.PREDICTION="prediction",t}(Node);exports.MeanSquaredCostNode=MeanSquaredCostNode;var ArgMaxNode=function(n){function t(t,e){var o=n.call(this,t,"ArgMax",{x:e},new SymbolicTensor([1]))||this;return o.x=e,o}return __extends(t,n),t.prototype.validate=function(){util.assert(0<util.sizeFromShape(this.x.shape),"Error adding argmax op: input tensor must have at least one entry.")},t.X="x",t}(Node);exports.ArgMaxNode=ArgMaxNode;var ArgMaxEqualsNode=function(a){function t(t,e,o){var n=a.call(this,t,"ArgMaxEquals",{x1:e,x2:o},new SymbolicTensor([1]))||this;return n.x1=e,n.x2=o,n}return __extends(t,a),t.prototype.validate=function(){util.assert(util.arraysEqual(this.x1.shape,this.x2.shape),"Error adding ArgMaxEquals op: x1 shape ("+this.x1.shape+") must match x2 shape ("+this.x2.shape+").")},t.X1="x1",t.X2="x2",t}(Node);exports.ArgMaxEqualsNode=ArgMaxEqualsNode;
cdnjs/cdnjs
ajax/libs/deeplearn/0.5.0/graph/graph.min.js
JavaScript
mit
18,376
/** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2017 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */ 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.FileSpec = exports.XRef = exports.ObjectLoader = exports.Catalog = undefined; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); var _util = require('../shared/util'); var _primitives = require('./primitives'); var _parser = require('./parser'); var _chunked_stream = require('./chunked_stream'); var _crypto = require('./crypto'); var _colorspace = require('./colorspace'); var Catalog = function CatalogClosure() { function Catalog(pdfManager, xref, pageFactory) { this.pdfManager = pdfManager; this.xref = xref; this.catDict = xref.getCatalogObj(); if (!(0, _primitives.isDict)(this.catDict)) { throw new _util.FormatError('catalog object is not a dictionary'); } this.fontCache = new _primitives.RefSetCache(); this.builtInCMapCache = Object.create(null); this.pageKidsCountCache = new _primitives.RefSetCache(); this.pageFactory = pageFactory; this.pagePromises = []; } Catalog.prototype = { get metadata() { var streamRef = this.catDict.getRaw('Metadata'); if (!(0, _primitives.isRef)(streamRef)) { return (0, _util.shadow)(this, 'metadata', null); } var encryptMetadata = !this.xref.encrypt ? false : this.xref.encrypt.encryptMetadata; var stream = this.xref.fetch(streamRef, !encryptMetadata); var metadata; if (stream && (0, _primitives.isDict)(stream.dict)) { var type = stream.dict.get('Type'); var subtype = stream.dict.get('Subtype'); if ((0, _primitives.isName)(type, 'Metadata') && (0, _primitives.isName)(subtype, 'XML')) { try { metadata = (0, _util.stringToUTF8String)((0, _util.bytesToString)(stream.getBytes())); } catch (e) { if (e instanceof _util.MissingDataException) { throw e; } (0, _util.info)('Skipping invalid metadata.'); } } } return (0, _util.shadow)(this, 'metadata', metadata); }, get toplevelPagesDict() { var pagesObj = this.catDict.get('Pages'); if (!(0, _primitives.isDict)(pagesObj)) { throw new _util.FormatError('invalid top-level pages dictionary'); } return (0, _util.shadow)(this, 'toplevelPagesDict', pagesObj); }, get documentOutline() { var obj = null; try { obj = this.readDocumentOutline(); } catch (ex) { if (ex instanceof _util.MissingDataException) { throw ex; } (0, _util.warn)('Unable to read document outline'); } return (0, _util.shadow)(this, 'documentOutline', obj); }, readDocumentOutline: function Catalog_readDocumentOutline() { var obj = this.catDict.get('Outlines'); if (!(0, _primitives.isDict)(obj)) { return null; } obj = obj.getRaw('First'); if (!(0, _primitives.isRef)(obj)) { return null; } var root = { items: [] }; var queue = [{ obj: obj, parent: root }]; var processed = new _primitives.RefSet(); processed.put(obj); var xref = this.xref, blackColor = new Uint8Array(3); while (queue.length > 0) { var i = queue.shift(); var outlineDict = xref.fetchIfRef(i.obj); if (outlineDict === null) { continue; } if (!outlineDict.has('Title')) { throw new _util.FormatError('Invalid outline item'); } var data = { url: null, dest: null }; Catalog.parseDestDictionary({ destDict: outlineDict, resultObj: data, docBaseUrl: this.pdfManager.docBaseUrl }); var title = outlineDict.get('Title'); var flags = outlineDict.get('F') || 0; var color = outlineDict.getArray('C'), rgbColor = blackColor; if (Array.isArray(color) && color.length === 3 && (color[0] !== 0 || color[1] !== 0 || color[2] !== 0)) { rgbColor = _colorspace.ColorSpace.singletons.rgb.getRgb(color, 0); } var outlineItem = { dest: data.dest, url: data.url, unsafeUrl: data.unsafeUrl, newWindow: data.newWindow, title: (0, _util.stringToPDFString)(title), color: rgbColor, count: outlineDict.get('Count'), bold: !!(flags & 2), italic: !!(flags & 1), items: [] }; i.parent.items.push(outlineItem); obj = outlineDict.getRaw('First'); if ((0, _primitives.isRef)(obj) && !processed.has(obj)) { queue.push({ obj: obj, parent: outlineItem }); processed.put(obj); } obj = outlineDict.getRaw('Next'); if ((0, _primitives.isRef)(obj) && !processed.has(obj)) { queue.push({ obj: obj, parent: i.parent }); processed.put(obj); } } return root.items.length > 0 ? root.items : null; }, get numPages() { var obj = this.toplevelPagesDict.get('Count'); if (!Number.isInteger(obj)) { throw new _util.FormatError('page count in top level pages object is not an integer'); } return (0, _util.shadow)(this, 'numPages', obj); }, get destinations() { function fetchDestination(dest) { return (0, _primitives.isDict)(dest) ? dest.get('D') : dest; } var xref = this.xref; var dests = {}, nameTreeRef, nameDictionaryRef; var obj = this.catDict.get('Names'); if (obj && obj.has('Dests')) { nameTreeRef = obj.getRaw('Dests'); } else if (this.catDict.has('Dests')) { nameDictionaryRef = this.catDict.get('Dests'); } if (nameDictionaryRef) { obj = nameDictionaryRef; obj.forEach(function catalogForEach(key, value) { if (!value) { return; } dests[key] = fetchDestination(value); }); } if (nameTreeRef) { var nameTree = new NameTree(nameTreeRef, xref); var names = nameTree.getAll(); for (var name in names) { dests[name] = fetchDestination(names[name]); } } return (0, _util.shadow)(this, 'destinations', dests); }, getDestination: function Catalog_getDestination(destinationId) { function fetchDestination(dest) { return (0, _primitives.isDict)(dest) ? dest.get('D') : dest; } var xref = this.xref; var dest = null, nameTreeRef, nameDictionaryRef; var obj = this.catDict.get('Names'); if (obj && obj.has('Dests')) { nameTreeRef = obj.getRaw('Dests'); } else if (this.catDict.has('Dests')) { nameDictionaryRef = this.catDict.get('Dests'); } if (nameDictionaryRef) { var value = nameDictionaryRef.get(destinationId); if (value) { dest = fetchDestination(value); } } if (nameTreeRef) { var nameTree = new NameTree(nameTreeRef, xref); dest = fetchDestination(nameTree.get(destinationId)); } return dest; }, get pageLabels() { var obj = null; try { obj = this.readPageLabels(); } catch (ex) { if (ex instanceof _util.MissingDataException) { throw ex; } (0, _util.warn)('Unable to read page labels.'); } return (0, _util.shadow)(this, 'pageLabels', obj); }, readPageLabels: function Catalog_readPageLabels() { var obj = this.catDict.getRaw('PageLabels'); if (!obj) { return null; } var pageLabels = new Array(this.numPages); var style = null; var prefix = ''; var numberTree = new NumberTree(obj, this.xref); var nums = numberTree.getAll(); var currentLabel = '', currentIndex = 1; for (var i = 0, ii = this.numPages; i < ii; i++) { if (i in nums) { var labelDict = nums[i]; if (!(0, _primitives.isDict)(labelDict)) { throw new _util.FormatError('The PageLabel is not a dictionary.'); } var type = labelDict.get('Type'); if (type && !(0, _primitives.isName)(type, 'PageLabel')) { throw new _util.FormatError('Invalid type in PageLabel dictionary.'); } var s = labelDict.get('S'); if (s && !(0, _primitives.isName)(s)) { throw new _util.FormatError('Invalid style in PageLabel dictionary.'); } style = s ? s.name : null; var p = labelDict.get('P'); if (p && !(0, _util.isString)(p)) { throw new _util.FormatError('Invalid prefix in PageLabel dictionary.'); } prefix = p ? (0, _util.stringToPDFString)(p) : ''; var st = labelDict.get('St'); if (st && !(Number.isInteger(st) && st >= 1)) { throw new _util.FormatError('Invalid start in PageLabel dictionary.'); } currentIndex = st || 1; } switch (style) { case 'D': currentLabel = currentIndex; break; case 'R': case 'r': currentLabel = _util.Util.toRoman(currentIndex, style === 'r'); break; case 'A': case 'a': var LIMIT = 26; var A_UPPER_CASE = 0x41, A_LOWER_CASE = 0x61; var baseCharCode = style === 'a' ? A_LOWER_CASE : A_UPPER_CASE; var letterIndex = currentIndex - 1; var character = String.fromCharCode(baseCharCode + letterIndex % LIMIT); var charBuf = []; for (var j = 0, jj = letterIndex / LIMIT | 0; j <= jj; j++) { charBuf.push(character); } currentLabel = charBuf.join(''); break; default: if (style) { throw new _util.FormatError('Invalid style "' + style + '" in PageLabel dictionary.'); } } pageLabels[i] = prefix + currentLabel; currentLabel = ''; currentIndex++; } return pageLabels; }, get pageMode() { var obj = this.catDict.get('PageMode'); var pageMode = 'UseNone'; if ((0, _primitives.isName)(obj)) { switch (obj.name) { case 'UseNone': case 'UseOutlines': case 'UseThumbs': case 'FullScreen': case 'UseOC': case 'UseAttachments': pageMode = obj.name; } } return (0, _util.shadow)(this, 'pageMode', pageMode); }, get attachments() { var xref = this.xref; var attachments = null, nameTreeRef; var obj = this.catDict.get('Names'); if (obj) { nameTreeRef = obj.getRaw('EmbeddedFiles'); } if (nameTreeRef) { var nameTree = new NameTree(nameTreeRef, xref); var names = nameTree.getAll(); for (var name in names) { var fs = new FileSpec(names[name], xref); if (!attachments) { attachments = Object.create(null); } attachments[(0, _util.stringToPDFString)(name)] = fs.serializable; } } return (0, _util.shadow)(this, 'attachments', attachments); }, get javaScript() { var xref = this.xref; var obj = this.catDict.get('Names'); var javaScript = null; function appendIfJavaScriptDict(jsDict) { var type = jsDict.get('S'); if (!(0, _primitives.isName)(type, 'JavaScript')) { return; } var js = jsDict.get('JS'); if ((0, _primitives.isStream)(js)) { js = (0, _util.bytesToString)(js.getBytes()); } else if (!(0, _util.isString)(js)) { return; } if (!javaScript) { javaScript = []; } javaScript.push((0, _util.stringToPDFString)(js)); } if (obj && obj.has('JavaScript')) { var nameTree = new NameTree(obj.getRaw('JavaScript'), xref); var names = nameTree.getAll(); for (var name in names) { var jsDict = names[name]; if ((0, _primitives.isDict)(jsDict)) { appendIfJavaScriptDict(jsDict); } } } var openactionDict = this.catDict.get('OpenAction'); if ((0, _primitives.isDict)(openactionDict, 'Action')) { var actionType = openactionDict.get('S'); if ((0, _primitives.isName)(actionType, 'Named')) { var action = openactionDict.get('N'); if ((0, _primitives.isName)(action, 'Print')) { if (!javaScript) { javaScript = []; } javaScript.push('print({});'); } } else { appendIfJavaScriptDict(openactionDict); } } return (0, _util.shadow)(this, 'javaScript', javaScript); }, cleanup: function Catalog_cleanup() { var _this = this; this.pageKidsCountCache.clear(); var promises = []; this.fontCache.forEach(function (promise) { promises.push(promise); }); return Promise.all(promises).then(function (translatedFonts) { for (var i = 0, ii = translatedFonts.length; i < ii; i++) { var font = translatedFonts[i].dict; delete font.translated; } _this.fontCache.clear(); _this.builtInCMapCache = Object.create(null); }); }, getPage: function Catalog_getPage(pageIndex) { var _this2 = this; if (!(pageIndex in this.pagePromises)) { this.pagePromises[pageIndex] = this.getPageDict(pageIndex).then(function (_ref) { var _ref2 = _slicedToArray(_ref, 2), dict = _ref2[0], ref = _ref2[1]; return _this2.pageFactory.createPage(pageIndex, dict, ref, _this2.fontCache, _this2.builtInCMapCache); }); } return this.pagePromises[pageIndex]; }, getPageDict: function Catalog_getPageDict(pageIndex) { var capability = (0, _util.createPromiseCapability)(); var nodesToVisit = [this.catDict.getRaw('Pages')]; var count, currentPageIndex = 0; var xref = this.xref, pageKidsCountCache = this.pageKidsCountCache; function next() { while (nodesToVisit.length) { var currentNode = nodesToVisit.pop(); if ((0, _primitives.isRef)(currentNode)) { count = pageKidsCountCache.get(currentNode); if (count > 0 && currentPageIndex + count < pageIndex) { currentPageIndex += count; continue; } xref.fetchAsync(currentNode).then(function (obj) { if ((0, _primitives.isDict)(obj, 'Page') || (0, _primitives.isDict)(obj) && !obj.has('Kids')) { if (pageIndex === currentPageIndex) { if (currentNode && !pageKidsCountCache.has(currentNode)) { pageKidsCountCache.put(currentNode, 1); } capability.resolve([obj, currentNode]); } else { currentPageIndex++; next(); } return; } nodesToVisit.push(obj); next(); }, capability.reject); return; } if (!(0, _primitives.isDict)(currentNode)) { capability.reject(new _util.FormatError('page dictionary kid reference points to wrong type of object')); return; } count = currentNode.get('Count'); var objId = currentNode.objId; if (objId && !pageKidsCountCache.has(objId)) { pageKidsCountCache.put(objId, count); } if (currentPageIndex + count <= pageIndex) { currentPageIndex += count; continue; } var kids = currentNode.get('Kids'); if (!Array.isArray(kids)) { capability.reject(new _util.FormatError('page dictionary kids object is not an array')); return; } for (var last = kids.length - 1; last >= 0; last--) { nodesToVisit.push(kids[last]); } } capability.reject(new Error('Page index ' + pageIndex + ' not found.')); } next(); return capability.promise; }, getPageIndex: function Catalog_getPageIndex(pageRef) { var xref = this.xref; function pagesBeforeRef(kidRef) { var total = 0; var parentRef; return xref.fetchAsync(kidRef).then(function (node) { if ((0, _primitives.isRefsEqual)(kidRef, pageRef) && !(0, _primitives.isDict)(node, 'Page') && !((0, _primitives.isDict)(node) && !node.has('Type') && node.has('Contents'))) { throw new _util.FormatError('The reference does not point to a /Page Dict.'); } if (!node) { return null; } if (!(0, _primitives.isDict)(node)) { throw new _util.FormatError('node must be a Dict.'); } parentRef = node.getRaw('Parent'); return node.getAsync('Parent'); }).then(function (parent) { if (!parent) { return null; } if (!(0, _primitives.isDict)(parent)) { throw new _util.FormatError('parent must be a Dict.'); } return parent.getAsync('Kids'); }).then(function (kids) { if (!kids) { return null; } var kidPromises = []; var found = false; for (var i = 0; i < kids.length; i++) { var kid = kids[i]; if (!(0, _primitives.isRef)(kid)) { throw new _util.FormatError('kid must be a Ref.'); } if (kid.num === kidRef.num) { found = true; break; } kidPromises.push(xref.fetchAsync(kid).then(function (kid) { if (kid.has('Count')) { var count = kid.get('Count'); total += count; } else { total++; } })); } if (!found) { throw new _util.FormatError('kid ref not found in parents kids'); } return Promise.all(kidPromises).then(function () { return [total, parentRef]; }); }); } var total = 0; function next(ref) { return pagesBeforeRef(ref).then(function (args) { if (!args) { return total; } var count = args[0]; var parentRef = args[1]; total += count; return next(parentRef); }); } return next(pageRef); } }; Catalog.parseDestDictionary = function Catalog_parseDestDictionary(params) { function addDefaultProtocolToUrl(url) { if (url.indexOf('www.') === 0) { return 'http://' + url; } return url; } function tryConvertUrlEncoding(url) { try { return (0, _util.stringToUTF8String)(url); } catch (e) { return url; } } var destDict = params.destDict; if (!(0, _primitives.isDict)(destDict)) { (0, _util.warn)('parseDestDictionary: "destDict" must be a dictionary.'); return; } var resultObj = params.resultObj; if ((typeof resultObj === 'undefined' ? 'undefined' : _typeof(resultObj)) !== 'object') { (0, _util.warn)('parseDestDictionary: "resultObj" must be an object.'); return; } var docBaseUrl = params.docBaseUrl || null; var action = destDict.get('A'), url, dest; if (!(0, _primitives.isDict)(action) && destDict.has('Dest')) { action = destDict.get('Dest'); } if ((0, _primitives.isDict)(action)) { var actionType = action.get('S'); if (!(0, _primitives.isName)(actionType)) { (0, _util.warn)('parseDestDictionary: Invalid type in Action dictionary.'); return; } var actionName = actionType.name; switch (actionName) { case 'URI': url = action.get('URI'); if ((0, _primitives.isName)(url)) { url = '/' + url.name; } else if ((0, _util.isString)(url)) { url = addDefaultProtocolToUrl(url); } break; case 'GoTo': dest = action.get('D'); break; case 'Launch': case 'GoToR': var urlDict = action.get('F'); if ((0, _primitives.isDict)(urlDict)) { url = urlDict.get('F') || null; } else if ((0, _util.isString)(urlDict)) { url = urlDict; } var remoteDest = action.get('D'); if (remoteDest) { if ((0, _primitives.isName)(remoteDest)) { remoteDest = remoteDest.name; } if ((0, _util.isString)(url)) { var baseUrl = url.split('#')[0]; if ((0, _util.isString)(remoteDest)) { url = baseUrl + '#' + remoteDest; } else if (Array.isArray(remoteDest)) { url = baseUrl + '#' + JSON.stringify(remoteDest); } } } var newWindow = action.get('NewWindow'); if ((0, _util.isBool)(newWindow)) { resultObj.newWindow = newWindow; } break; case 'Named': var namedAction = action.get('N'); if ((0, _primitives.isName)(namedAction)) { resultObj.action = namedAction.name; } break; case 'JavaScript': var jsAction = action.get('JS'), js; if ((0, _primitives.isStream)(jsAction)) { js = (0, _util.bytesToString)(jsAction.getBytes()); } else if ((0, _util.isString)(jsAction)) { js = jsAction; } if (js) { var URL_OPEN_METHODS = ['app.launchURL', 'window.open']; var regex = new RegExp('^\\s*(' + URL_OPEN_METHODS.join('|').split('.').join('\\.') + ')\\((?:\'|\")([^\'\"]*)(?:\'|\")(?:,\\s*(\\w+)\\)|\\))', 'i'); var jsUrl = regex.exec((0, _util.stringToPDFString)(js)); if (jsUrl && jsUrl[2]) { url = jsUrl[2]; if (jsUrl[3] === 'true' && jsUrl[1] === 'app.launchURL') { resultObj.newWindow = true; } break; } } default: (0, _util.warn)('parseDestDictionary: Unsupported Action type "' + actionName + '".'); break; } } else if (destDict.has('Dest')) { dest = destDict.get('Dest'); } if ((0, _util.isString)(url)) { url = tryConvertUrlEncoding(url); var absoluteUrl = (0, _util.createValidAbsoluteUrl)(url, docBaseUrl); if (absoluteUrl) { resultObj.url = absoluteUrl.href; } resultObj.unsafeUrl = url; } if (dest) { if ((0, _primitives.isName)(dest)) { dest = dest.name; } if ((0, _util.isString)(dest) || Array.isArray(dest)) { resultObj.dest = dest; } } }; return Catalog; }(); var XRef = function XRefClosure() { function XRef(stream, pdfManager) { this.stream = stream; this.pdfManager = pdfManager; this.entries = []; this.xrefstms = Object.create(null); this.cache = []; this.stats = { streamTypes: [], fontTypes: [] }; } XRef.prototype = { setStartXRef: function XRef_setStartXRef(startXRef) { this.startXRefQueue = [startXRef]; }, parse: function XRef_parse(recoveryMode) { var trailerDict; if (!recoveryMode) { trailerDict = this.readXRef(); } else { (0, _util.warn)('Indexing all PDF objects'); trailerDict = this.indexObjects(); } trailerDict.assignXref(this); this.trailer = trailerDict; var encrypt = trailerDict.get('Encrypt'); if ((0, _primitives.isDict)(encrypt)) { var ids = trailerDict.get('ID'); var fileId = ids && ids.length ? ids[0] : ''; encrypt.suppressEncryption = true; this.encrypt = new _crypto.CipherTransformFactory(encrypt, fileId, this.pdfManager.password); } if (!(this.root = trailerDict.get('Root'))) { throw new _util.FormatError('Invalid root reference'); } }, processXRefTable: function XRef_processXRefTable(parser) { if (!('tableState' in this)) { this.tableState = { entryNum: 0, streamPos: parser.lexer.stream.pos, parserBuf1: parser.buf1, parserBuf2: parser.buf2 }; } var obj = this.readXRefTable(parser); if (!(0, _primitives.isCmd)(obj, 'trailer')) { throw new _util.FormatError('Invalid XRef table: could not find trailer dictionary'); } var dict = parser.getObj(); if (!(0, _primitives.isDict)(dict) && dict.dict) { dict = dict.dict; } if (!(0, _primitives.isDict)(dict)) { throw new _util.FormatError('Invalid XRef table: could not parse trailer dictionary'); } delete this.tableState; return dict; }, readXRefTable: function XRef_readXRefTable(parser) { var stream = parser.lexer.stream; var tableState = this.tableState; stream.pos = tableState.streamPos; parser.buf1 = tableState.parserBuf1; parser.buf2 = tableState.parserBuf2; var obj; while (true) { if (!('firstEntryNum' in tableState) || !('entryCount' in tableState)) { if ((0, _primitives.isCmd)(obj = parser.getObj(), 'trailer')) { break; } tableState.firstEntryNum = obj; tableState.entryCount = parser.getObj(); } var first = tableState.firstEntryNum; var count = tableState.entryCount; if (!Number.isInteger(first) || !Number.isInteger(count)) { throw new _util.FormatError('Invalid XRef table: wrong types in subsection header'); } for (var i = tableState.entryNum; i < count; i++) { tableState.streamPos = stream.pos; tableState.entryNum = i; tableState.parserBuf1 = parser.buf1; tableState.parserBuf2 = parser.buf2; var entry = {}; entry.offset = parser.getObj(); entry.gen = parser.getObj(); var type = parser.getObj(); if ((0, _primitives.isCmd)(type, 'f')) { entry.free = true; } else if ((0, _primitives.isCmd)(type, 'n')) { entry.uncompressed = true; } if (!Number.isInteger(entry.offset) || !Number.isInteger(entry.gen) || !(entry.free || entry.uncompressed)) { throw new _util.FormatError('Invalid entry in XRef subsection: ' + first + ', ' + count); } if (i === 0 && entry.free && first === 1) { first = 0; } if (!this.entries[i + first]) { this.entries[i + first] = entry; } } tableState.entryNum = 0; tableState.streamPos = stream.pos; tableState.parserBuf1 = parser.buf1; tableState.parserBuf2 = parser.buf2; delete tableState.firstEntryNum; delete tableState.entryCount; } if (this.entries[0] && !this.entries[0].free) { throw new _util.FormatError('Invalid XRef table: unexpected first object'); } return obj; }, processXRefStream: function XRef_processXRefStream(stream) { if (!('streamState' in this)) { var streamParameters = stream.dict; var byteWidths = streamParameters.get('W'); var range = streamParameters.get('Index'); if (!range) { range = [0, streamParameters.get('Size')]; } this.streamState = { entryRanges: range, byteWidths: byteWidths, entryNum: 0, streamPos: stream.pos }; } this.readXRefStream(stream); delete this.streamState; return stream.dict; }, readXRefStream: function XRef_readXRefStream(stream) { var i, j; var streamState = this.streamState; stream.pos = streamState.streamPos; var byteWidths = streamState.byteWidths; var typeFieldWidth = byteWidths[0]; var offsetFieldWidth = byteWidths[1]; var generationFieldWidth = byteWidths[2]; var entryRanges = streamState.entryRanges; while (entryRanges.length > 0) { var first = entryRanges[0]; var n = entryRanges[1]; if (!Number.isInteger(first) || !Number.isInteger(n)) { throw new _util.FormatError('Invalid XRef range fields: ' + first + ', ' + n); } if (!Number.isInteger(typeFieldWidth) || !Number.isInteger(offsetFieldWidth) || !Number.isInteger(generationFieldWidth)) { throw new _util.FormatError('Invalid XRef entry fields length: ' + first + ', ' + n); } for (i = streamState.entryNum; i < n; ++i) { streamState.entryNum = i; streamState.streamPos = stream.pos; var type = 0, offset = 0, generation = 0; for (j = 0; j < typeFieldWidth; ++j) { type = type << 8 | stream.getByte(); } if (typeFieldWidth === 0) { type = 1; } for (j = 0; j < offsetFieldWidth; ++j) { offset = offset << 8 | stream.getByte(); } for (j = 0; j < generationFieldWidth; ++j) { generation = generation << 8 | stream.getByte(); } var entry = {}; entry.offset = offset; entry.gen = generation; switch (type) { case 0: entry.free = true; break; case 1: entry.uncompressed = true; break; case 2: break; default: throw new _util.FormatError('Invalid XRef entry type: ' + type); } if (!this.entries[first + i]) { this.entries[first + i] = entry; } } streamState.entryNum = 0; streamState.streamPos = stream.pos; entryRanges.splice(0, 2); } }, indexObjects: function XRef_indexObjects() { var TAB = 0x9, LF = 0xA, CR = 0xD, SPACE = 0x20; var PERCENT = 0x25, LT = 0x3C; function readToken(data, offset) { var token = '', ch = data[offset]; while (ch !== LF && ch !== CR && ch !== LT) { if (++offset >= data.length) { break; } token += String.fromCharCode(ch); ch = data[offset]; } return token; } function skipUntil(data, offset, what) { var length = what.length, dataLength = data.length; var skipped = 0; while (offset < dataLength) { var i = 0; while (i < length && data[offset + i] === what[i]) { ++i; } if (i >= length) { break; } offset++; skipped++; } return skipped; } var objRegExp = /^(\d+)\s+(\d+)\s+obj\b/; var endobjRegExp = /\bendobj[\b\s]$/; var nestedObjRegExp = /\s+(\d+\s+\d+\s+obj[\b\s])$/; var CHECK_CONTENT_LENGTH = 25; var trailerBytes = new Uint8Array([116, 114, 97, 105, 108, 101, 114]); var startxrefBytes = new Uint8Array([115, 116, 97, 114, 116, 120, 114, 101, 102]); var objBytes = new Uint8Array([111, 98, 106]); var xrefBytes = new Uint8Array([47, 88, 82, 101, 102]); this.entries.length = 0; var stream = this.stream; stream.pos = 0; var buffer = stream.getBytes(); var position = stream.start, length = buffer.length; var trailers = [], xrefStms = []; while (position < length) { var ch = buffer[position]; if (ch === TAB || ch === LF || ch === CR || ch === SPACE) { ++position; continue; } if (ch === PERCENT) { do { ++position; if (position >= length) { break; } ch = buffer[position]; } while (ch !== LF && ch !== CR); continue; } var token = readToken(buffer, position); var m; if (token.indexOf('xref') === 0 && (token.length === 4 || /\s/.test(token[4]))) { position += skipUntil(buffer, position, trailerBytes); trailers.push(position); position += skipUntil(buffer, position, startxrefBytes); } else if (m = objRegExp.exec(token)) { if (typeof this.entries[m[1]] === 'undefined') { this.entries[m[1]] = { offset: position - stream.start, gen: m[2] | 0, uncompressed: true }; } var contentLength = void 0, startPos = position + token.length; while (startPos < buffer.length) { var endPos = startPos + skipUntil(buffer, startPos, objBytes) + 4; contentLength = endPos - position; var checkPos = Math.max(endPos - CHECK_CONTENT_LENGTH, startPos); var tokenStr = (0, _util.bytesToString)(buffer.subarray(checkPos, endPos)); if (endobjRegExp.test(tokenStr)) { break; } else { var objToken = nestedObjRegExp.exec(tokenStr); if (objToken && objToken[1]) { (0, _util.warn)('indexObjects: Found new "obj" inside of another "obj", ' + 'caused by missing "endobj" -- trying to recover.'); contentLength -= objToken[1].length; break; } } startPos += contentLength; } var content = buffer.subarray(position, position + contentLength); var xrefTagOffset = skipUntil(content, 0, xrefBytes); if (xrefTagOffset < contentLength && content[xrefTagOffset + 5] < 64) { xrefStms.push(position - stream.start); this.xrefstms[position - stream.start] = 1; } position += contentLength; } else if (token.indexOf('trailer') === 0 && (token.length === 7 || /\s/.test(token[7]))) { trailers.push(position); position += skipUntil(buffer, position, startxrefBytes); } else { position += token.length + 1; } } var i, ii; for (i = 0, ii = xrefStms.length; i < ii; ++i) { this.startXRefQueue.push(xrefStms[i]); this.readXRef(true); } var dict; for (i = 0, ii = trailers.length; i < ii; ++i) { stream.pos = trailers[i]; var parser = new _parser.Parser(new _parser.Lexer(stream), true, this, true); var obj = parser.getObj(); if (!(0, _primitives.isCmd)(obj, 'trailer')) { continue; } dict = parser.getObj(); if (!(0, _primitives.isDict)(dict)) { continue; } if (dict.has('ID')) { return dict; } } if (dict) { return dict; } throw new _util.InvalidPDFException('Invalid PDF structure'); }, readXRef: function XRef_readXRef(recoveryMode) { var stream = this.stream; var startXRefParsedCache = Object.create(null); try { while (this.startXRefQueue.length) { var startXRef = this.startXRefQueue[0]; if (startXRefParsedCache[startXRef]) { (0, _util.warn)('readXRef - skipping XRef table since it was already parsed.'); this.startXRefQueue.shift(); continue; } startXRefParsedCache[startXRef] = true; stream.pos = startXRef + stream.start; var parser = new _parser.Parser(new _parser.Lexer(stream), true, this); var obj = parser.getObj(); var dict; if ((0, _primitives.isCmd)(obj, 'xref')) { dict = this.processXRefTable(parser); if (!this.topDict) { this.topDict = dict; } obj = dict.get('XRefStm'); if (Number.isInteger(obj)) { var pos = obj; if (!(pos in this.xrefstms)) { this.xrefstms[pos] = 1; this.startXRefQueue.push(pos); } } } else if (Number.isInteger(obj)) { if (!Number.isInteger(parser.getObj()) || !(0, _primitives.isCmd)(parser.getObj(), 'obj') || !(0, _primitives.isStream)(obj = parser.getObj())) { throw new _util.FormatError('Invalid XRef stream'); } dict = this.processXRefStream(obj); if (!this.topDict) { this.topDict = dict; } if (!dict) { throw new _util.FormatError('Failed to read XRef stream'); } } else { throw new _util.FormatError('Invalid XRef stream header'); } obj = dict.get('Prev'); if (Number.isInteger(obj)) { this.startXRefQueue.push(obj); } else if ((0, _primitives.isRef)(obj)) { this.startXRefQueue.push(obj.num); } this.startXRefQueue.shift(); } return this.topDict; } catch (e) { if (e instanceof _util.MissingDataException) { throw e; } (0, _util.info)('(while reading XRef): ' + e); } if (recoveryMode) { return; } throw new _util.XRefParseException(); }, getEntry: function XRef_getEntry(i) { var xrefEntry = this.entries[i]; if (xrefEntry && !xrefEntry.free && xrefEntry.offset) { return xrefEntry; } return null; }, fetchIfRef: function XRef_fetchIfRef(obj, suppressEncryption) { if (!(0, _primitives.isRef)(obj)) { return obj; } return this.fetch(obj, suppressEncryption); }, fetch: function XRef_fetch(ref, suppressEncryption) { if (!(0, _primitives.isRef)(ref)) { throw new Error('ref object is not a reference'); } var num = ref.num; if (num in this.cache) { var cacheEntry = this.cache[num]; if (cacheEntry instanceof _primitives.Dict && !cacheEntry.objId) { cacheEntry.objId = ref.toString(); } return cacheEntry; } var xrefEntry = this.getEntry(num); if (xrefEntry === null) { return this.cache[num] = null; } if (xrefEntry.uncompressed) { xrefEntry = this.fetchUncompressed(ref, xrefEntry, suppressEncryption); } else { xrefEntry = this.fetchCompressed(xrefEntry, suppressEncryption); } if ((0, _primitives.isDict)(xrefEntry)) { xrefEntry.objId = ref.toString(); } else if ((0, _primitives.isStream)(xrefEntry)) { xrefEntry.dict.objId = ref.toString(); } return xrefEntry; }, fetchUncompressed: function XRef_fetchUncompressed(ref, xrefEntry, suppressEncryption) { var gen = ref.gen; var num = ref.num; if (xrefEntry.gen !== gen) { throw new _util.FormatError('inconsistent generation in XRef'); } var stream = this.stream.makeSubStream(xrefEntry.offset + this.stream.start); var parser = new _parser.Parser(new _parser.Lexer(stream), true, this); var obj1 = parser.getObj(); var obj2 = parser.getObj(); var obj3 = parser.getObj(); if (!Number.isInteger(obj1)) { obj1 = parseInt(obj1, 10); } if (!Number.isInteger(obj2)) { obj2 = parseInt(obj2, 10); } if (obj1 !== num || obj2 !== gen || !(0, _primitives.isCmd)(obj3)) { throw new _util.FormatError('bad XRef entry'); } if (obj3.cmd !== 'obj') { if (obj3.cmd.indexOf('obj') === 0) { num = parseInt(obj3.cmd.substring(3), 10); if (!Number.isNaN(num)) { return num; } } throw new _util.FormatError('bad XRef entry'); } if (this.encrypt && !suppressEncryption) { xrefEntry = parser.getObj(this.encrypt.createCipherTransform(num, gen)); } else { xrefEntry = parser.getObj(); } if (!(0, _primitives.isStream)(xrefEntry)) { this.cache[num] = xrefEntry; } return xrefEntry; }, fetchCompressed: function XRef_fetchCompressed(xrefEntry, suppressEncryption) { var tableOffset = xrefEntry.offset; var stream = this.fetch(new _primitives.Ref(tableOffset, 0)); if (!(0, _primitives.isStream)(stream)) { throw new _util.FormatError('bad ObjStm stream'); } var first = stream.dict.get('First'); var n = stream.dict.get('N'); if (!Number.isInteger(first) || !Number.isInteger(n)) { throw new _util.FormatError('invalid first and n parameters for ObjStm stream'); } var parser = new _parser.Parser(new _parser.Lexer(stream), false, this); parser.allowStreams = true; var i, entries = [], num, nums = []; for (i = 0; i < n; ++i) { num = parser.getObj(); if (!Number.isInteger(num)) { throw new _util.FormatError('invalid object number in the ObjStm stream: ' + num); } nums.push(num); var offset = parser.getObj(); if (!Number.isInteger(offset)) { throw new _util.FormatError('invalid object offset in the ObjStm stream: ' + offset); } } for (i = 0; i < n; ++i) { entries.push(parser.getObj()); if ((0, _primitives.isCmd)(parser.buf1, 'endobj')) { parser.shift(); } num = nums[i]; var entry = this.entries[num]; if (entry && entry.offset === tableOffset && entry.gen === i) { this.cache[num] = entries[i]; } } xrefEntry = entries[xrefEntry.gen]; if (xrefEntry === undefined) { throw new _util.FormatError('bad XRef entry for compressed object'); } return xrefEntry; }, fetchIfRefAsync: function XRef_fetchIfRefAsync(obj, suppressEncryption) { if (!(0, _primitives.isRef)(obj)) { return Promise.resolve(obj); } return this.fetchAsync(obj, suppressEncryption); }, fetchAsync: function XRef_fetchAsync(ref, suppressEncryption) { var streamManager = this.stream.manager; var xref = this; return new Promise(function tryFetch(resolve, reject) { try { resolve(xref.fetch(ref, suppressEncryption)); } catch (e) { if (e instanceof _util.MissingDataException) { streamManager.requestRange(e.begin, e.end).then(function () { tryFetch(resolve, reject); }, reject); return; } reject(e); } }); }, getCatalogObj: function XRef_getCatalogObj() { return this.root; } }; return XRef; }(); var NameOrNumberTree = function NameOrNumberTreeClosure() { function NameOrNumberTree(root, xref) { (0, _util.unreachable)('Cannot initialize NameOrNumberTree.'); } NameOrNumberTree.prototype = { getAll: function NameOrNumberTree_getAll() { var dict = Object.create(null); if (!this.root) { return dict; } var xref = this.xref; var processed = new _primitives.RefSet(); processed.put(this.root); var queue = [this.root]; while (queue.length > 0) { var i, n; var obj = xref.fetchIfRef(queue.shift()); if (!(0, _primitives.isDict)(obj)) { continue; } if (obj.has('Kids')) { var kids = obj.get('Kids'); for (i = 0, n = kids.length; i < n; i++) { var kid = kids[i]; if (processed.has(kid)) { throw new _util.FormatError('Duplicate entry in "' + this._type + '" tree.'); } queue.push(kid); processed.put(kid); } continue; } var entries = obj.get(this._type); if (Array.isArray(entries)) { for (i = 0, n = entries.length; i < n; i += 2) { dict[xref.fetchIfRef(entries[i])] = xref.fetchIfRef(entries[i + 1]); } } } return dict; }, get: function NameOrNumberTree_get(key) { if (!this.root) { return null; } var xref = this.xref; var kidsOrEntries = xref.fetchIfRef(this.root); var loopCount = 0; var MAX_LEVELS = 10; var l, r, m; while (kidsOrEntries.has('Kids')) { if (++loopCount > MAX_LEVELS) { (0, _util.warn)('Search depth limit reached for "' + this._type + '" tree.'); return null; } var kids = kidsOrEntries.get('Kids'); if (!Array.isArray(kids)) { return null; } l = 0; r = kids.length - 1; while (l <= r) { m = l + r >> 1; var kid = xref.fetchIfRef(kids[m]); var limits = kid.get('Limits'); if (key < xref.fetchIfRef(limits[0])) { r = m - 1; } else if (key > xref.fetchIfRef(limits[1])) { l = m + 1; } else { kidsOrEntries = xref.fetchIfRef(kids[m]); break; } } if (l > r) { return null; } } var entries = kidsOrEntries.get(this._type); if (Array.isArray(entries)) { l = 0; r = entries.length - 2; while (l <= r) { m = l + r & ~1; var currentKey = xref.fetchIfRef(entries[m]); if (key < currentKey) { r = m - 2; } else if (key > currentKey) { l = m + 2; } else { return xref.fetchIfRef(entries[m + 1]); } } } return null; } }; return NameOrNumberTree; }(); var NameTree = function NameTreeClosure() { function NameTree(root, xref) { this.root = root; this.xref = xref; this._type = 'Names'; } _util.Util.inherit(NameTree, NameOrNumberTree, {}); return NameTree; }(); var NumberTree = function NumberTreeClosure() { function NumberTree(root, xref) { this.root = root; this.xref = xref; this._type = 'Nums'; } _util.Util.inherit(NumberTree, NameOrNumberTree, {}); return NumberTree; }(); var FileSpec = function FileSpecClosure() { function FileSpec(root, xref) { if (!root || !(0, _primitives.isDict)(root)) { return; } this.xref = xref; this.root = root; if (root.has('FS')) { this.fs = root.get('FS'); } this.description = root.has('Desc') ? (0, _util.stringToPDFString)(root.get('Desc')) : ''; if (root.has('RF')) { (0, _util.warn)('Related file specifications are not supported'); } this.contentAvailable = true; if (!root.has('EF')) { this.contentAvailable = false; (0, _util.warn)('Non-embedded file specifications are not supported'); } } function pickPlatformItem(dict) { if (dict.has('UF')) { return dict.get('UF'); } else if (dict.has('F')) { return dict.get('F'); } else if (dict.has('Unix')) { return dict.get('Unix'); } else if (dict.has('Mac')) { return dict.get('Mac'); } else if (dict.has('DOS')) { return dict.get('DOS'); } return null; } FileSpec.prototype = { get filename() { if (!this._filename && this.root) { var filename = pickPlatformItem(this.root) || 'unnamed'; this._filename = (0, _util.stringToPDFString)(filename).replace(/\\\\/g, '\\').replace(/\\\//g, '/').replace(/\\/g, '/'); } return this._filename; }, get content() { if (!this.contentAvailable) { return null; } if (!this.contentRef && this.root) { this.contentRef = pickPlatformItem(this.root.get('EF')); } var content = null; if (this.contentRef) { var xref = this.xref; var fileObj = xref.fetchIfRef(this.contentRef); if (fileObj && (0, _primitives.isStream)(fileObj)) { content = fileObj.getBytes(); } else { (0, _util.warn)('Embedded file specification points to non-existing/invalid ' + 'content'); } } else { (0, _util.warn)('Embedded file specification does not have a content'); } return content; }, get serializable() { return { filename: this.filename, content: this.content }; } }; return FileSpec; }(); var ObjectLoader = function () { function mayHaveChildren(value) { return (0, _primitives.isRef)(value) || (0, _primitives.isDict)(value) || Array.isArray(value) || (0, _primitives.isStream)(value); } function addChildren(node, nodesToVisit) { if ((0, _primitives.isDict)(node) || (0, _primitives.isStream)(node)) { var dict = (0, _primitives.isDict)(node) ? node : node.dict; var dictKeys = dict.getKeys(); for (var i = 0, ii = dictKeys.length; i < ii; i++) { var rawValue = dict.getRaw(dictKeys[i]); if (mayHaveChildren(rawValue)) { nodesToVisit.push(rawValue); } } } else if (Array.isArray(node)) { for (var _i = 0, _ii = node.length; _i < _ii; _i++) { var value = node[_i]; if (mayHaveChildren(value)) { nodesToVisit.push(value); } } } } function ObjectLoader(dict, keys, xref) { this.dict = dict; this.keys = keys; this.xref = xref; this.refSet = null; this.capability = null; } ObjectLoader.prototype = { load: function load() { this.capability = (0, _util.createPromiseCapability)(); if (!(this.xref.stream instanceof _chunked_stream.ChunkedStream) || this.xref.stream.getMissingChunks().length === 0) { this.capability.resolve(); return this.capability.promise; } var keys = this.keys, dict = this.dict; this.refSet = new _primitives.RefSet(); var nodesToVisit = []; for (var i = 0, ii = keys.length; i < ii; i++) { var rawValue = dict.getRaw(keys[i]); if (rawValue !== undefined) { nodesToVisit.push(rawValue); } } this._walk(nodesToVisit); return this.capability.promise; }, _walk: function _walk(nodesToVisit) { var _this3 = this; var nodesToRevisit = []; var pendingRequests = []; while (nodesToVisit.length) { var currentNode = nodesToVisit.pop(); if ((0, _primitives.isRef)(currentNode)) { if (this.refSet.has(currentNode)) { continue; } try { this.refSet.put(currentNode); currentNode = this.xref.fetch(currentNode); } catch (ex) { if (!(ex instanceof _util.MissingDataException)) { throw ex; } nodesToRevisit.push(currentNode); pendingRequests.push({ begin: ex.begin, end: ex.end }); } } if (currentNode && currentNode.getBaseStreams) { var baseStreams = currentNode.getBaseStreams(); var foundMissingData = false; for (var i = 0, ii = baseStreams.length; i < ii; i++) { var stream = baseStreams[i]; if (stream.getMissingChunks && stream.getMissingChunks().length) { foundMissingData = true; pendingRequests.push({ begin: stream.start, end: stream.end }); } } if (foundMissingData) { nodesToRevisit.push(currentNode); } } addChildren(currentNode, nodesToVisit); } if (pendingRequests.length) { this.xref.stream.manager.requestRanges(pendingRequests).then(function () { for (var _i2 = 0, _ii2 = nodesToRevisit.length; _i2 < _ii2; _i2++) { var node = nodesToRevisit[_i2]; if ((0, _primitives.isRef)(node)) { _this3.refSet.remove(node); } } _this3._walk(nodesToRevisit); }, this.capability.reject); return; } this.refSet = null; this.capability.resolve(); } }; return ObjectLoader; }(); exports.Catalog = Catalog; exports.ObjectLoader = ObjectLoader; exports.XRef = XRef; exports.FileSpec = FileSpec;
AngeliaGong/AngeliaGong.github.io
node_modules/pdfjs-dist/lib/core/obj.js
JavaScript
mit
54,428
import Api from '~/api'; import { __ } from '~/locale'; import { normalizeHeaders } from '~/lib/utils/common_utils'; import * as types from './mutation_types'; import eventHub from '../../../eventhub'; export const requestTemplateTypes = ({ commit }) => commit(types.REQUEST_TEMPLATE_TYPES); export const receiveTemplateTypesError = ({ commit, dispatch }) => { commit(types.RECEIVE_TEMPLATE_TYPES_ERROR); dispatch( 'setErrorMessage', { text: __('Error loading template types.'), action: () => dispatch('fetchTemplateTypes').then(() => dispatch('setErrorMessage', null, { root: true }), ), actionText: __('Please try again'), }, { root: true }, ); }; export const receiveTemplateTypesSuccess = ({ commit }, templates) => commit(types.RECEIVE_TEMPLATE_TYPES_SUCCESS, templates); export const fetchTemplateTypes = ({ dispatch, state, rootState }, page = 1) => { if (!Object.keys(state.selectedTemplateType).length) return Promise.reject(); dispatch('requestTemplateTypes'); return Api.projectTemplates(rootState.currentProjectId, state.selectedTemplateType.key, { page }) .then(({ data, headers }) => { const nextPage = parseInt(normalizeHeaders(headers)['X-NEXT-PAGE'], 10); dispatch('receiveTemplateTypesSuccess', data); if (nextPage) { dispatch('fetchTemplateTypes', nextPage); } }) .catch(() => dispatch('receiveTemplateTypesError')); }; export const setSelectedTemplateType = ({ commit, dispatch, rootGetters }, type) => { commit(types.SET_SELECTED_TEMPLATE_TYPE, type); if (rootGetters.activeFile.prevPath === type.name) { dispatch('discardFileChanges', rootGetters.activeFile.path, { root: true }); } else if (rootGetters.activeFile.name !== type.name) { dispatch( 'renameEntry', { path: rootGetters.activeFile.path, name: type.name, }, { root: true }, ); } }; export const receiveTemplateError = ({ dispatch }, template) => { dispatch( 'setErrorMessage', { text: __('Error loading template.'), action: payload => dispatch('fetchTemplateTypes', payload).then(() => dispatch('setErrorMessage', null, { root: true }), ), actionText: __('Please try again'), actionPayload: template, }, { root: true }, ); }; export const fetchTemplate = ({ dispatch, state, rootState }, template) => { if (template.content) { return dispatch('setFileTemplate', template); } return Api.projectTemplate( rootState.currentProjectId, state.selectedTemplateType.key, template.key || template.name, ) .then(({ data }) => { dispatch('setFileTemplate', data); }) .catch(() => dispatch('receiveTemplateError', template)); }; export const setFileTemplate = ({ dispatch, commit, rootGetters }, template) => { dispatch( 'changeFileContent', { path: rootGetters.activeFile.path, content: template.content }, { root: true }, ); commit(types.SET_UPDATE_SUCCESS, true); eventHub.$emit(`editor.update.model.new.content.${rootGetters.activeFile.key}`, template.content); }; export const undoFileTemplate = ({ dispatch, commit, rootGetters }) => { const file = rootGetters.activeFile; dispatch('changeFileContent', { path: file.path, content: file.raw }, { root: true }); commit(types.SET_UPDATE_SUCCESS, false); eventHub.$emit(`editor.update.model.new.content.${file.key}`, file.raw); if (file.prevPath) { dispatch('discardFileChanges', file.path, { root: true }); } }; // prevent babel-plugin-rewire from generating an invalid default during karma tests export default () => {};
axilleas/gitlabhq
app/assets/javascripts/ide/stores/modules/file_templates/actions.js
JavaScript
mit
3,689
#include <stdlib.h> #include <string.h> #include <assert.h> #define GENERATE_AST_TYPE_ENUM_FUNCS 1 #include "huo_ast.h" #undef GENERATE_AST_TYPE_ENUM_FUNCS #include "../base_util.h" struct huo_ast_t { enum ast_type_e type; size_t size; struct Value content; struct Value name; huo_ast ** children; }; huo_ast *ast_new(enum ast_type_e type, struct Value v) { struct huo_ast_t *tree = malloc_or_die(sizeof(struct huo_ast_t)); tree->type = type; tree->content = v; tree->name = v; tree->children = NULL; tree->size = 0; return tree; } enum ast_type_e ast_type(huo_ast *const tree) { assert (tree != NULL); return tree->type; } struct Value *ast_value(huo_ast *const tree) { assert (tree != NULL); return &tree->content; } void ast_set_value(huo_ast *tree, struct Value val) { tree->content = val; } void ast_push_child(huo_ast *tree, huo_ast *child) { assert (tree != NULL); assert (child != NULL); RESIZE(tree->children, tree->size + 1); tree->children[tree->size++] = child; } huo_ast *ast_pop_child(huo_ast *tree) { assert (tree != NULL); assert (ast_size(tree) != 0); huo_ast *child = ast_child(tree, ast_size(tree) - 1); RESIZE(tree->children, tree->size - 1); return child; } huo_ast *ast_child(huo_ast *tree, size_t i) { assert (i < ast_size(tree)); return tree->children[i]; } void ast_set_child(huo_ast *tree, size_t i, huo_ast *child) { assert (i < ast_size(tree)); tree->children[i] = child; } size_t ast_size(huo_ast *const tree) { return tree->size; } struct String *ast_to_string_indent(huo_ast *const tree, size_t indent); struct String *ast_print_wrap(huo_ast *const tree, size_t indent, char *sep, char *start, char *end) { // Formats like this: // ("a" // 2 // 3 // "qwert") // or // ( ) struct String st = string_from_chars(start); struct String *s = string_copy_heap(&st); if (ast_size(tree) > 0) { string_concat_to(s, ast_to_string_indent(ast_child(tree, 0), indent + 1)); for (size_t i = 1; i < ast_size(tree); i++) { huo_ast *child = ast_child(tree, i); string_concat_to_chars(s, sep); string_concat_to_chars(s, "\n"); for (size_t j = 0; j < indent; j++) { string_concat_to_chars(s, " "); } string_concat_to(s, ast_to_string_indent(child, indent + 1)); } } else { string_concat_to_chars(s, " "); } string_concat_to_chars(s, end); return s; } struct String *ast_to_string_indent(huo_ast *const tree, size_t indent) { struct String st = string_from_chars(""); struct String *s = string_copy_heap(&st); struct String val_str; switch (tree->type) { case AST_STATEMENT: string_concat_to(s, ast_print_wrap(tree, indent, "", "(", ")")); break; case AST_ARRAY: string_concat_to(s, ast_print_wrap(tree, indent, ",", "[", "]")); break; case AST_FLOAT: string_concat_to_float(s, value_as_float(ast_value(tree))); break; case AST_INTEGER: string_concat_to_long(s, value_as_long(ast_value(tree))); break; case AST_BOOLEAN: string_concat_to_chars(s, value_as_bool(ast_value(tree)) ? "true" : "false"); break; case AST_STRING: string_concat_to_chars(s, "\""); val_str = value_as_string(ast_value(tree)); string_concat_to(s, &val_str); string_concat_to_chars(s, "\""); break; case AST_KEYWORD: val_str = value_as_keyword(&tree->name); string_concat_to(s, &val_str); break; default: ERROR("Unknown type: %c", tree->type); } return s; } struct String *ast_to_string(huo_ast *const tree) { return ast_to_string_indent(tree, 0); } huo_ast *ast_copy(huo_ast *const from) { huo_ast *ast = malloc_or_die(sizeof(struct huo_ast_t)); ast->type = from->type; ast->content = value_copy_stack(&from->content); ast->name = value_copy_stack(&from->name); ast->children = NULL; ast->size = from->size; RESIZE(ast->children, from->size); for(size_t i = 0; i < from->size; i++){ ast->children[i] = ast_copy(from->children[i]); } return ast; } void ast_copy_to(huo_ast *to, huo_ast *const from) { to->type = from->type; value_copy_to(&to->content, &from->content); for(size_t i = to->size; i < from->size; i++){ ast_free(to->children[i]); } RESIZE(to->children, from->size); to->size = from->size; for(size_t i = 0; i < from->size; i++){ ast_copy_to(to->children[i], from->children[i]); } } void ast_free(huo_ast *ast) { if (ast != NULL) { value_free(ast_value(ast)); if (ast->children != NULL) { for(size_t i = 0; i < ast->size; i++){ ast_free(ast_child(ast, i)); } free(ast->children); } free(ast); } } huo_ast * value_as_ast(struct Value *v) { CHECK_TYPE(v, TYPE_AST); return v->data.ast; } struct Value value_from_ast(huo_ast *ast) { struct Value v = { .type = TYPE_AST, .data.ast = ast }; return v; }
incrediblesound/huo
src/structures/huo_ast.c
C
mit
5,339
<?php namespace Encore\Admin\Widgets; use Encore\Admin\Form\Field; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Contracts\Support\Renderable; /** * Class Form. * * @method Field\Text text($name, $label = '') * @method Field\Password password($name, $label = '') * @method Field\Checkbox checkbox($name, $label = '') * @method Field\Radio radio($name, $label = '') * @method Field\Select select($name, $label = '') * @method Field\MultipleSelect multipleSelect($name, $label = '') * @method Field\Textarea textarea($name, $label = '') * @method Field\Hidden hidden($name, $label = '') * @method Field\Id id($name, $label = '') * @method Field\Ip ip($name, $label = '') * @method Field\Url url($name, $label = '') * @method Field\Color color($name, $label = '') * @method Field\Email email($name, $label = '') * @method Field\Mobile mobile($name, $label = '') * @method Field\Slider slider($name, $label = '') * @method Field\Map map($latitude, $longitude, $label = '') * @method Field\Editor editor($name, $label = '') * @method Field\File file($name, $label = '') * @method Field\Image image($name, $label = '') * @method Field\Date date($name, $label = '') * @method Field\Datetime datetime($name, $label = '') * @method Field\Time time($name, $label = '') * @method Field\DateRange dateRange($start, $end, $label = '') * @method Field\DateTimeRange dateTimeRange($start, $end, $label = '') * @method Field\TimeRange timeRange($start, $end, $label = '') * @method Field\Number number($name, $label = '') * @method Field\Currency currency($name, $label = '') * @method Field\Json json($name, $label = '') * @method Field\SwitchField switch($name, $label = '') * @method Field\Display display($name, $label = '') * @method Field\Rate rate($name, $label = '') * @method Field\Divide divide() * @method Field\Decimal decimal($column, $label = '') * @method Field\Html html($html) * @method Field\Tags tags($column, $label = '') * @method Field\Icon icon($column, $label = '') */ class Form implements Renderable { /** * @var Field[] */ protected $fields = []; /** * @var array */ protected $data = []; /** * @var array */ protected $attributes = []; /** * Form constructor. * * @param array $data */ public function __construct($data = []) { if ($data instanceof Arrayable) { $data = $data->toArray(); } if (!empty($data)) { $this->data = $data; } $this->initFormAttributes(); } /** * Initialize the form attributes. */ protected function initFormAttributes() { $this->attributes = [ 'method' => 'POST', 'action' => '', 'class' => 'form-horizontal', 'accept-charset' => 'UTF-8', 'pjax-container' => true, ]; } /** * Action uri of the form. * * @param string $action * * @return $this */ public function action($action) { return $this->attribute('action', $action); } /** * Method of the form. * * @param string $method * * @return $this */ public function method($method = 'POST') { return $this->attribute('method', strtoupper($method)); } /** * Add form attributes. * * @param string|array $attr * @param string $value * * @return $this */ public function attribute($attr, $value = '') { if (is_array($attr)) { foreach ($attr as $key => $value) { $this->attribute($key, $value); } } else { $this->attributes[$attr] = $value; } return $this; } /** * Disable Pjax. * * @return $this */ public function disablePjax() { array_forget($this->attributes, 'pjax-container'); return $this; } /** * Set field and label width in current form. * * @param int $fieldWidth * @param int $labelWidth * * @return $this */ public function setWidth($fieldWidth = 8, $labelWidth = 2) { collect($this->fields)->each(function ($field) use ($fieldWidth, $labelWidth) { /* @var Field $field */ $field->setWidth($fieldWidth, $labelWidth); }); return $this; } /** * Find field class with given name. * * @param string $method * * @return bool|string */ public static function findFieldClass($method) { $class = array_get(\Encore\Admin\Form::$availableFields, $method); if (class_exists($class)) { return $class; } return false; } /** * Add a form field to form. * * @param Field $field * * @return $this */ protected function pushField(Field &$field) { array_push($this->fields, $field); return $this; } /** * Get variables for render form. * * @return array */ protected function getVariables() { foreach ($this->fields as $field) { $field->fill($this->data); } return [ 'fields' => $this->fields, 'attributes' => $this->formatAttribute(), ]; } /** * Format form attributes form array to html. * * @param array $attributes * * @return string */ public function formatAttribute($attributes = []) { $attributes = $attributes ?: $this->attributes; if ($this->hasFile()) { $attributes['enctype'] = 'multipart/form-data'; } $html = []; foreach ($attributes as $key => $val) { $html[] = "$key=\"$val\""; } return implode(' ', $html) ?: ''; } /** * Determine if form fields has files. * * @return bool */ public function hasFile() { foreach ($this->fields as $field) { if ($field instanceof Field\File) { return true; } } return false; } /** * Generate a Field object and add to form builder if Field exists. * * @param string $method * @param array $arguments * * @return Field|null */ public function __call($method, $arguments) { if ($className = static::findFieldClass($method)) { $name = array_get($arguments, 0, ''); $element = new $className($name, array_slice($arguments, 1)); $this->pushField($element); return $element; } } /** * Render the form. * * @return string */ public function render() { return view('admin::widgets.form', $this->getVariables())->render(); } /** * Output as string. * * @return string */ public function __toString() { return $this->render(); } }
elastosFans/larYbcy
src/Widgets/Form.php
PHP
mit
7,402
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE369_Divide_by_Zero__int_connect_socket_modulo_54a.c Label Definition File: CWE369_Divide_by_Zero__int.label.xml Template File: sources-sinks-54a.tmpl.c */ /* * @description * CWE: 369 Divide by Zero * BadSource: connect_socket Read data using a connect socket (client side) * GoodSource: Non-zero * Sinks: modulo * GoodSink: Check for zero before modulo * BadSink : Modulo a constant with data * Flow Variant: 54 Data flow: data passed as an argument from one function through three others to a fifth; all five functions are in different source files * * */ #include "std_testcase.h" #ifdef _WIN32 #include <winsock2.h> #include <windows.h> #include <direct.h> #pragma comment(lib, "ws2_32") /* include ws2_32.lib when linking */ #define CLOSE_SOCKET closesocket #else /* NOT _WIN32 */ #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> #define INVALID_SOCKET -1 #define SOCKET_ERROR -1 #define CLOSE_SOCKET close #define SOCKET int #endif #define TCP_PORT 27015 #define IP_ADDRESS "127.0.0.1" #define CHAR_ARRAY_SIZE (3 * sizeof(data) + 2) #ifndef OMITBAD /* bad function declaration */ void CWE369_Divide_by_Zero__int_connect_socket_modulo_54b_badSink(int data); void CWE369_Divide_by_Zero__int_connect_socket_modulo_54_bad() { int data; /* Initialize data */ data = -1; { #ifdef _WIN32 WSADATA wsaData; int wsaDataInit = 0; #endif int recvResult; struct sockaddr_in service; SOCKET connectSocket = INVALID_SOCKET; char inputBuffer[CHAR_ARRAY_SIZE]; do { #ifdef _WIN32 if (WSAStartup(MAKEWORD(2,2), &wsaData) != NO_ERROR) { break; } wsaDataInit = 1; #endif /* POTENTIAL FLAW: Read data using a connect socket */ connectSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (connectSocket == INVALID_SOCKET) { break; } memset(&service, 0, sizeof(service)); service.sin_family = AF_INET; service.sin_addr.s_addr = inet_addr(IP_ADDRESS); service.sin_port = htons(TCP_PORT); if (connect(connectSocket, (struct sockaddr*)&service, sizeof(service)) == SOCKET_ERROR) { break; } /* Abort on error or the connection was closed, make sure to recv one * less char than is in the recv_buf in order to append a terminator */ recvResult = recv(connectSocket, inputBuffer, CHAR_ARRAY_SIZE - 1, 0); if (recvResult == SOCKET_ERROR || recvResult == 0) { break; } /* NUL-terminate the string */ inputBuffer[recvResult] = '\0'; /* Convert to int */ data = atoi(inputBuffer); } while (0); if (connectSocket != INVALID_SOCKET) { CLOSE_SOCKET(connectSocket); } #ifdef _WIN32 if (wsaDataInit) { WSACleanup(); } #endif } CWE369_Divide_by_Zero__int_connect_socket_modulo_54b_badSink(data); } #endif /* OMITBAD */ #ifndef OMITGOOD /* goodG2B uses the GoodSource with the BadSink */ void CWE369_Divide_by_Zero__int_connect_socket_modulo_54b_goodG2BSink(int data); static void goodG2B() { int data; /* Initialize data */ data = -1; /* FIX: Use a value not equal to zero */ data = 7; CWE369_Divide_by_Zero__int_connect_socket_modulo_54b_goodG2BSink(data); } /* goodB2G uses the BadSource with the GoodSink */ void CWE369_Divide_by_Zero__int_connect_socket_modulo_54b_goodB2GSink(int data); static void goodB2G() { int data; /* Initialize data */ data = -1; { #ifdef _WIN32 WSADATA wsaData; int wsaDataInit = 0; #endif int recvResult; struct sockaddr_in service; SOCKET connectSocket = INVALID_SOCKET; char inputBuffer[CHAR_ARRAY_SIZE]; do { #ifdef _WIN32 if (WSAStartup(MAKEWORD(2,2), &wsaData) != NO_ERROR) { break; } wsaDataInit = 1; #endif /* POTENTIAL FLAW: Read data using a connect socket */ connectSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (connectSocket == INVALID_SOCKET) { break; } memset(&service, 0, sizeof(service)); service.sin_family = AF_INET; service.sin_addr.s_addr = inet_addr(IP_ADDRESS); service.sin_port = htons(TCP_PORT); if (connect(connectSocket, (struct sockaddr*)&service, sizeof(service)) == SOCKET_ERROR) { break; } /* Abort on error or the connection was closed, make sure to recv one * less char than is in the recv_buf in order to append a terminator */ recvResult = recv(connectSocket, inputBuffer, CHAR_ARRAY_SIZE - 1, 0); if (recvResult == SOCKET_ERROR || recvResult == 0) { break; } /* NUL-terminate the string */ inputBuffer[recvResult] = '\0'; /* Convert to int */ data = atoi(inputBuffer); } while (0); if (connectSocket != INVALID_SOCKET) { CLOSE_SOCKET(connectSocket); } #ifdef _WIN32 if (wsaDataInit) { WSACleanup(); } #endif } CWE369_Divide_by_Zero__int_connect_socket_modulo_54b_goodB2GSink(data); } void CWE369_Divide_by_Zero__int_connect_socket_modulo_54_good() { goodG2B(); goodB2G(); } #endif /* OMITGOOD */ /* Below is the main(). It is only used when building this testcase on its own for testing or for building a binary to use in testing binary analysis tools. It is not used when compiling all the testcases as one application, which is how source code analysis tools are tested. */ #ifdef INCLUDEMAIN int main(int argc, char * argv[]) { /* seed randomness */ srand( (unsigned)time(NULL) ); #ifndef OMITGOOD printLine("Calling good()..."); CWE369_Divide_by_Zero__int_connect_socket_modulo_54_good(); printLine("Finished good()"); #endif /* OMITGOOD */ #ifndef OMITBAD printLine("Calling bad()..."); CWE369_Divide_by_Zero__int_connect_socket_modulo_54_bad(); printLine("Finished bad()"); #endif /* OMITBAD */ return 0; } #endif
maurer/tiamat
samples/Juliet/testcases/CWE369_Divide_by_Zero/s01/CWE369_Divide_by_Zero__int_connect_socket_modulo_54a.c
C
mit
6,822
package org.jabref.model.entry; import org.jabref.logic.exporter.BibtexDatabaseWriter; import org.jabref.logic.exporter.SaveException; import org.jabref.logic.exporter.SavePreferences; import org.jabref.logic.exporter.StringSaveSession; import org.jabref.logic.util.OS; import org.jabref.model.Defaults; import org.jabref.model.database.BibDatabase; import org.jabref.model.database.BibDatabaseContext; import org.jabref.model.metadata.MetaData; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.assertEquals; public class FileFieldBibEntryTest { private BibEntry emptyEntry; @Before public void setUp() { emptyEntry = new BibEntry(); emptyEntry.setType("article"); emptyEntry.setChanged(false); } @Test public void testFileFieldSerialization() { LinkedFile file = new LinkedFile("test", "/home/uers/test.pdf", "PDF"); emptyEntry.addFile(file); assertEquals("@article{,\n" + " file = {test:/home/uers/test.pdf:PDF}\n" + "}", emptyEntry.toString()); } @Test public void testFileFieldSerializationDatabase() throws SaveException { BibDatabase database = new BibDatabase(); LinkedFile file = new LinkedFile("test", "/home/uers/test.pdf", "PDF"); emptyEntry.addFile(file); database.insertEntries(emptyEntry); BibtexDatabaseWriter<StringSaveSession> databaseWriter = new BibtexDatabaseWriter<>(StringSaveSession::new); StringSaveSession saveSession = databaseWriter.savePartOfDatabase( new BibDatabaseContext(database, new MetaData(), new Defaults()), database.getEntries(), new SavePreferences()); assertEquals(OS.NEWLINE + "@Article{," + OS.NEWLINE + " file = {test:/home/uers/test.pdf:PDF}," + OS.NEWLINE + "}" + OS.NEWLINE + OS.NEWLINE + "@Comment{jabref-meta: databaseType:bibtex;}" + OS.NEWLINE, saveSession.getStringValue()); } }
oscargus/jabref
src/test/java/org/jabref/model/entry/FileFieldBibEntryTest.java
Java
mit
2,095
/* Copyright 2008-2010 University of Cambridge Copyright 2008-2009 University of Toronto Copyright 2010-2011 Lucendo Development Ltd. Licensed under the Educational Community License (ECL), Version 2.0 or the New BSD license. You may not use this file except in compliance with one these Licenses. You may obtain a copy of the ECL 2.0 License and BSD License at https://github.com/fluid-project/infusion/raw/master/Infusion-LICENSE.txt */ fluid_2_0_0 = fluid_2_0_0 || {}; (function ($, fluid) { "use strict"; // unsupported, non-API function fluid.parseTemplate = function (template, baseURL, scanStart, cutpoints_in, opts) { opts = opts || {}; if (!template) { fluid.fail("empty template supplied to fluid.parseTemplate"); } var t; var parser; var tagstack; var lumpindex = 0; var nestingdepth = 0; var justended = false; var defstart = -1; var defend = -1; var debugMode = false; var cutpoints = []; // list of selector, tree, id var simpleClassCutpoints = {}; var cutstatus = []; var XMLLump = function (lumpindex, nestingdepth) { return { //rsfID: "", //text: "", //downmap: {}, //attributemap: {}, //finallump: {}, nestingdepth: nestingdepth, lumpindex: lumpindex, parent: t }; }; function isSimpleClassCutpoint(tree) { return tree.length === 1 && tree[0].predList.length === 1 && tree[0].predList[0].clazz; } function init(baseURLin, debugModeIn, cutpointsIn) { t.rootlump = XMLLump(0, -1); // eslint-disable-line new-cap tagstack = [t.rootlump]; lumpindex = 0; nestingdepth = 0; justended = false; defstart = -1; defend = -1; baseURL = baseURLin; debugMode = debugModeIn; if (cutpointsIn) { for (var i = 0; i < cutpointsIn.length; ++i) { var tree = fluid.parseSelector(cutpointsIn[i].selector, fluid.simpleCSSMatcher); var clazz = isSimpleClassCutpoint(tree); if (clazz) { simpleClassCutpoints[clazz] = cutpointsIn[i].id; } else { cutstatus.push([]); cutpoints.push($.extend({}, cutpointsIn[i], {tree: tree})); } } } } function findTopContainer() { for (var i = tagstack.length - 1; i >= 0; --i) { var lump = tagstack[i]; if (lump.rsfID !== undefined) { return lump; } } return t.rootlump; } function newLump() { var togo = XMLLump(lumpindex, nestingdepth); // eslint-disable-line new-cap if (debugMode) { togo.line = parser.getLineNumber(); togo.column = parser.getColumnNumber(); } //togo.parent = t; t.lumps[lumpindex] = togo; ++lumpindex; return togo; } function addLump(mmap, ID, lump) { var list = mmap[ID]; if (!list) { list = []; mmap[ID] = list; } list[list.length] = lump; } function checkContribute(ID, lump) { if (ID.indexOf("scr=contribute-") !== -1) { var scr = ID.substring("scr=contribute-".length); addLump(t.collectmap, scr, lump); } } function debugLump(lump) { // TODO expand this to agree with the Firebug "self-selector" idiom return "<" + lump.tagname + ">"; } function hasCssClass(clazz, totest) { if (!totest) { return false; } // algorithm from jQuery return (" " + totest + " ").indexOf(" " + clazz + " ") !== -1; } function matchNode(term, headlump, headclazz) { if (term.predList) { for (var i = 0; i < term.predList.length; ++i) { var pred = term.predList[i]; if (pred.id && headlump.attributemap.id !== pred.id) {return false;} if (pred.clazz && !hasCssClass(pred.clazz, headclazz)) {return false;} if (pred.tag && headlump.tagname !== pred.tag) {return false;} } return true; } } function tagStartCut(headlump) { var togo; var headclazz = headlump.attributemap["class"]; var i; if (headclazz) { var split = headclazz.split(" "); for (i = 0; i < split.length; ++i) { var simpleCut = simpleClassCutpoints[$.trim(split[i])]; if (simpleCut) { return simpleCut; } } } for (i = 0; i < cutpoints.length; ++i) { var cut = cutpoints[i]; var cutstat = cutstatus[i]; var nextterm = cutstat.length; // the next term for this node if (nextterm < cut.tree.length) { var term = cut.tree[nextterm]; if (nextterm > 0) { if (cut.tree[nextterm - 1].child && cutstat[nextterm - 1] !== headlump.nestingdepth - 1) { continue; // it is a failure to match if not at correct nesting depth } } var isMatch = matchNode(term, headlump, headclazz); if (isMatch) { cutstat[cutstat.length] = headlump.nestingdepth; if (cutstat.length === cut.tree.length) { if (togo !== undefined) { fluid.fail("Cutpoint specification error - node " + debugLump(headlump) + " has already matched with rsf:id of " + togo); } if (cut.id === undefined || cut.id === null) { fluid.fail("Error in cutpoints list - entry at position " + i + " does not have an id set"); } togo = cut.id; } } } } return togo; } function tagEndCut() { if (cutpoints) { for (var i = 0; i < cutpoints.length; ++i) { var cutstat = cutstatus[i]; if (cutstat.length > 0 && cutstat[cutstat.length - 1] === nestingdepth) { cutstat.length--; } } } } function processTagEnd() { tagEndCut(); var endlump = newLump(); --nestingdepth; endlump.text = "</" + parser.getName() + ">"; var oldtop = tagstack[tagstack.length - 1]; oldtop.close_tag = t.lumps[lumpindex - 1]; tagstack.length--; justended = true; } function processTagStart(isempty) { ++nestingdepth; if (justended) { justended = false; var backlump = newLump(); backlump.nestingdepth--; } if (t.firstdocumentindex === -1) { t.firstdocumentindex = lumpindex; } var headlump = newLump(); var stacktop = tagstack[tagstack.length - 1]; headlump.uplump = stacktop; var tagname = parser.getName(); headlump.tagname = tagname; // NB - attribute names and values are now NOT DECODED!! var attrs = headlump.attributemap = parser.m_attributes; var ID = attrs[fluid.ID_ATTRIBUTE]; if (ID === undefined) { ID = tagStartCut(headlump); } for (var attrname in attrs) { if (ID === undefined) { if (/href|src|codebase|action/.test(attrname)) { ID = "scr=rewrite-url"; } // port of TPI effect of IDRelationRewriter else if (ID === undefined && /for|headers/.test(attrname)) { ID = "scr=null"; } } } if (ID) { // TODO: ensure this logic is correct on RSF Server if (ID.charCodeAt(0) === 126) { // "~" ID = ID.substring(1); headlump.elide = true; } checkContribute(ID, headlump); headlump.rsfID = ID; var downreg = findTopContainer(); if (!downreg.downmap) { downreg.downmap = {}; } while (downreg) { // TODO: unusual fix for locating branches in parent contexts (applies to repetitive leaves) if (downreg.downmap) { addLump(downreg.downmap, ID, headlump); } downreg = downreg.uplump; } addLump(t.globalmap, ID, headlump); var colpos = ID.indexOf(":"); if (colpos !== -1) { var prefix = ID.substring(0, colpos); if (!stacktop.finallump) { stacktop.finallump = {}; } stacktop.finallump[prefix] = headlump; } } // TODO: accelerate this by grabbing original template text (requires parser // adjustment) as well as dealing with empty tags headlump.text = "<" + tagname + fluid.dumpAttributes(attrs) + (isempty && !ID ? "/>" : ">"); tagstack[tagstack.length] = headlump; if (isempty) { if (ID) { processTagEnd(); } else { --nestingdepth; tagstack.length--; } } } function processDefaultTag() { if (defstart !== -1) { if (t.firstdocumentindex === -1) { t.firstdocumentindex = lumpindex; } var text = parser.getContent().substr(defstart, defend - defstart); justended = false; var newlump = newLump(); newlump.text = text; defstart = -1; } } /** ACTUAL BODY of fluid.parseTemplate begins here **/ t = fluid.XMLViewTemplate(); init(baseURL, opts.debugMode, cutpoints_in); var idpos = template.indexOf(fluid.ID_ATTRIBUTE); if (scanStart) { var brackpos = template.indexOf(">", idpos); parser = fluid.XMLP(template.substring(brackpos + 1)); } else { parser = fluid.XMLP(template); } parseloop: // eslint-disable-line indent while (true) { var iEvent = parser.next(); switch (iEvent) { case fluid.XMLP._ELM_B: processDefaultTag(); //var text = parser.getContent().substr(parser.getContentBegin(), parser.getContentEnd() - parser.getContentBegin()); processTagStart(false, ""); break; case fluid.XMLP._ELM_E: processDefaultTag(); processTagEnd(); break; case fluid.XMLP._ELM_EMP: processDefaultTag(); //var text = parser.getContent().substr(parser.getContentBegin(), parser.getContentEnd() - parser.getContentBegin()); processTagStart(true, ""); break; case fluid.XMLP._PI: case fluid.XMLP._DTD: defstart = -1; continue; // not interested in reproducing these case fluid.XMLP._TEXT: case fluid.XMLP._ENTITY: case fluid.XMLP._CDATA: case fluid.XMLP._COMMENT: if (defstart === -1) { defstart = parser.m_cB; } defend = parser.m_cE; break; case fluid.XMLP._ERROR: fluid.setLogging(true); var message = "Error parsing template: " + parser.m_cAlt + " at line " + parser.getLineNumber(); fluid.log(message); fluid.log("Just read: " + parser.m_xml.substring(parser.m_iP - 30, parser.m_iP)); fluid.log("Still to read: " + parser.m_xml.substring(parser.m_iP, parser.m_iP + 30)); fluid.fail(message); break parseloop; case fluid.XMLP._NONE: break parseloop; } } processDefaultTag(); var excess = tagstack.length - 1; if (excess) { fluid.fail("Error parsing template - unclosed tag(s) of depth " + (excess) + ": " + fluid.transform(tagstack.splice(1, excess), function (lump) {return debugLump(lump);}).join(", ")); } return t; }; // unsupported, non-API function fluid.debugLump = function (lump) { var togo = lump.text; togo += " at "; togo += "lump line " + lump.line + " column " + lump.column + " index " + lump.lumpindex; togo += lump.parent.href === null ? "" : " in file " + lump.parent.href; return togo; }; // Public definitions begin here fluid.ID_ATTRIBUTE = "rsf:id"; // unsupported, non-API function fluid.getPrefix = function (id) { var colpos = id.indexOf(":"); return colpos === -1 ? id : id.substring(0, colpos); }; // unsupported, non-API function fluid.SplitID = function (id) { var that = {}; var colpos = id.indexOf(":"); if (colpos === -1) { that.prefix = id; } else { that.prefix = id.substring(0, colpos); that.suffix = id.substring(colpos + 1); } return that; }; // unsupported, non-API function fluid.XMLViewTemplate = function () { return { globalmap: {}, collectmap: {}, lumps: [], firstdocumentindex: -1 }; }; // TODO: find faster encoder fluid.XMLEncode = function (text) { return text.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\"/g, "&quot;"); }; // unsupported, non-API function fluid.dumpAttributes = function (attrcopy) { var togo = ""; for (var attrname in attrcopy) { var attrvalue = attrcopy[attrname]; if (attrvalue !== null && attrvalue !== undefined) { togo += " " + attrname + "=\"" + attrvalue + "\""; } } return togo; }; // unsupported, non-API function fluid.aggregateMMap = function (target, source) { for (var key in source) { var targhas = target[key]; if (!targhas) { target[key] = []; } target[key] = target[key].concat(source[key]); } }; /** Returns a "template structure", with globalmap in the root, and a list * of entries {href, template, cutpoints} for each parsed template. */ fluid.parseTemplates = function (resourceSpec, templateList, opts) { var togo = []; opts = opts || {}; togo.globalmap = {}; for (var i = 0; i < templateList.length; ++i) { var resource = resourceSpec[templateList[i]]; var lastslash = resource.href.lastIndexOf("/"); var baseURL = lastslash === -1 ? "" : resource.href.substring(0, lastslash + 1); var template = fluid.parseTemplate(resource.resourceText, baseURL, opts.scanStart && i === 0, resource.cutpoints, opts); if (i === 0) { fluid.aggregateMMap(togo.globalmap, template.globalmap); } template.href = resource.href; template.baseURL = baseURL; template.resourceKey = resource.resourceKey; togo[i] = template; fluid.aggregateMMap(togo.globalmap, template.rootlump.downmap); } return togo; }; })(jQuery, fluid_2_0_0);
dinukadesilva/music-ctrls
lib/infusion/src/framework/renderer/js/fluidParser.js
JavaScript
mit
16,974
/* Problem 4. Compare text files Write a program that compares two text files line by line and prints the number of lines that are the same and the number of lines that are different. Assume the files have equal number of lines. */ namespace CompareTextFiles { using System; using System.IO; class CompareTextFiles { static void Main() { string[] textFileOneLines = File.ReadAllLines("../../TextFileOne.txt"); string[] textFileTwoLines = File.ReadAllLines("../../TextFileTwo.txt"); int maxLength = Math.Max(textFileOneLines.Length, textFileTwoLines.Length); int minLength = Math.Min(textFileOneLines.Length, textFileTwoLines.Length); for (int line = 0; line < maxLength; line++) { if (line < minLength) { if (textFileOneLines[line].Equals(textFileTwoLines[line])) { Console.WriteLine("At line {0} : lines from both files are the same.", line); } else { Console.WriteLine("At line {0} : lines are not the same.", line); } } else { Console.WriteLine("Line {0} : doesnt exists in {1} file.", line, textFileOneLines.Length == minLength ? "first" : "second"); } } } } }
KaloyanchoSt/Telerik-Academy-HW
1. Programming C#/2. CSharp-Part-2/08. Text-Files/04. CompareTextFiles/CompareTextFiles.cs
C#
mit
1,499
import Ember from 'ember'; /** * @class cache */ export default Ember.Object.extend({ /* * The record cache * * @private * @property {Ember.Object} _records * @default null */ _records: null, /* * The promise cache * * @private * @property {Ember.Object} _promises * @default null */ _promises: null, /** * Initialize the cache properties * * @private * @function _setupCache * @observes "init" event * @returns {void} */ _setupCache: function() { this.setProperties({ '_records' : Ember.Object.create(), '_promises' : Ember.Object.create() }); }.on( 'init' ), /** * Checks both caches to see if a record exists * * @function isCached * @param {string} type - The model type of the record to check * @param {integer} id - The record ID to check for cached status * @param {boolean} findOne - Whether to check a single record (true) * @returns {boolean} Whether the record is cached (true) or not (false) */ isCached: function( type, id, findOne ) { if ( id ) { return !!this.fetchById( type, id ); } if ( findOne ) { return !!this.fetchOne( type ); } return !!( this._getManyPromise( type ) || this._getManyRecordsCached( type ) ); }, /** * Returns a record or array of records wrapped in a promise. * * If there are in-flight promises then those will be returned instead. * * @function fetch * @param {string} type * @param {integer} id * @param {boolean} findOne * @returns {Ember.Object|Ember.Array} */ fetch: function( type, id, findOne ) { if ( id ) { return this.fetchById( type, id ); } if ( findOne ) { return this.fetchOne( type ); } return this.fetchMany( type ); }, /** * Returns a record wrapped in a promise. * * If there is an in-flight promise then it will be returned instead. * * @function fetchOne * @param {string} type * @returns {Ember.Promise|false} */ fetchOne: function( type ) { var promise = this._getPromises( type ).get( 'ids.0' ), record; if ( promise ) { return promise; } record = this._getRecords( type ).get( 'records.0' ); if ( !record ) { return false; } return Ember.ObjectProxy.createWithMixins( Ember.PromiseProxyMixin ) .set( 'promise', Ember.RSVP.Promise.resolve( record ) ); }, /** * Return an object promise for this single record * * If there is an in-flight promise for this record that will be returned instead * * @function fetchById * @param {string} type * @param {integer} id * @returns {Ember.Promise|false} */ fetchById: function( type, id ) { var promise = this._getPromiseById( type, id ), record; if ( promise ) { return promise; } record = this._getRecordById( type, id ); if ( !record ) { return false; } return Ember.ObjectProxy.createWithMixins( Ember.PromiseProxyMixin ) .set( 'promise', Ember.RSVP.Promise.resolve( record ) ); }, /** * Return an array promise with all the records for this type * * If there is an in-flight array promise then that will be returned instead. * * @function fetchMany * @param {string} type * @returns {Ember.Array|false} */ fetchMany: function( type ) { var findManyPromise = this._getManyPromise( type ), records; if ( findManyPromise ) { return findManyPromise; } records = this._getRecords( type ).records; if ( !records.length ) { return false; } return Ember.ArrayProxy.createWithMixins( Ember.PromiseProxyMixin ) .set( 'promise', Ember.RSVP.Promise.resolve( records ) ); }, /** * Standard entry point for the store to add things to the cache * * @function addToCache * @param {string} type * @param {integer} id * @param {boolean} findOne * @param {Ember.RSVP} result * @returns {Ember.Object|Ember.Array} */ addToCache: function( type, id, findOne, result ) { if ( id || findOne ) { id = id || 0; if ( result.then ) { return this.addPromise( type, id, result ); } else { return this.addRecord( type, result ); } } if ( result.then ) { return this.addManyPromise( type, result ); } else { return this.addManyRecords( type, result ); } }, /** * Adds a promise that will resolve to a single record * * @function addPromise * @param {string} type * @param {integer} id * @param {Ember.RSVP} promise * @returns {Ember.Object} ObjectProxy or PromiseProxyMixin */ addPromise: function( type, id, promise ) { var _self = this; this._getPromises( type ).set( 'ids.' + id, promise ); promise.then( function( record ) { _self.addRecord( type, record ); delete _self._getPromises( type ).get( 'ids' )[ id ]; }) .catch( function() { delete _self._getPromises( type ).get( 'ids' )[ id ]; }); return promise; }, /** * Adds a `find all` promise that will resolve to an array of records * * @function addManyPromise * @param {string} type * @param {Ember.RSVP} promise * @returns {Ember.Array} ArrayProxy or PromiseProxyMixin */ addManyPromise: function( type, promise ) { var _self = this; this._getPromises( type ).get( 'many' ).addObject( promise ); promise.then( function( records ) { _self.addManyRecords( type, records ); _self._getPromises( type ).get( 'many' ).removeObject( promise ); }) .catch( function() { _self._getPromises( type ).get( 'many' ).removeObject( promise ); }); return promise; }, /** * Add record to cache * * @function addRecord * @param {string} type * @param {Ember.Object} record * @returns {void} */ addRecord: function( type, record ) { var typeRecords = this._getRecords( type ), id = record.get( 'id' ) || 0, oldRecord = typeRecords.ids[ id ]; if ( oldRecord ) { this.removeRecord( type, oldRecord ); } typeRecords.ids[ id ] = record; typeRecords.records.push( record ); }, /** * Add multiple records to cache * * @function addRecords * @param {string} type * @param {array} records * @returns {void} */ addRecords: function( type, records ) { var _self = this; records.forEach( function( record ) { _self.addRecord( type, record ); }); }, /** * add all records for a type * * @function addManyRecords * @param {string} type - Type of model * @param {array} records - Array of model records * @returns {void} */ addManyRecords: function( type, records ) { this.addRecords( type, records ); this._getRecords( type ).set( 'all', true ); }, /** * Remove record from cache * * @function removeRecord * @param {string} type * @param {Ember.Object} record * @returns {void} */ removeRecord: function( type, record ) { var typeRecords = this._getRecords( type ), id = record.get( 'id' ) || 0, idx = typeRecords.records.indexOf( record ); if ( typeRecords ) { delete typeRecords.ids[ id ]; typeRecords.records.splice( idx, 1 ); } }, /** * Remove multiple records * * @function removeRecords * @param {string} type * @param {array} records * @returns {void} */ removeRecords: function( type, records ) { var _self = this; records.map( function( record ) { _self.removeRecord( type, record ); }); }, /** * Clear the cache * * @function clearCache * @param {string} type * @returns {void} */ clearCache: function( type ) { this._initializeRecords( type ); this._initializePromises( type ); }, /** * Initialize entry in records cache * * @private * @function _initializeRecords * @param {string} type * @returns {void} */ _initializeRecords: function( type ) { this.set( '_records.'+type, Ember.Object.create({ all : false, records : [], ids : Ember.Object.create() })); }, /** * Return the record cache * * @private * @function _getRecords * @param {string} type * @returns {Ember.Object} */ _getRecords: function( type ) { var typeRecords = this.get( '_records.' + type ); if ( !typeRecords ) { this._initializeRecords( type ); typeRecords = this.get( '_records.' + type ); } return typeRecords; }, /** * Return record for specified ID * * @private * @function _getRecordById * @param {string} type * @param {integer} id * @returns {Ember.Object} */ _getRecordById: function( type, id ) { return this._getRecords( type ).ids[ id ]; }, /** * Get all records * * @private * @function _getManyRecordsCached * @param {string} type * @returns {Ember.Object} */ _getManyRecordsCached: function( type ) { return this._getRecords( type ).all; }, /** * Initialize entry in promises cache * * @private * @function _initializePromises * @param {string} type * @returns {void} */ _initializePromises: function( type ) { this.set( '_promises.' + type, Ember.Object.create({ many : Ember.ArrayProxy.create( { content: [] } ), ids : Ember.Object.create() })); }, /** * Return the promise cache * * @private * @function _getPromises * @param {string} type * @returns {Ember.Object} */ _getPromises: function( type ) { var typePromises = this.get( '_promises.' + type ); if ( !typePromises ) { this._initializePromises( type ); typePromises = this.get( '_promises.' + type ); } return typePromises; }, /** * Return promise for specified ID * * @private * @function _getPromiseById * @param {string} type * @param {integer} id * @returns {Promise} */ _getPromiseById: function( type, id ) { return this.get( '_promises.' + type + '.ids.' + id ); }, /** * Get all promises * * @private * @function getManyPromise * @param {string} type * @returns {Promise} */ _getManyPromise: function( type ) { var promises = this.get( '_promises.' + type + '.many' ); if( promises && promises.get( 'length' ) ){ return Ember.RSVP.allSettled( promises.get( 'content' ) ).then( function( results ){ var records = []; results.forEach( function( result ){ if( result.state === 'fulfilled' ){ records = records.concat( result.value ); } }); return records; } ); } return undefined; } });
alxyuu/sl-ember-store
addon/cache.js
JavaScript
mit
12,298
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "db.h" #include "walletdb.h" #include "bitcoinrpc.h" #include "net.h" #include "init.h" #include "util.h" #include "ui_interface.h" #include "checkpoints.h" #include <boost/filesystem.hpp> #include <boost/filesystem/fstream.hpp> #include <boost/filesystem/convenience.hpp> #include <boost/interprocess/sync/file_lock.hpp> #include <boost/algorithm/string/predicate.hpp> #include <openssl/crypto.h> #ifndef WIN32 #include <signal.h> #endif using namespace std; using namespace boost; CWallet* pwalletMain; CClientUIInterface uiInterface; ////////////////////////////////////////////////////////////////////////////// // // Shutdown // void ExitTimeout(void* parg) { #ifdef WIN32 Sleep(5000); ExitProcess(0); #endif } void StartShutdown() { #ifdef QT_GUI // ensure we leave the Qt main loop for a clean GUI exit (Shutdown() is called in bitcoin.cpp afterwards) uiInterface.QueueShutdown(); #else // Without UI, Shutdown() can simply be started in a new thread NewThread(Shutdown, NULL); #endif } void Shutdown(void* parg) { static CCriticalSection cs_Shutdown; static bool fTaken; // Make this thread recognisable as the shutdown thread RenameThread("bitcoin-shutoff"); bool fFirstThread = false; { TRY_LOCK(cs_Shutdown, lockShutdown); if (lockShutdown) { fFirstThread = !fTaken; fTaken = true; } } static bool fExit; if (fFirstThread) { fShutdown = true; nTransactionsUpdated++; bitdb.Flush(false); StopNode(); bitdb.Flush(true); boost::filesystem::remove(GetPidFile()); UnregisterWallet(pwalletMain); delete pwalletMain; NewThread(ExitTimeout, NULL); Sleep(50); printf("Copperbars exited\n\n"); fExit = true; #ifndef QT_GUI // ensure non-UI client gets exited here, but let Bitcoin-Qt reach 'return 0;' in bitcoin.cpp exit(0); #endif } else { while (!fExit) Sleep(500); Sleep(100); ExitThread(0); } } void HandleSIGTERM(int) { fRequestShutdown = true; } void HandleSIGHUP(int) { fReopenDebugLog = true; } ////////////////////////////////////////////////////////////////////////////// // // Start // #if !defined(QT_GUI) bool AppInit(int argc, char* argv[]) { bool fRet = false; try { // // Parameters // // If Qt is used, parameters/bitcoin.conf are parsed in qt/bitcoin.cpp's main() ParseParameters(argc, argv); if (!boost::filesystem::is_directory(GetDataDir(false))) { fprintf(stderr, "Error: Specified directory does not exist\n"); Shutdown(NULL); } ReadConfigFile(mapArgs, mapMultiArgs); if (mapArgs.count("-?") || mapArgs.count("--help")) { // First part of help message is specific to bitcoind / RPC client std::string strUsage = _("Copperbars version") + " " + FormatFullVersion() + "\n\n" + _("Usage:") + "\n" + " copperbarsd [options] " + "\n" + " copperbarsd [options] <command> [params] " + _("Send command to -server or copperbarsd") + "\n" + " copperbarsd [options] help " + _("List commands") + "\n" + " copperbarsd [options] help <command> " + _("Get help for a command") + "\n"; strUsage += "\n" + HelpMessage(); fprintf(stdout, "%s", strUsage.c_str()); return false; } // Command-line RPC for (int i = 1; i < argc; i++) if (!IsSwitchChar(argv[i][0]) && !boost::algorithm::istarts_with(argv[i], "copperbars:")) fCommandLine = true; if (fCommandLine) { int ret = CommandLineRPC(argc, argv); exit(ret); } fRet = AppInit2(); } catch (std::exception& e) { PrintException(&e, "AppInit()"); } catch (...) { PrintException(NULL, "AppInit()"); } if (!fRet) Shutdown(NULL); return fRet; } extern void noui_connect(); int main(int argc, char* argv[]) { bool fRet = false; // Connect bitcoind signal handlers noui_connect(); fRet = AppInit(argc, argv); if (fRet && fDaemon) return 0; return 1; } #endif bool static InitError(const std::string &str) { uiInterface.ThreadSafeMessageBox(str, _("Copperbars"), CClientUIInterface::OK | CClientUIInterface::MODAL); return false; } bool static InitWarning(const std::string &str) { uiInterface.ThreadSafeMessageBox(str, _("Copperbars"), CClientUIInterface::OK | CClientUIInterface::ICON_EXCLAMATION | CClientUIInterface::MODAL); return true; } bool static Bind(const CService &addr, bool fError = true) { if (IsLimited(addr)) return false; std::string strError; if (!BindListenPort(addr, strError)) { if (fError) return InitError(strError); return false; } return true; } // Core-specific options shared between UI and daemon std::string HelpMessage() { string strUsage = _("Options:") + "\n" + " -? " + _("This help message") + "\n" + " -conf=<file> " + _("Specify configuration file (default: copperbars.conf)") + "\n" + " -pid=<file> " + _("Specify pid file (default: copperbarsd.pid)") + "\n" + " -gen " + _("Generate coins") + "\n" + " -gen=0 " + _("Don't generate coins") + "\n" + " -datadir=<dir> " + _("Specify data directory") + "\n" + " -dbcache=<n> " + _("Set database cache size in megabytes (default: 25)") + "\n" + " -dblogsize=<n> " + _("Set database disk log size in megabytes (default: 100)") + "\n" + " -timeout=<n> " + _("Specify connection timeout in milliseconds (default: 5000)") + "\n" + " -proxy=<ip:port> " + _("Connect through socks proxy") + "\n" + " -socks=<n> " + _("Select the version of socks proxy to use (4-5, default: 5)") + "\n" + " -tor=<ip:port> " + _("Use proxy to reach tor hidden services (default: same as -proxy)") + "\n" " -dns " + _("Allow DNS lookups for -addnode, -seednode and -connect") + "\n" + " -port=<port> " + _("Listen for connections on <port> (default: 7688 or testnet: 17688)") + "\n" + " -maxconnections=<n> " + _("Maintain at most <n> connections to peers (default: 125)") + "\n" + " -addnode=<ip> " + _("Add a node to connect to and attempt to keep the connection open") + "\n" + " -connect=<ip> " + _("Connect only to the specified node(s)") + "\n" + " -seednode=<ip> " + _("Connect to a node to retrieve peer addresses, and disconnect") + "\n" + " -externalip=<ip> " + _("Specify your own public address") + "\n" + " -onlynet=<net> " + _("Only connect to nodes in network <net> (IPv4, IPv6 or Tor)") + "\n" + " -discover " + _("Discover own IP address (default: 1 when listening and no -externalip)") + "\n" + " -irc " + _("Find peers using internet relay chat (default: 1)") + "\n" + " -listen " + _("Accept connections from outside (default: 1 if no -proxy or -connect)") + "\n" + " -bind=<addr> " + _("Bind to given address. Use [host]:port notation for IPv6") + "\n" + " -dnsseed " + _("Find peers using DNS lookup (default: 0)") + "\n" + " -banscore=<n> " + _("Threshold for disconnecting misbehaving peers (default: 100)") + "\n" + " -bantime=<n> " + _("Number of seconds to keep misbehaving peers from reconnecting (default: 86400)") + "\n" + " -maxreceivebuffer=<n> " + _("Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)") + "\n" + " -maxsendbuffer=<n> " + _("Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)") + "\n" + #ifdef USE_UPNP #if USE_UPNP " -upnp " + _("Use UPnP to map the listening port (default: 1 when listening)") + "\n" + #else " -upnp " + _("Use UPnP to map the listening port (default: 0)") + "\n" + #endif #endif " -detachdb " + _("Detach block and address databases. Increases shutdown time (default: 0)") + "\n" + " -paytxfee=<amt> " + _("Fee per KB to add to transactions you send") + "\n" + #ifdef QT_GUI " -server " + _("Accept command line and JSON-RPC commands") + "\n" + #endif #if !defined(WIN32) && !defined(QT_GUI) " -daemon " + _("Run in the background as a daemon and accept commands") + "\n" + #endif " -testnet " + _("Use the test network") + "\n" + " -debug " + _("Output extra debugging information. Implies all other -debug* options") + "\n" + " -debugnet " + _("Output extra network debugging information") + "\n" + " -logtimestamps " + _("Prepend debug output with timestamp") + "\n" + " -shrinkdebugfile " + _("Shrink debug.log file on client startup (default: 1 when no -debug)") + "\n" + " -printtoconsole " + _("Send trace/debug info to console instead of debug.log file") + "\n" + #ifdef WIN32 " -printtodebugger " + _("Send trace/debug info to debugger") + "\n" + #endif " -rpcuser=<user> " + _("Username for JSON-RPC connections") + "\n" + " -rpcpassword=<pw> " + _("Password for JSON-RPC connections") + "\n" + " -rpcport=<port> " + _("Listen for JSON-RPC connections on <port> (default: 8344 or testnet: 18344)") + "\n" + " -rpcallowip=<ip> " + _("Allow JSON-RPC connections from specified IP address") + "\n" + " -rpcconnect=<ip> " + _("Send commands to node running on <ip> (default: 127.0.0.1)") + "\n" + " -blocknotify=<cmd> " + _("Execute command when the best block changes (%s in cmd is replaced by block hash)") + "\n" + " -upgradewallet " + _("Upgrade wallet to latest format") + "\n" + " -keypool=<n> " + _("Set key pool size to <n> (default: 100)") + "\n" + " -rescan " + _("Rescan the block chain for missing wallet transactions") + "\n" + " -salvagewallet " + _("Attempt to recover private keys from a corrupt wallet.dat") + "\n" + " -checkblocks=<n> " + _("How many blocks to check at startup (default: 2500, 0 = all)") + "\n" + " -checklevel=<n> " + _("How thorough the block verification is (0-6, default: 1)") + "\n" + " -loadblock=<file> " + _("Imports blocks from external blk000?.dat file") + "\n" + "\n" + _("Block creation options:") + "\n" + " -blockminsize=<n> " + _("Set minimum block size in bytes (default: 0)") + "\n" + " -blockmaxsize=<n> " + _("Set maximum block size in bytes (default: 250000)") + "\n" + " -blockprioritysize=<n> " + _("Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)") + "\n" + "\n" + _("SSL options: (see the Bitcoin Wiki for SSL setup instructions)") + "\n" + " -rpcssl " + _("Use OpenSSL (https) for JSON-RPC connections") + "\n" + " -rpcsslcertificatechainfile=<file.cert> " + _("Server certificate file (default: server.cert)") + "\n" + " -rpcsslprivatekeyfile=<file.pem> " + _("Server private key (default: server.pem)") + "\n" + " -rpcsslciphers=<ciphers> " + _("Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)") + "\n"; return strUsage; } /** Initialize bitcoin. * @pre Parameters should be parsed and config file should be read. */ bool AppInit2() { // ********************************************************* Step 1: setup #ifdef _MSC_VER // Turn off Microsoft heap dump noise _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE); _CrtSetReportFile(_CRT_WARN, CreateFileA("NUL", GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, 0)); #endif #if _MSC_VER >= 1400 // Disable confusing "helpful" text message on abort, Ctrl-C _set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT); #endif #ifdef WIN32 // Enable Data Execution Prevention (DEP) // Minimum supported OS versions: WinXP SP3, WinVista >= SP1, Win Server 2008 // A failure is non-critical and needs no further attention! #ifndef PROCESS_DEP_ENABLE // We define this here, because GCCs winbase.h limits this to _WIN32_WINNT >= 0x0601 (Windows 7), // which is not correct. Can be removed, when GCCs winbase.h is fixed! #define PROCESS_DEP_ENABLE 0x00000001 #endif typedef BOOL (WINAPI *PSETPROCDEPPOL)(DWORD); PSETPROCDEPPOL setProcDEPPol = (PSETPROCDEPPOL)GetProcAddress(GetModuleHandleA("Kernel32.dll"), "SetProcessDEPPolicy"); if (setProcDEPPol != NULL) setProcDEPPol(PROCESS_DEP_ENABLE); #endif #ifndef WIN32 umask(077); // Clean shutdown on SIGTERM struct sigaction sa; sa.sa_handler = HandleSIGTERM; sigemptyset(&sa.sa_mask); sa.sa_flags = 0; sigaction(SIGTERM, &sa, NULL); sigaction(SIGINT, &sa, NULL); // Reopen debug.log on SIGHUP struct sigaction sa_hup; sa_hup.sa_handler = HandleSIGHUP; sigemptyset(&sa_hup.sa_mask); sa_hup.sa_flags = 0; sigaction(SIGHUP, &sa_hup, NULL); #endif // ********************************************************* Step 2: parameter interactions fTestNet = GetBoolArg("-testnet"); if (fTestNet) { SoftSetBoolArg("-irc", true); } if (mapArgs.count("-bind")) { // when specifying an explicit binding address, you want to listen on it // even when -connect or -proxy is specified SoftSetBoolArg("-listen", true); } if (mapArgs.count("-connect") && mapMultiArgs["-connect"].size() > 0) { // when only connecting to trusted nodes, do not seed via DNS, or listen by default SoftSetBoolArg("-dnsseed", false); SoftSetBoolArg("-listen", false); } if (mapArgs.count("-proxy")) { // to protect privacy, do not listen by default if a proxy server is specified SoftSetBoolArg("-listen", false); } if (!GetBoolArg("-listen", true)) { // do not map ports or try to retrieve public IP when not listening (pointless) SoftSetBoolArg("-upnp", false); SoftSetBoolArg("-discover", false); } if (mapArgs.count("-externalip")) { // if an explicit public IP is specified, do not try to find others SoftSetBoolArg("-discover", false); } if (GetBoolArg("-salvagewallet")) { // Rewrite just private keys: rescan to find transactions SoftSetBoolArg("-rescan", true); } // ********************************************************* Step 3: parameter-to-internal-flags fDebug = GetBoolArg("-debug"); // -debug implies fDebug* if (fDebug) fDebugNet = true; else fDebugNet = GetBoolArg("-debugnet"); bitdb.SetDetach(GetBoolArg("-detachdb", false)); #if !defined(WIN32) && !defined(QT_GUI) fDaemon = GetBoolArg("-daemon"); #else fDaemon = false; #endif if (fDaemon) fServer = true; else fServer = GetBoolArg("-server"); /* force fServer when running without GUI */ #if !defined(QT_GUI) fServer = true; #endif fPrintToConsole = GetBoolArg("-printtoconsole"); fPrintToDebugger = GetBoolArg("-printtodebugger"); fLogTimestamps = GetBoolArg("-logtimestamps"); if (mapArgs.count("-timeout")) { int nNewTimeout = GetArg("-timeout", 5000); if (nNewTimeout > 0 && nNewTimeout < 600000) nConnectTimeout = nNewTimeout; } // Continue to put "/P2SH/" in the coinbase to monitor // BIP16 support. // This can be removed eventually... const char* pszP2SH = "/P2SH/"; COINBASE_FLAGS << std::vector<unsigned char>(pszP2SH, pszP2SH+strlen(pszP2SH)); if (mapArgs.count("-paytxfee")) { if (!ParseMoney(mapArgs["-paytxfee"], nTransactionFee)) return InitError(strprintf(_("Invalid amount for -paytxfee=<amount>: '%s'"), mapArgs["-paytxfee"].c_str())); if (nTransactionFee > 0.25 * COIN) InitWarning(_("Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.")); } // ********************************************************* Step 4: application initialization: dir lock, daemonize, pidfile, debug log std::string strDataDir = GetDataDir().string(); // Make sure only a single Bitcoin process is using the data directory. boost::filesystem::path pathLockFile = GetDataDir() / ".lock"; FILE* file = fopen(pathLockFile.string().c_str(), "a"); // empty lock file; created if it doesn't exist. if (file) fclose(file); static boost::interprocess::file_lock lock(pathLockFile.string().c_str()); if (!lock.try_lock()) return InitError(strprintf(_("Cannot obtain a lock on data directory %s. NovaCoin is probably already running."), strDataDir.c_str())); #if !defined(WIN32) && !defined(QT_GUI) if (fDaemon) { // Daemonize pid_t pid = fork(); if (pid < 0) { fprintf(stderr, "Error: fork() returned %d errno %d\n", pid, errno); return false; } if (pid > 0) { CreatePidFile(GetPidFile(), pid); return true; } pid_t sid = setsid(); if (sid < 0) fprintf(stderr, "Error: setsid() returned %d errno %d\n", sid, errno); } #endif if (GetBoolArg("-shrinkdebugfile", !fDebug)) ShrinkDebugFile(); printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); printf("Copperbars version %s (%s)\n", FormatFullVersion().c_str(), CLIENT_DATE.c_str()); printf("Using OpenSSL version %s\n", SSLeay_version(SSLEAY_VERSION)); if (!fLogTimestamps) printf("Startup time: %s\n", DateTimeStrFormat("%x %H:%M:%S", GetTime()).c_str()); printf("Default data directory %s\n", GetDefaultDataDir().string().c_str()); printf("Used data directory %s\n", strDataDir.c_str()); std::ostringstream strErrors; if (fDaemon) fprintf(stdout, "Copperbars server starting\n"); int64 nStart; // ********************************************************* Step 5: verify database integrity uiInterface.InitMessage(_("Verifying database integrity...")); if (!bitdb.Open(GetDataDir())) { string msg = strprintf(_("Error initializing database environment %s!" " To recover, BACKUP THAT DIRECTORY, then remove" " everything from it except for wallet.dat."), strDataDir.c_str()); return InitError(msg); } if (GetBoolArg("-salvagewallet")) { // Recover readable keypairs: if (!CWalletDB::Recover(bitdb, "wallet.dat", true)) return false; } if (filesystem::exists(GetDataDir() / "wallet.dat")) { CDBEnv::VerifyResult r = bitdb.Verify("wallet.dat", CWalletDB::Recover); if (r == CDBEnv::RECOVER_OK) { string msg = strprintf(_("Warning: wallet.dat corrupt, data salvaged!" " Original wallet.dat saved as wallet.{timestamp}.bak in %s; if" " your balance or transactions are incorrect you should" " restore from a backup."), strDataDir.c_str()); uiInterface.ThreadSafeMessageBox(msg, _("Copperbars"), CClientUIInterface::OK | CClientUIInterface::ICON_EXCLAMATION | CClientUIInterface::MODAL); } if (r == CDBEnv::RECOVER_FAIL) return InitError(_("wallet.dat corrupt, salvage failed")); } // ********************************************************* Step 6: network initialization int nSocksVersion = GetArg("-socks", 5); if (nSocksVersion != 4 && nSocksVersion != 5) return InitError(strprintf(_("Unknown -socks proxy version requested: %i"), nSocksVersion)); if (mapArgs.count("-onlynet")) { std::set<enum Network> nets; BOOST_FOREACH(std::string snet, mapMultiArgs["-onlynet"]) { enum Network net = ParseNetwork(snet); if (net == NET_UNROUTABLE) return InitError(strprintf(_("Unknown network specified in -onlynet: '%s'"), snet.c_str())); nets.insert(net); } for (int n = 0; n < NET_MAX; n++) { enum Network net = (enum Network)n; if (!nets.count(net)) SetLimited(net); } } #if defined(USE_IPV6) #if ! USE_IPV6 else SetLimited(NET_IPV6); #endif #endif CService addrProxy; bool fProxy = false; if (mapArgs.count("-proxy")) { addrProxy = CService(mapArgs["-proxy"], 9050); if (!addrProxy.IsValid()) return InitError(strprintf(_("Invalid -proxy address: '%s'"), mapArgs["-proxy"].c_str())); if (!IsLimited(NET_IPV4)) SetProxy(NET_IPV4, addrProxy, nSocksVersion); if (nSocksVersion > 4) { #ifdef USE_IPV6 if (!IsLimited(NET_IPV6)) SetProxy(NET_IPV6, addrProxy, nSocksVersion); #endif SetNameProxy(addrProxy, nSocksVersion); } fProxy = true; } // -tor can override normal proxy, -notor disables tor entirely if (!(mapArgs.count("-tor") && mapArgs["-tor"] == "0") && (fProxy || mapArgs.count("-tor"))) { CService addrOnion; if (!mapArgs.count("-tor")) addrOnion = addrProxy; else addrOnion = CService(mapArgs["-tor"], 9050); if (!addrOnion.IsValid()) return InitError(strprintf(_("Invalid -tor address: '%s'"), mapArgs["-tor"].c_str())); SetProxy(NET_TOR, addrOnion, 5); SetReachable(NET_TOR); } // see Step 2: parameter interactions for more information about these fNoListen = !GetBoolArg("-listen", true); fDiscover = GetBoolArg("-discover", true); fNameLookup = GetBoolArg("-dns", true); #ifdef USE_UPNP fUseUPnP = GetBoolArg("-upnp", USE_UPNP); #endif bool fBound = false; if (!fNoListen) { std::string strError; if (mapArgs.count("-bind")) { BOOST_FOREACH(std::string strBind, mapMultiArgs["-bind"]) { CService addrBind; if (!Lookup(strBind.c_str(), addrBind, GetListenPort(), false)) return InitError(strprintf(_("Cannot resolve -bind address: '%s'"), strBind.c_str())); fBound |= Bind(addrBind); } } else { struct in_addr inaddr_any; inaddr_any.s_addr = INADDR_ANY; #ifdef USE_IPV6 if (!IsLimited(NET_IPV6)) fBound |= Bind(CService(in6addr_any, GetListenPort()), false); #endif if (!IsLimited(NET_IPV4)) fBound |= Bind(CService(inaddr_any, GetListenPort()), !fBound); } if (!fBound) return InitError(_("Failed to listen on any port. Use -listen=0 if you want this.")); } if (mapArgs.count("-externalip")) { BOOST_FOREACH(string strAddr, mapMultiArgs["-externalip"]) { CService addrLocal(strAddr, GetListenPort(), fNameLookup); if (!addrLocal.IsValid()) return InitError(strprintf(_("Cannot resolve -externalip address: '%s'"), strAddr.c_str())); AddLocal(CService(strAddr, GetListenPort(), fNameLookup), LOCAL_MANUAL); } } if (mapArgs.count("-reservebalance")) // ppcoin: reserve balance amount { int64 nReserveBalance = 0; if (!ParseMoney(mapArgs["-reservebalance"], nReserveBalance)) { InitError(_("Invalid amount for -reservebalance=<amount>")); return false; } } if (mapArgs.count("-checkpointkey")) // ppcoin: checkpoint master priv key { if (!Checkpoints::SetCheckpointPrivKey(GetArg("-checkpointkey", ""))) InitError(_("Unable to sign checkpoint, wrong checkpointkey?\n")); } BOOST_FOREACH(string strDest, mapMultiArgs["-seednode"]) AddOneShot(strDest); // TODO: replace this by DNSseed AddOneShot(string("82.211.30.212")); AddOneShot(string("81.17.30.114")); // ********************************************************* Step 7: load blockchain if (!bitdb.Open(GetDataDir())) { string msg = strprintf(_("Error initializing database environment %s!" " To recover, BACKUP THAT DIRECTORY, then remove" " everything from it except for wallet.dat."), strDataDir.c_str()); return InitError(msg); } if (GetBoolArg("-loadblockindextest")) { CTxDB txdb("r"); txdb.LoadBlockIndex(); PrintBlockTree(); return false; } uiInterface.InitMessage(_("Loading block index...")); printf("Loading block index...\n"); nStart = GetTimeMillis(); if (!LoadBlockIndex()) return InitError(_("Error loading blkindex.dat")); // as LoadBlockIndex can take several minutes, it's possible the user // requested to kill bitcoin-qt during the last operation. If so, exit. // As the program has not fully started yet, Shutdown() is possibly overkill. if (fRequestShutdown) { printf("Shutdown requested. Exiting.\n"); return false; } printf(" block index %15"PRI64d"ms\n", GetTimeMillis() - nStart); if (GetBoolArg("-printblockindex") || GetBoolArg("-printblocktree")) { PrintBlockTree(); return false; } if (mapArgs.count("-printblock")) { string strMatch = mapArgs["-printblock"]; int nFound = 0; for (map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.begin(); mi != mapBlockIndex.end(); ++mi) { uint256 hash = (*mi).first; if (strncmp(hash.ToString().c_str(), strMatch.c_str(), strMatch.size()) == 0) { CBlockIndex* pindex = (*mi).second; CBlock block; block.ReadFromDisk(pindex); block.BuildMerkleTree(); block.print(); printf("\n"); nFound++; } } if (nFound == 0) printf("No blocks matching %s were found\n", strMatch.c_str()); return false; } // ********************************************************* Step 8: load wallet uiInterface.InitMessage(_("Loading wallet...")); printf("Loading wallet...\n"); nStart = GetTimeMillis(); bool fFirstRun = true; pwalletMain = new CWallet("wallet.dat"); DBErrors nLoadWalletRet = pwalletMain->LoadWallet(fFirstRun); if (nLoadWalletRet != DB_LOAD_OK) { if (nLoadWalletRet == DB_CORRUPT) strErrors << _("Error loading wallet.dat: Wallet corrupted") << "\n"; else if (nLoadWalletRet == DB_NONCRITICAL_ERROR) { string msg(_("Warning: error reading wallet.dat! All keys read correctly, but transaction data" " or address book entries might be missing or incorrect.")); uiInterface.ThreadSafeMessageBox(msg, _("Copperbars"), CClientUIInterface::OK | CClientUIInterface::ICON_EXCLAMATION | CClientUIInterface::MODAL); } else if (nLoadWalletRet == DB_TOO_NEW) strErrors << _("Error loading wallet.dat: Wallet requires newer version of Copperbars") << "\n"; else if (nLoadWalletRet == DB_NEED_REWRITE) { strErrors << _("Wallet needed to be rewritten: restart Copperbars to complete") << "\n"; printf("%s", strErrors.str().c_str()); return InitError(strErrors.str()); } else strErrors << _("Error loading wallet.dat") << "\n"; } if (GetBoolArg("-upgradewallet", fFirstRun)) { int nMaxVersion = GetArg("-upgradewallet", 0); if (nMaxVersion == 0) // the -upgradewallet without argument case { printf("Performing wallet upgrade to %i\n", FEATURE_LATEST); nMaxVersion = CLIENT_VERSION; pwalletMain->SetMinVersion(FEATURE_LATEST); // permanently upgrade the wallet immediately } else printf("Allowing wallet upgrade up to %i\n", nMaxVersion); if (nMaxVersion < pwalletMain->GetVersion()) strErrors << _("Cannot downgrade wallet") << "\n"; pwalletMain->SetMaxVersion(nMaxVersion); } if (fFirstRun) { // Create new keyUser and set as default key RandAddSeedPerfmon(); CPubKey newDefaultKey; if (!pwalletMain->GetKeyFromPool(newDefaultKey, false)) strErrors << _("Cannot initialize keypool") << "\n"; pwalletMain->SetDefaultKey(newDefaultKey); if (!pwalletMain->SetAddressBookName(pwalletMain->vchDefaultKey.GetID(), "")) strErrors << _("Cannot write default address") << "\n"; } printf("%s", strErrors.str().c_str()); printf(" wallet %15"PRI64d"ms\n", GetTimeMillis() - nStart); RegisterWallet(pwalletMain); CBlockIndex *pindexRescan = pindexBest; if (GetBoolArg("-rescan")) pindexRescan = pindexGenesisBlock; else { CWalletDB walletdb("wallet.dat"); CBlockLocator locator; if (walletdb.ReadBestBlock(locator)) pindexRescan = locator.GetBlockIndex(); } if (pindexBest != pindexRescan && pindexBest && pindexRescan && pindexBest->nHeight > pindexRescan->nHeight) { uiInterface.InitMessage(_("Rescanning...")); printf("Rescanning last %i blocks (from block %i)...\n", pindexBest->nHeight - pindexRescan->nHeight, pindexRescan->nHeight); nStart = GetTimeMillis(); pwalletMain->ScanForWalletTransactions(pindexRescan, true); printf(" rescan %15"PRI64d"ms\n", GetTimeMillis() - nStart); } // ********************************************************* Step 9: import blocks if (mapArgs.count("-loadblock")) { uiInterface.InitMessage(_("Importing blockchain data file.")); BOOST_FOREACH(string strFile, mapMultiArgs["-loadblock"]) { FILE *file = fopen(strFile.c_str(), "rb"); if (file) LoadExternalBlockFile(file); } } filesystem::path pathBootstrap = GetDataDir() / "bootstrap.dat"; if (filesystem::exists(pathBootstrap)) { uiInterface.InitMessage(_("Importing bootstrap blockchain data file.")); FILE *file = fopen(pathBootstrap.string().c_str(), "rb"); if (file) { filesystem::path pathBootstrapOld = GetDataDir() / "bootstrap.dat.old"; LoadExternalBlockFile(file); RenameOver(pathBootstrap, pathBootstrapOld); } } // ********************************************************* Step 10: load peers uiInterface.InitMessage(_("Loading addresses...")); printf("Loading addresses...\n"); nStart = GetTimeMillis(); { CAddrDB adb; if (!adb.Read(addrman)) printf("Invalid or missing peers.dat; recreating\n"); } printf("Loaded %i addresses from peers.dat %"PRI64d"ms\n", addrman.size(), GetTimeMillis() - nStart); // ********************************************************* Step 11: start node if (!CheckDiskSpace()) return false; RandAddSeedPerfmon(); //// debug print printf("mapBlockIndex.size() = %"PRIszu"\n", mapBlockIndex.size()); printf("nBestHeight = %d\n", nBestHeight); printf("setKeyPool.size() = %"PRIszu"\n", pwalletMain->setKeyPool.size()); printf("mapWallet.size() = %"PRIszu"\n", pwalletMain->mapWallet.size()); printf("mapAddressBook.size() = %"PRIszu"\n", pwalletMain->mapAddressBook.size()); if (!NewThread(StartNode, NULL)) InitError(_("Error: could not start node")); if (fServer) NewThread(ThreadRPCServer, NULL); // ********************************************************* Step 12: finished uiInterface.InitMessage(_("Done loading")); printf("Done loading\n"); if (!strErrors.str().empty()) return InitError(strErrors.str()); // Add wallet transactions that aren't already in a block to mapTransactions pwalletMain->ReacceptWalletTransactions(); #if !defined(QT_GUI) // Loop until process is exit()ed from shutdown() function, // called from ThreadRPCServer thread when a "stop" command is received. while (1) Sleep(5000); #endif return true; }
copperbars/copperbars
src/init.cpp
C++
mit
33,459
/* * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com> * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <pci.h> #include <pci_rom.h> #include <asm/pci.h> #include <asm/arch/device.h> #include <asm/arch/qemu.h> DECLARE_GLOBAL_DATA_PTR; static bool i440fx; void board_pci_setup_hose(struct pci_controller *hose) { hose->first_busno = 0; hose->last_busno = 0; /* PCI memory space */ pci_set_region(hose->regions + 0, CONFIG_PCI_MEM_BUS, CONFIG_PCI_MEM_PHYS, CONFIG_PCI_MEM_SIZE, PCI_REGION_MEM); /* PCI IO space */ pci_set_region(hose->regions + 1, CONFIG_PCI_IO_BUS, CONFIG_PCI_IO_PHYS, CONFIG_PCI_IO_SIZE, PCI_REGION_IO); pci_set_region(hose->regions + 2, CONFIG_PCI_PREF_BUS, CONFIG_PCI_PREF_PHYS, CONFIG_PCI_PREF_SIZE, PCI_REGION_PREFETCH); pci_set_region(hose->regions + 3, 0, 0, gd->ram_size, PCI_REGION_MEM | PCI_REGION_SYS_MEMORY); hose->region_count = 4; } int board_pci_post_scan(struct pci_controller *hose) { int ret = 0; u16 device, xbcs; int pam, i; pci_dev_t vga; ulong start; /* * i440FX and Q35 chipset have different PAM register offset, but with * the same bitfield layout. Here we determine the offset based on its * PCI device ID. */ device = x86_pci_read_config16(PCI_BDF(0, 0, 0), PCI_DEVICE_ID); i440fx = (device == PCI_DEVICE_ID_INTEL_82441); pam = i440fx ? I440FX_PAM : Q35_PAM; /* * Initialize Programmable Attribute Map (PAM) Registers * * Configure legacy segments C/D/E/F to system RAM */ for (i = 0; i < PAM_NUM; i++) x86_pci_write_config8(PCI_BDF(0, 0, 0), pam + i, PAM_RW); if (i440fx) { /* * Enable legacy IDE I/O ports decode * * Note: QEMU always decode legacy IDE I/O port on PIIX chipset. * However Linux ata_piix driver does sanity check on these two * registers to see whether legacy ports decode is turned on. * This is to make Linux ata_piix driver happy. */ x86_pci_write_config16(PIIX_IDE, IDE0_TIM, IDE_DECODE_EN); x86_pci_write_config16(PIIX_IDE, IDE1_TIM, IDE_DECODE_EN); /* Enable I/O APIC */ xbcs = x86_pci_read_config16(PIIX_ISA, XBCS); xbcs |= APIC_EN; x86_pci_write_config16(PIIX_ISA, XBCS, xbcs); } else { /* Configure PCIe ECAM base address */ x86_pci_write_config32(PCI_BDF(0, 0, 0), PCIEX_BAR, CONFIG_PCIE_ECAM_BASE | BAR_EN); } /* * QEMU emulated graphic card shows in the PCI configuration space with * PCI vendor id and device id as an artificial pair 0x1234:0x1111. * It is on PCI bus 0, function 0, but device number is not consistent * for the two x86 targets it supports. For i440FX and PIIX chipset * board, it shows as device 2, while for Q35 and ICH9 chipset board, * it shows as device 1. */ vga = i440fx ? I440FX_VGA : Q35_VGA; start = get_timer(0); ret = pci_run_vga_bios(vga, NULL, PCI_ROM_USE_NATIVE); debug("BIOS ran in %lums\n", get_timer(start)); return ret; } #ifdef CONFIG_GENERATE_MP_TABLE int mp_determine_pci_dstirq(int bus, int dev, int func, int pirq) { u8 irq; if (i440fx) { /* * Not like most x86 platforms, the PIRQ[A-D] on PIIX3 are not * connected to I/O APIC INTPIN#16-19. Instead they are routed * to an irq number controled by the PIRQ routing register. */ irq = x86_pci_read_config8(PCI_BDF(bus, dev, func), PCI_INTERRUPT_LINE); } else { /* * ICH9's PIRQ[A-H] are not consecutive numbers from 0 to 7. * PIRQ[A-D] still maps to [0-3] but PIRQ[E-H] maps to [8-11]. */ irq = pirq < 8 ? pirq + 16 : pirq + 12; } return irq; } #endif
guileschool/BEAGLEBONE-tutorials
BBB-firmware/u-boot-v2015.10-rc2/arch/x86/cpu/qemu/pci.c
C
mit
3,657
export const DEFAULT_PANEL_WIDTH = 3; export const DEFAULT_PANEL_HEIGHT = 2; /** * Represents a panel on a grid. Keeps track of position in the grid and what visualization it * contains. * * @typedef {Object} PanelState * @property {number} id - Id of the visualization contained in the panel. * @property {Element} $el - A reference to the gridster widget holding this panel. Used to * update the size and column attributes. TODO: move out of panel state as this couples state to ui. * @property {string} type - Type of the visualization in the panel. * @property {number} panelIndex - Unique id to represent this panel in the grid. Note that this is * NOT the index in the panels array. While it may initially represent that, it is not * updated with changes in a dashboard, and is simply used as a unique identifier. The name * remains as panelIndex for backward compatibility reasons - changing it can break reporting. * @property {number} size_x - Width of the panel. * @property {number} size_y - Height of the panel. * @property {number} col - Column index in the grid. * @property {number} row - Row index in the grid. */ /** * Creates and initializes a basic panel state. * @param {number} id * @param {string} type * @param {number} panelIndex * @return {PanelState} */ export function createPanelState(id, type, panelIndex) { return { size_x: DEFAULT_PANEL_WIDTH, size_y: DEFAULT_PANEL_HEIGHT, panelIndex: panelIndex, type: type, id: id }; }
rosberglinhares/IISLogMonitor
IISLogMonitor.Setup.Files/kibana-5.2.0-windows-x86/src/core_plugins/kibana/public/dashboard/components/panel/lib/panel_state.js
JavaScript
mit
1,503
// // UIView+Border.m // MMBangADDemoProject // // Created by CuiPanJun on 15/7/16. // Copyright (c) 2015年 CuiPanJun. All rights reserved. // #import "UIView+Border.h" #import <objc/runtime.h> #define BorderStyleKey_Width @"width" #define BorderStyleKey_Color @"color" #define BorderStyleKey_Inset @"inset" @interface UIView (BorderPrivate) - (NSMutableDictionary *)borderStylesDict; - (NSMutableDictionary *)borderViewsDict; @end @implementation UIView (Border) - (NSDictionary *)borderWithStyleForEdge:(UIViewBorderEdge)edge{ NSMutableDictionary *dicts = [self borderStylesDict]; return [dicts objectForKey:[NSNumber numberWithInteger:edge]]; } - (void)setBorderWithStyle:(NSDictionary *)style forEdge:(UIViewBorderEdge)edge{ NSMutableDictionary *dicts = [self borderStylesDict]; BOOL clean = [style count] == 0; if ((edge & UIViewBorderEdgeTop) == UIViewBorderEdgeTop) { if (clean) { [dicts removeObjectForKey:[NSNumber numberWithInteger:UIViewBorderEdgeTop]]; }else{ [dicts setObject:style forKey:[NSNumber numberWithInteger:UIViewBorderEdgeTop]]; } } if ((edge & UIViewBorderEdgeLeft) == UIViewBorderEdgeLeft) { if (clean) { [dicts removeObjectForKey:[NSNumber numberWithInteger:UIViewBorderEdgeLeft]]; }else{ [dicts setObject:style forKey:[NSNumber numberWithInteger:UIViewBorderEdgeLeft]]; } } if ((edge & UIViewBorderEdgeBottom) == UIViewBorderEdgeBottom) { if (clean) { [dicts removeObjectForKey:[NSNumber numberWithInteger:UIViewBorderEdgeBottom]]; }else{ [dicts setObject:style forKey:[NSNumber numberWithInteger:UIViewBorderEdgeBottom]]; } } if ((edge & UIViewBorderEdgeRight) == UIViewBorderEdgeRight) { if (clean) { [dicts removeObjectForKey:[NSNumber numberWithInteger:UIViewBorderEdgeRight]]; }else{ [dicts setObject:style forKey:[NSNumber numberWithInteger:UIViewBorderEdgeRight]]; } } [self updateBorderForEdge:edge]; } - (void)updateBorders{ [self updateBorderForEdge:UIViewBorderEdgeAll]; } - (void)clearAllBorders{ [self setBorderWithStyle:nil forEdge:UIViewBorderEdgeAll]; } - (void)updateBorderForEdge:(UIViewBorderEdge)edge{ NSMutableDictionary *styleDicts = [self borderStylesDict]; NSMutableDictionary *viewDicts = [self borderViewsDict]; if ((edge & UIViewBorderEdgeTop) == UIViewBorderEdgeTop) { NSDictionary *style = [styleDicts objectForKey:[NSNumber numberWithInteger:UIViewBorderEdgeTop]]; UIView *borderView = [viewDicts objectForKey:[NSNumber numberWithInteger:UIViewBorderEdgeTop]]; [self updateBorder:borderView style:style forEdge:UIViewBorderEdgeTop]; } if ((edge & UIViewBorderEdgeLeft) == UIViewBorderEdgeLeft) { NSDictionary *style = [styleDicts objectForKey:[NSNumber numberWithInteger:UIViewBorderEdgeLeft]]; UIView *borderView = [viewDicts objectForKey:[NSNumber numberWithInteger:UIViewBorderEdgeLeft]]; [self updateBorder:borderView style:style forEdge:UIViewBorderEdgeLeft]; } if ((edge & UIViewBorderEdgeBottom) == UIViewBorderEdgeBottom) { NSDictionary *style = [styleDicts objectForKey:[NSNumber numberWithInteger:UIViewBorderEdgeBottom]]; UIView *borderView = [viewDicts objectForKey:[NSNumber numberWithInteger:UIViewBorderEdgeBottom]]; [self updateBorder:borderView style:style forEdge:UIViewBorderEdgeBottom]; } if ((edge & UIViewBorderEdgeRight) == UIViewBorderEdgeRight) { NSDictionary *style = [styleDicts objectForKey:[NSNumber numberWithInteger:UIViewBorderEdgeRight]]; UIView *borderView = [viewDicts objectForKey:[NSNumber numberWithInteger:UIViewBorderEdgeRight]]; [self updateBorder:borderView style:style forEdge:UIViewBorderEdgeRight]; } } - (void)updateBorder:(UIView *)borderV style:(NSDictionary *)style forEdge:(UIViewBorderEdge)edge{ // clear style if (style == nil) { borderV.hidden = YES; return; } CGRect lineFrame = CGRectZero; UIViewAutoresizing autoResizing = UIViewAutoresizingNone; CGFloat scale = [[UIScreen mainScreen] scale]; UIEdgeInsets insets = UIEdgeInsetsFromString([style objectForKey:BorderStyleKey_Inset]); insets = UIEdgeInsetsMake(insets.top/scale, insets.left/scale, insets.bottom/scale, insets.right/scale); id widthValue = [style objectForKey:BorderStyleKey_Width]; if (widthValue == nil) { widthValue = [NSNumber numberWithFloat:1.0f]; } CGFloat lineWidth = [widthValue doubleValue]/scale; CGFloat lineLength = (edge & (UIViewBorderEdgeLeft | UIViewBorderEdgeRight))?CGRectGetHeight(self.bounds):CGRectGetWidth(self.bounds); switch (edge) { case UIViewBorderEdgeTop: { lineFrame.origin.x = insets.left; lineFrame.origin.y = insets.top; lineFrame.size.width = lineLength - (insets.left + insets.right); lineFrame.size.height = lineWidth; autoResizing = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleBottomMargin; } break; case UIViewBorderEdgeLeft: { lineFrame.origin.x = insets.left; lineFrame.origin.y = insets.top; lineFrame.size.width = lineWidth; lineFrame.size.height = lineLength - (insets.top + insets.bottom); autoResizing = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleRightMargin; } break; case UIViewBorderEdgeBottom: { lineFrame.origin.x = insets.left; lineFrame.origin.y = CGRectGetHeight(self.bounds) - lineWidth - insets.bottom; lineFrame.size.width = lineLength - (insets.left + insets.right); lineFrame.size.height = lineWidth; autoResizing = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleTopMargin; } break; case UIViewBorderEdgeRight: { lineFrame.origin.x = CGRectGetWidth(self.bounds) - lineWidth - insets.right; lineFrame.origin.y = insets.top; lineFrame.size.width = lineWidth; lineFrame.size.height = lineLength - (insets.top + insets.bottom); autoResizing = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleLeftMargin; } break; default: break; } if (borderV == nil) { NSMutableDictionary *viewDicts = [self borderViewsDict]; borderV = [[UIView alloc] initWithFrame:lineFrame]; [viewDicts setObject:borderV forKey:[NSNumber numberWithInteger:edge]]; } borderV.hidden = NO; borderV.frame = lineFrame; borderV.autoresizingMask = autoResizing; UIColor *borderColor = [style objectForKey:BorderStyleKey_Color]; borderV.backgroundColor = borderColor; [self addSubview:borderV]; [self bringSubviewToFront:borderV]; } #pragma mark - Property - (NSMutableDictionary *)borderStylesDict{ id mutDict = objc_getAssociatedObject(self, _cmd); if (!mutDict) { mutDict = [[NSMutableDictionary alloc] init]; objc_setAssociatedObject(self, _cmd, mutDict, OBJC_ASSOCIATION_RETAIN_NONATOMIC); } return mutDict; } - (NSMutableDictionary *)borderViewsDict{ id mutDict = objc_getAssociatedObject(self, _cmd); if (!mutDict) { mutDict = [[NSMutableDictionary alloc] init]; objc_setAssociatedObject(self, _cmd, mutDict, OBJC_ASSOCIATION_RETAIN_NONATOMIC); } return mutDict; } @end
andy380743909/UIViewBorder
UIView-Borders/UIView+Border.m
Matlab
mit
7,774
using System; using System.Collections.Generic; using System.Threading.Tasks; namespace SuperGlue.Web.Http { using AppFunc = Func<IDictionary<string, object>, Task>; public class SetCacheHeaders { private readonly AppFunc _next; public SetCacheHeaders(AppFunc next) { if (next == null) throw new ArgumentNullException(nameof(next)); _next = next; } public async Task Invoke(IDictionary<string, object> environment) { var cachedOutput = environment.GetOutput() as IWantToBeCached; if(cachedOutput != null) SetCacheOptions(cachedOutput.GetCacheSettings(), environment); await _next(environment).ConfigureAwait(false); } private static void SetCacheOptions(CacheOptions cacheOptions, IDictionary<string, object> environment) { var response = environment.GetResponse(); if (cacheOptions == null) return; if (cacheOptions.Disable) { response.Headers.CacheControl = "no-cache, no-store, must-revalidate"; response.Headers.Pragma = "no-cache"; response.Headers.Expires = null; return; } response.Headers.CacheControl = cacheOptions.ToHeaderString(); if (cacheOptions.AbsoluteExpiry.HasValue) response.Headers.Expires = cacheOptions.AbsoluteExpiry.Value; if (cacheOptions.VaryByHeaders != null && cacheOptions.VaryByHeaders.Count > 0) response.Headers.Vary = string.Join(", ", cacheOptions.VaryByHeaders); } } }
SuperGlueFx/SuperGlue
src/SuperGlue.Web.Http/SetCacheHeaders.cs
C#
mit
1,715
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Finder\Exception; @trigger_error('The '.__NAMESPACE__.'\AdapterFailureException class is deprecated since version 2.8 and will be removed in 3.0.', E_USER_DEPRECATED); use Symfony\Component\Finder\Adapter\AdapterInterface; /** * Base exception for all adapter failures. * * @author Jean-François Simon <contact@jfsimon.fr> * * @deprecated since 2.8, to be removed in 3.0. */ class AdapterFailureException extends \RuntimeException implements ExceptionInterface { private $adapter; /** * @param AdapterInterface $adapter * @param string|null $message * @param \Exception|null $previous */ public function __construct(AdapterInterface $adapter, $message = null, \Exception $previous = null) { $this->adapter = $adapter; parent::__construct($message ?: 'Search failed with "'.$adapter->getName().'" adapter.', $previous); } /** * {@inheritdoc} */ public function getAdapter() { return $this->adapter; } }
BaderLab/openPIP
vendor/symfony/symfony/src/Symfony/Component/Finder/Exception/AdapterFailureException.php
PHP
mit
1,276
import * as React from 'react'; import Paper from '@material-ui/core/Paper'; import Box from '@material-ui/core/Box'; import Grid from '@material-ui/core/Grid'; export default function StressNestedGrid() { return ( <Box sx={{ width: 600, display: 'flex', bgcolor: 'secondary.main', '& .MuiPaper-root': { p: 2, textAlign: 'center', }, }} > <Grid container spacing={1}> <Grid item xs={12}> <Paper>xs=12</Paper> </Grid> <Grid item xs={6}> <Paper>xs=6</Paper> </Grid> <Grid item xs={6}> <Paper>xs=6</Paper> </Grid> <Grid item container direction="column-reverse" xs={6} spacing={3}> <Grid item xs={6}> <Paper>xs=6</Paper> </Grid> <Grid item container spacing={2} xs={6}> <Grid item container spacing={1} xs={6}> <Grid item xs={7}> <Paper>xs=7</Paper> </Grid> <Grid item xs={5}> <Paper>xs=5</Paper> </Grid> </Grid> <Grid item xs={6}> <Paper>xs=6</Paper> </Grid> </Grid> </Grid> <Grid item container direction="column" xs={6} spacing={3}> <Grid item xs={6}> <Paper>xs=6</Paper> </Grid> <Grid item xs={6}> <Paper>xs=6</Paper> </Grid> </Grid> <Grid item container xs={6} spacing={3}> <Grid item xs={8}> <Paper>xs=8</Paper> </Grid> <Grid item xs={4}> <Paper>xs=4</Paper> </Grid> </Grid> <Grid item container xs={6} spacing={2}> <Grid item xs={4}> <Paper>xs=4</Paper> </Grid> <Grid item xs={4}> <Paper>xs=4</Paper> </Grid> <Grid item xs={4}> <Paper>xs=4</Paper> </Grid> </Grid> <Grid item container xs={6} spacing={5}> <Grid item xs={6}> <Paper>xs=6</Paper> </Grid> <Grid item xs={6}> <Paper>xs=6</Paper> </Grid> </Grid> </Grid> </Box> ); }
callemall/material-ui
test/regressions/fixtures/Grid/StressNestedGrid.js
JavaScript
mit
2,280
package net.dean.jraw.test import com.gargoylesoftware.htmlunit.Page import com.gargoylesoftware.htmlunit.WebClient import com.gargoylesoftware.htmlunit.html.HtmlButton import com.gargoylesoftware.htmlunit.html.HtmlElement import com.gargoylesoftware.htmlunit.html.HtmlInput import com.gargoylesoftware.htmlunit.html.HtmlPage import com.squareup.moshi.Moshi import com.winterbe.expekt.should import net.dean.jraw.RedditClient import net.dean.jraw.oauth.OAuthHelper import net.dean.jraw.oauth.StatefulAuthHelper /* Utility functions to emulate browser authentication */ fun createWebClient(): WebClient { val client = WebClient() // Reddit does some weird things with JS, but it's not necessary to be emulating them for this test client.options.isJavaScriptEnabled = false // Turn off CSS because Jacoco complains that one of the classes HtmlUnit it pulls in is too long (like ~5000 lines) // com.steadystate.css.parser.SACParserCSS3TokenManager client.options.isCssEnabled = false // Save some time client.options.isDownloadImages = false return client } fun doBrowserLogin(vararg scopes: String = arrayOf("identity")): Pair<StatefulAuthHelper, HtmlPage> { val helper = OAuthHelper.interactive(newOkHttpAdapter(), CredentialsUtil.app, InMemoryTokenStore()) // Test state change once we get the authorization URL helper.authStatus.should.equal(StatefulAuthHelper.Status.INIT) val url = helper.getAuthorizationUrl(requestRefreshToken = true, useMobileSite = false, scopes = *scopes) helper.authStatus.should.equal(StatefulAuthHelper.Status.WAITING_FOR_CHALLENGE) val client = createWebClient() // First we're gonna log in with the testing user credentials val loginPage = client.getPage<HtmlPage>(url) val loginForm = loginPage.forms.first { it.actionAttribute.endsWith("/login") } loginForm.getInputByName<HtmlInput>("username").valueAttribute = CredentialsUtil.script.username loginForm.getInputByName<HtmlInput>("password").valueAttribute = CredentialsUtil.script.password // reddit responds with a JSON object whose only key is "dest", whose value is a URL val page: Page = findChild<HtmlButton>(loginForm, "button", "type" to "submit").click() val adapter = moshi.adapter<LoginResponse>(LoginResponse::class.java) val response = adapter.fromJson(page.webResponse.contentAsString)!! // Open the page we were given val authPage = client.getPage<HtmlPage>(response.dest) return helper to authPage } fun emulateBrowserAuth(vararg scopes: String = arrayOf("identity")): RedditClient { val (helper, authorizePage) = doBrowserLogin(*scopes) val redirectPage: HtmlPage = findChild<HtmlInput>(authorizePage.body, "input", "name" to "authorize").click() val url = redirectPage.url.toExternalForm() helper.isFinalRedirectUrl(url).should.be.`true` val reddit = helper.onUserChallenge(url) helper.authStatus.should.equal(StatefulAuthHelper.Status.AUTHORIZED) return reddit } fun <E : HtmlElement> findChild(parent: HtmlElement, elName: String, attribute: Pair<String, String>): E { val elements: List<E> = parent.getElementsByAttribute(elName, attribute.first, attribute.second) if (elements.isEmpty()) throw NoSuchElementException("Could not find element for selector '$elName[${attribute.first}=\"${attribute.second}\"']") return elements[0] } private data class LoginResponse(val dest: String) private val moshi = Moshi.Builder().build()
Saketme/JRAW
lib/src/test/kotlin/net/dean/jraw/test/browser.kt
Kotlin
mit
3,505
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width" /> <link rel="shortcut icon" type="image/x-icon" href="../../../favicon.ico" /> <title>Formatter - Android SDK | Android Developers</title> <!-- STYLESHEETS --> <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:regular,medium,thin,italic,mediumitalic,bold" title="roboto"> <link href="../../../assets/css/default.css" rel="stylesheet" type="text/css"> <!-- FULLSCREEN STYLESHEET --> <link href="../../../assets/css/fullscreen.css" rel="stylesheet" class="fullscreen" type="text/css"> <!-- JAVASCRIPT --> <script src="http://www.google.com/jsapi" type="text/javascript"></script> <script src="../../../assets/js/android_3p-bundle.js" type="text/javascript"></script> <script type="text/javascript"> var toRoot = "../../../"; var devsite = false; </script> <script src="../../../assets/js/docs.js" type="text/javascript"></script> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-5831155-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> </head> <body class="gc-documentation develop" itemscope itemtype="http://schema.org/Article"> <div id="doc-api-level" class="1" style="display:none"></div> <a name="top"></a> <a name="top"></a> <!-- Header --> <div id="header"> <div class="wrap" id="header-wrap"> <div class="col-3 logo"> <a href="../../../index.html"> <img src="../../../assets/images/dac_logo.png" width="123" height="25" alt="Android Developers" /> </a> <div class="btn-quicknav" id="btn-quicknav"> <a href="#" class="arrow-inactive">Quicknav</a> <a href="#" class="arrow-active">Quicknav</a> </div> </div> <ul class="nav-x col-9"> <li class="design"> <a href="../../../design/index.html" zh-tw-lang="設計" zh-cn-lang="设计" ru-lang="Проектирование" ko-lang="디자인" ja-lang="設計" es-lang="Diseñar" >Design</a></li> <li class="develop"><a href="../../../develop/index.html" zh-tw-lang="開發" zh-cn-lang="开发" ru-lang="Разработка" ko-lang="개발" ja-lang="開発" es-lang="Desarrollar" >Develop</a></li> <li class="distribute last"><a href="../../../distribute/index.html" zh-tw-lang="發佈" zh-cn-lang="分发" ru-lang="Распространение" ko-lang="배포" ja-lang="配布" es-lang="Distribuir" >Distribute</a></li> </ul> <!-- New Search --> <div class="menu-container"> <div class="moremenu"> <div id="more-btn"></div> </div> <div class="morehover" id="moremenu"> <div class="top"></div> <div class="mid"> <div class="header">Links</div> <ul> <li><a href="https://play.google.com/apps/publish/">Google Play Developer Console</a></li> <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li> <li><a href="../../../about/index.html">About Android</a></li> </ul> <div class="header">Android Sites</div> <ul> <li><a href="http://www.android.com">Android.com</a></li> <li class="active"><a>Android Developers</a></li> <li><a href="http://source.android.com">Android Open Source Project</a></li> </ul> <br class="clearfix" /> </div> <div class="bottom"></div> </div> <div class="search" id="search-container"> <div class="search-inner"> <div id="search-btn"></div> <div class="left"></div> <form onsubmit="return submit_search()"> <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q" onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)" onkeydown="return search_changed(event, true, '../../../')" onkeyup="return search_changed(event, false, '../../../')" /> </form> <div class="right"></div> <a class="close hide">close</a> <div class="left"></div> <div class="right"></div> </div> </div> <div class="search_filtered_wrapper reference"> <div class="suggest-card reference no-display"> <ul class="search_filtered"> </ul> </div> </div> <div class="search_filtered_wrapper docs"> <div class="suggest-card dummy no-display">&nbsp;</div> <div class="suggest-card develop no-display"> <ul class="search_filtered"> </ul> <div class="child-card guides no-display"> </div> <div class="child-card training no-display"> </div> </div> <div class="suggest-card design no-display"> <ul class="search_filtered"> </ul> </div> <div class="suggest-card distribute no-display"> <ul class="search_filtered"> </ul> </div> </div> </div> <!-- /New Search> <!-- Expanded quicknav --> <div id="quicknav" class="col-9"> <ul> <li class="design"> <ul> <li><a href="../../../design/index.html">Get Started</a></li> <li><a href="../../../design/style/index.html">Style</a></li> <li><a href="../../../design/patterns/index.html">Patterns</a></li> <li><a href="../../../design/building-blocks/index.html">Building Blocks</a></li> <li><a href="../../../design/downloads/index.html">Downloads</a></li> <li><a href="../../../design/videos/index.html">Videos</a></li> </ul> </li> <li class="develop"> <ul> <li><a href="../../../training/index.html" zh-tw-lang="訓練課程" zh-cn-lang="培训" ru-lang="Курсы" ko-lang="교육" ja-lang="トレーニング" es-lang="Capacitación" >Training</a></li> <li><a href="../../../guide/components/index.html" zh-tw-lang="API 指南" zh-cn-lang="API 指南" ru-lang="Руководства по API" ko-lang="API 가이드" ja-lang="API ガイド" es-lang="Guías de la API" >API Guides</a></li> <li><a href="../../../reference/packages.html" zh-tw-lang="參考資源" zh-cn-lang="参考" ru-lang="Справочник" ko-lang="참조문서" ja-lang="リファレンス" es-lang="Referencia" >Reference</a></li> <li><a href="../../../tools/index.html" zh-tw-lang="相關工具" zh-cn-lang="工具" ru-lang="Инструменты" ko-lang="도구" ja-lang="ツール" es-lang="Herramientas" >Tools</a> <ul><li><a href="../../../sdk/index.html">Get the SDK</a></li></ul> </li> <li><a href="../../../google/index.html">Google Services</a> </li> </ul> </li> <li class="distribute last"> <ul> <li><a href="../../../distribute/index.html">Google Play</a></li> <li><a href="../../../distribute/googleplay/publish/index.html">Publishing</a></li> <li><a href="../../../distribute/googleplay/promote/index.html">Promoting</a></li> <li><a href="../../../distribute/googleplay/quality/index.html">App Quality</a></li> <li><a href="../../../distribute/googleplay/spotlight/index.html">Spotlight</a></li> <li><a href="../../../distribute/open.html">Open Distribution</a></li> </ul> </li> </ul> </div> <!-- /Expanded quicknav --> </div> </div> <!-- /Header --> <div id="searchResults" class="wrap" style="display:none;"> <h2 id="searchTitle">Results</h2> <div id="leftSearchControl" class="search-control">Loading...</div> </div> <!-- Secondary x-nav --> <div id="nav-x"> <div class="wrap"> <ul class="nav-x col-9 develop" style="width:100%"> <li class="training"><a href="../../../training/index.html" zh-tw-lang="訓練課程" zh-cn-lang="培训" ru-lang="Курсы" ko-lang="교육" ja-lang="トレーニング" es-lang="Capacitación" >Training</a></li> <li class="guide"><a href="../../../guide/components/index.html" zh-tw-lang="API 指南" zh-cn-lang="API 指南" ru-lang="Руководства по API" ko-lang="API 가이드" ja-lang="API ガイド" es-lang="Guías de la API" >API Guides</a></li> <li class="reference"><a href="../../../reference/packages.html" zh-tw-lang="參考資源" zh-cn-lang="参考" ru-lang="Справочник" ko-lang="참조문서" ja-lang="リファレンス" es-lang="Referencia" >Reference</a></li> <li class="tools"><a href="../../../tools/index.html" zh-tw-lang="相關工具" zh-cn-lang="工具" ru-lang="Инструменты" ko-lang="도구" ja-lang="ツール" es-lang="Herramientas" >Tools</a></li> <li class="google"><a href="../../../google/index.html" >Google Services</a> </li> </ul> </div> </div> <!-- /Sendondary x-nav --> <div class="wrap clearfix" id="body-content"> <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> <div id="devdoc-nav"> <a class="totop" href="#top" data-g-event="left-nav-top">to top</a> <div id="api-nav-header"> <div id="api-level-toggle"> <label for="apiLevelCheckbox" class="disabled">API level: </label> <div class="select-wrapper"> <select id="apiLevelSelector"> <!-- option elements added by buildApiLevelSelector() --> </select> </div> </div><!-- end toggle --> <div id="api-nav-title">Android APIs</div> </div><!-- end nav header --> <script> var SINCE_DATA = [ '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19' ]; buildApiLevelSelector(); </script> <div id="swapper"> <div id="nav-panels"> <div id="resize-packages-nav"> <div id="packages-nav" class="scroll-pane"> <ul> <li class="api apilevel-1"> <a href="../../../reference/android/package-summary.html">android</a></li> <li class="api apilevel-4"> <a href="../../../reference/android/accessibilityservice/package-summary.html">android.accessibilityservice</a></li> <li class="api apilevel-5"> <a href="../../../reference/android/accounts/package-summary.html">android.accounts</a></li> <li class="api apilevel-11"> <a href="../../../reference/android/animation/package-summary.html">android.animation</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/app/package-summary.html">android.app</a></li> <li class="api apilevel-8"> <a href="../../../reference/android/app/admin/package-summary.html">android.app.admin</a></li> <li class="api apilevel-8"> <a href="../../../reference/android/app/backup/package-summary.html">android.app.backup</a></li> <li class="api apilevel-3"> <a href="../../../reference/android/appwidget/package-summary.html">android.appwidget</a></li> <li class="api apilevel-5"> <a href="../../../reference/android/bluetooth/package-summary.html">android.bluetooth</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/content/package-summary.html">android.content</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/content/pm/package-summary.html">android.content.pm</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/content/res/package-summary.html">android.content.res</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/database/package-summary.html">android.database</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/database/sqlite/package-summary.html">android.database.sqlite</a></li> <li class="api apilevel-11"> <a href="../../../reference/android/drm/package-summary.html">android.drm</a></li> <li class="api apilevel-4"> <a href="../../../reference/android/gesture/package-summary.html">android.gesture</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/graphics/package-summary.html">android.graphics</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/graphics/drawable/package-summary.html">android.graphics.drawable</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/graphics/drawable/shapes/package-summary.html">android.graphics.drawable.shapes</a></li> <li class="api apilevel-19"> <a href="../../../reference/android/graphics/pdf/package-summary.html">android.graphics.pdf</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/hardware/package-summary.html">android.hardware</a></li> <li class="api apilevel-17"> <a href="../../../reference/android/hardware/display/package-summary.html">android.hardware.display</a></li> <li class="api apilevel-16"> <a href="../../../reference/android/hardware/input/package-summary.html">android.hardware.input</a></li> <li class="api apilevel-18"> <a href="../../../reference/android/hardware/location/package-summary.html">android.hardware.location</a></li> <li class="api apilevel-12"> <a href="../../../reference/android/hardware/usb/package-summary.html">android.hardware.usb</a></li> <li class="api apilevel-3"> <a href="../../../reference/android/inputmethodservice/package-summary.html">android.inputmethodservice</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/location/package-summary.html">android.location</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/media/package-summary.html">android.media</a></li> <li class="api apilevel-9"> <a href="../../../reference/android/media/audiofx/package-summary.html">android.media.audiofx</a></li> <li class="api apilevel-14"> <a href="../../../reference/android/media/effect/package-summary.html">android.media.effect</a></li> <li class="api apilevel-12"> <a href="../../../reference/android/mtp/package-summary.html">android.mtp</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/net/package-summary.html">android.net</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/net/http/package-summary.html">android.net.http</a></li> <li class="api apilevel-16"> <a href="../../../reference/android/net/nsd/package-summary.html">android.net.nsd</a></li> <li class="api apilevel-12"> <a href="../../../reference/android/net/rtp/package-summary.html">android.net.rtp</a></li> <li class="api apilevel-9"> <a href="../../../reference/android/net/sip/package-summary.html">android.net.sip</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/net/wifi/package-summary.html">android.net.wifi</a></li> <li class="api apilevel-14"> <a href="../../../reference/android/net/wifi/p2p/package-summary.html">android.net.wifi.p2p</a></li> <li class="api apilevel-16"> <a href="../../../reference/android/net/wifi/p2p/nsd/package-summary.html">android.net.wifi.p2p.nsd</a></li> <li class="api apilevel-9"> <a href="../../../reference/android/nfc/package-summary.html">android.nfc</a></li> <li class="api apilevel-19"> <a href="../../../reference/android/nfc/cardemulation/package-summary.html">android.nfc.cardemulation</a></li> <li class="api apilevel-10"> <a href="../../../reference/android/nfc/tech/package-summary.html">android.nfc.tech</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/opengl/package-summary.html">android.opengl</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/os/package-summary.html">android.os</a></li> <li class="api apilevel-9"> <a href="../../../reference/android/os/storage/package-summary.html">android.os.storage</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/preference/package-summary.html">android.preference</a></li> <li class="api apilevel-19"> <a href="../../../reference/android/print/package-summary.html">android.print</a></li> <li class="api apilevel-19"> <a href="../../../reference/android/print/pdf/package-summary.html">android.print.pdf</a></li> <li class="api apilevel-19"> <a href="../../../reference/android/printservice/package-summary.html">android.printservice</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/provider/package-summary.html">android.provider</a></li> <li class="api apilevel-11"> <a href="../../../reference/android/renderscript/package-summary.html">android.renderscript</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/sax/package-summary.html">android.sax</a></li> <li class="api apilevel-14"> <a href="../../../reference/android/security/package-summary.html">android.security</a></li> <li class="api apilevel-17"> <a href="../../../reference/android/service/dreams/package-summary.html">android.service.dreams</a></li> <li class="api apilevel-18"> <a href="../../../reference/android/service/notification/package-summary.html">android.service.notification</a></li> <li class="api apilevel-14"> <a href="../../../reference/android/service/textservice/package-summary.html">android.service.textservice</a></li> <li class="api apilevel-7"> <a href="../../../reference/android/service/wallpaper/package-summary.html">android.service.wallpaper</a></li> <li class="api apilevel-3"> <a href="../../../reference/android/speech/package-summary.html">android.speech</a></li> <li class="api apilevel-4"> <a href="../../../reference/android/speech/tts/package-summary.html">android.speech.tts</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v13/app/package-summary.html">android.support.v13.app</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/accessibilityservice/package-summary.html">android.support.v4.accessibilityservice</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/app/package-summary.html">android.support.v4.app</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/content/package-summary.html">android.support.v4.content</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/content/pm/package-summary.html">android.support.v4.content.pm</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/database/package-summary.html">android.support.v4.database</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/graphics/drawable/package-summary.html">android.support.v4.graphics.drawable</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/hardware/display/package-summary.html">android.support.v4.hardware.display</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/media/package-summary.html">android.support.v4.media</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/net/package-summary.html">android.support.v4.net</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/os/package-summary.html">android.support.v4.os</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/print/package-summary.html">android.support.v4.print</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/text/package-summary.html">android.support.v4.text</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/util/package-summary.html">android.support.v4.util</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/view/package-summary.html">android.support.v4.view</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/view/accessibility/package-summary.html">android.support.v4.view.accessibility</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v4/widget/package-summary.html">android.support.v4.widget</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v7/app/package-summary.html">android.support.v7.app</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v7/appcompat/package-summary.html">android.support.v7.appcompat</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v7/gridlayout/package-summary.html">android.support.v7.gridlayout</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v7/media/package-summary.html">android.support.v7.media</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v7/mediarouter/package-summary.html">android.support.v7.mediarouter</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v7/view/package-summary.html">android.support.v7.view</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v7/widget/package-summary.html">android.support.v7.widget</a></li> <li class="api apilevel-"> <a href="../../../reference/android/support/v8/renderscript/package-summary.html">android.support.v8.renderscript</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/telephony/package-summary.html">android.telephony</a></li> <li class="api apilevel-5"> <a href="../../../reference/android/telephony/cdma/package-summary.html">android.telephony.cdma</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/telephony/gsm/package-summary.html">android.telephony.gsm</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/test/package-summary.html">android.test</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/test/mock/package-summary.html">android.test.mock</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/test/suitebuilder/package-summary.html">android.test.suitebuilder</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/text/package-summary.html">android.text</a></li> <li class="api apilevel-3"> <a href="../../../reference/android/text/format/package-summary.html">android.text.format</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/text/method/package-summary.html">android.text.method</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/text/style/package-summary.html">android.text.style</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/text/util/package-summary.html">android.text.util</a></li> <li class="api apilevel-19"> <a href="../../../reference/android/transition/package-summary.html">android.transition</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/util/package-summary.html">android.util</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/view/package-summary.html">android.view</a></li> <li class="api apilevel-4"> <a href="../../../reference/android/view/accessibility/package-summary.html">android.view.accessibility</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/view/animation/package-summary.html">android.view.animation</a></li> <li class="api apilevel-3"> <a href="../../../reference/android/view/inputmethod/package-summary.html">android.view.inputmethod</a></li> <li class="api apilevel-14"> <a href="../../../reference/android/view/textservice/package-summary.html">android.view.textservice</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/webkit/package-summary.html">android.webkit</a></li> <li class="api apilevel-1"> <a href="../../../reference/android/widget/package-summary.html">android.widget</a></li> <li class="api apilevel-1"> <a href="../../../reference/dalvik/bytecode/package-summary.html">dalvik.bytecode</a></li> <li class="api apilevel-1"> <a href="../../../reference/dalvik/system/package-summary.html">dalvik.system</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/awt/font/package-summary.html">java.awt.font</a></li> <li class="api apilevel-3"> <a href="../../../reference/java/beans/package-summary.html">java.beans</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/io/package-summary.html">java.io</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/lang/package-summary.html">java.lang</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/lang/annotation/package-summary.html">java.lang.annotation</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/lang/ref/package-summary.html">java.lang.ref</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/lang/reflect/package-summary.html">java.lang.reflect</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/math/package-summary.html">java.math</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/net/package-summary.html">java.net</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/nio/package-summary.html">java.nio</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/nio/channels/package-summary.html">java.nio.channels</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/nio/channels/spi/package-summary.html">java.nio.channels.spi</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/nio/charset/package-summary.html">java.nio.charset</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/nio/charset/spi/package-summary.html">java.nio.charset.spi</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/security/package-summary.html">java.security</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/security/acl/package-summary.html">java.security.acl</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/security/cert/package-summary.html">java.security.cert</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/security/interfaces/package-summary.html">java.security.interfaces</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/security/spec/package-summary.html">java.security.spec</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/sql/package-summary.html">java.sql</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/text/package-summary.html">java.text</a></li> <li class="selected api apilevel-1"> <a href="../../../reference/java/util/package-summary.html">java.util</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/util/concurrent/package-summary.html">java.util.concurrent</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/util/concurrent/atomic/package-summary.html">java.util.concurrent.atomic</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/util/concurrent/locks/package-summary.html">java.util.concurrent.locks</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/util/jar/package-summary.html">java.util.jar</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/util/logging/package-summary.html">java.util.logging</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/util/prefs/package-summary.html">java.util.prefs</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/util/regex/package-summary.html">java.util.regex</a></li> <li class="api apilevel-1"> <a href="../../../reference/java/util/zip/package-summary.html">java.util.zip</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/crypto/package-summary.html">javax.crypto</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/crypto/interfaces/package-summary.html">javax.crypto.interfaces</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/crypto/spec/package-summary.html">javax.crypto.spec</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/microedition/khronos/egl/package-summary.html">javax.microedition.khronos.egl</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/microedition/khronos/opengles/package-summary.html">javax.microedition.khronos.opengles</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/net/package-summary.html">javax.net</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/net/ssl/package-summary.html">javax.net.ssl</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/security/auth/package-summary.html">javax.security.auth</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/security/auth/callback/package-summary.html">javax.security.auth.callback</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/security/auth/login/package-summary.html">javax.security.auth.login</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/security/auth/x500/package-summary.html">javax.security.auth.x500</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/security/cert/package-summary.html">javax.security.cert</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/sql/package-summary.html">javax.sql</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/xml/package-summary.html">javax.xml</a></li> <li class="api apilevel-8"> <a href="../../../reference/javax/xml/datatype/package-summary.html">javax.xml.datatype</a></li> <li class="api apilevel-8"> <a href="../../../reference/javax/xml/namespace/package-summary.html">javax.xml.namespace</a></li> <li class="api apilevel-1"> <a href="../../../reference/javax/xml/parsers/package-summary.html">javax.xml.parsers</a></li> <li class="api apilevel-8"> <a href="../../../reference/javax/xml/transform/package-summary.html">javax.xml.transform</a></li> <li class="api apilevel-8"> <a href="../../../reference/javax/xml/transform/dom/package-summary.html">javax.xml.transform.dom</a></li> <li class="api apilevel-8"> <a href="../../../reference/javax/xml/transform/sax/package-summary.html">javax.xml.transform.sax</a></li> <li class="api apilevel-8"> <a href="../../../reference/javax/xml/transform/stream/package-summary.html">javax.xml.transform.stream</a></li> <li class="api apilevel-8"> <a href="../../../reference/javax/xml/validation/package-summary.html">javax.xml.validation</a></li> <li class="api apilevel-8"> <a href="../../../reference/javax/xml/xpath/package-summary.html">javax.xml.xpath</a></li> <li class="api apilevel-1"> <a href="../../../reference/junit/framework/package-summary.html">junit.framework</a></li> <li class="api apilevel-1"> <a href="../../../reference/junit/runner/package-summary.html">junit.runner</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/package-summary.html">org.apache.http</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/auth/package-summary.html">org.apache.http.auth</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/auth/params/package-summary.html">org.apache.http.auth.params</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/client/package-summary.html">org.apache.http.client</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/client/entity/package-summary.html">org.apache.http.client.entity</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/client/methods/package-summary.html">org.apache.http.client.methods</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/client/params/package-summary.html">org.apache.http.client.params</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/client/protocol/package-summary.html">org.apache.http.client.protocol</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/client/utils/package-summary.html">org.apache.http.client.utils</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/conn/package-summary.html">org.apache.http.conn</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/conn/params/package-summary.html">org.apache.http.conn.params</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/conn/routing/package-summary.html">org.apache.http.conn.routing</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/conn/scheme/package-summary.html">org.apache.http.conn.scheme</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/conn/ssl/package-summary.html">org.apache.http.conn.ssl</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/conn/util/package-summary.html">org.apache.http.conn.util</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/cookie/package-summary.html">org.apache.http.cookie</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/cookie/params/package-summary.html">org.apache.http.cookie.params</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/entity/package-summary.html">org.apache.http.entity</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/impl/package-summary.html">org.apache.http.impl</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/impl/auth/package-summary.html">org.apache.http.impl.auth</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/impl/client/package-summary.html">org.apache.http.impl.client</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/impl/conn/package-summary.html">org.apache.http.impl.conn</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/impl/conn/tsccm/package-summary.html">org.apache.http.impl.conn.tsccm</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/impl/cookie/package-summary.html">org.apache.http.impl.cookie</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/impl/entity/package-summary.html">org.apache.http.impl.entity</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/impl/io/package-summary.html">org.apache.http.impl.io</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/io/package-summary.html">org.apache.http.io</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/message/package-summary.html">org.apache.http.message</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/params/package-summary.html">org.apache.http.params</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/protocol/package-summary.html">org.apache.http.protocol</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/apache/http/util/package-summary.html">org.apache.http.util</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/json/package-summary.html">org.json</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/w3c/dom/package-summary.html">org.w3c.dom</a></li> <li class="api apilevel-8"> <a href="../../../reference/org/w3c/dom/ls/package-summary.html">org.w3c.dom.ls</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/xml/sax/package-summary.html">org.xml.sax</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/xml/sax/ext/package-summary.html">org.xml.sax.ext</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/xml/sax/helpers/package-summary.html">org.xml.sax.helpers</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/xmlpull/v1/package-summary.html">org.xmlpull.v1</a></li> <li class="api apilevel-1"> <a href="../../../reference/org/xmlpull/v1/sax2/package-summary.html">org.xmlpull.v1.sax2</a></li> </ul><br/> </div> <!-- end packages-nav --> </div> <!-- end resize-packages --> <div id="classes-nav" class="scroll-pane"> <ul> <li><h2>Interfaces</h2> <ul> <li class="api apilevel-1"><a href="../../../reference/java/util/Collection.html">Collection</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/Comparator.html">Comparator</a></li> <li class="api apilevel-9"><a href="../../../reference/java/util/Deque.html">Deque</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/Enumeration.html">Enumeration</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/EventListener.html">EventListener</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/Formattable.html">Formattable</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/Iterator.html">Iterator</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/List.html">List</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/ListIterator.html">ListIterator</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/Map.html">Map</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/Map.Entry.html">Map.Entry</a></li> <li class="api apilevel-9"><a href="../../../reference/java/util/NavigableMap.html">NavigableMap</a></li> <li class="api apilevel-9"><a href="../../../reference/java/util/NavigableSet.html">NavigableSet</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/Observer.html">Observer</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/Queue.html">Queue</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/RandomAccess.html">RandomAccess</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/Set.html">Set</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/SortedMap.html">SortedMap</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/SortedSet.html">SortedSet</a></li> </ul> </li> <li><h2>Classes</h2> <ul> <li class="api apilevel-1"><a href="../../../reference/java/util/AbstractCollection.html">AbstractCollection</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/AbstractList.html">AbstractList</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/AbstractMap.html">AbstractMap</a></li> <li class="api apilevel-9"><a href="../../../reference/java/util/AbstractMap.SimpleEntry.html">AbstractMap.SimpleEntry</a></li> <li class="api apilevel-9"><a href="../../../reference/java/util/AbstractMap.SimpleImmutableEntry.html">AbstractMap.SimpleImmutableEntry</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/AbstractQueue.html">AbstractQueue</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/AbstractSequentialList.html">AbstractSequentialList</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/AbstractSet.html">AbstractSet</a></li> <li class="api apilevel-9"><a href="../../../reference/java/util/ArrayDeque.html">ArrayDeque</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/ArrayList.html">ArrayList</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/Arrays.html">Arrays</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/BitSet.html">BitSet</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/Calendar.html">Calendar</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/Collections.html">Collections</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/Currency.html">Currency</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/Date.html">Date</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/Dictionary.html">Dictionary</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/EnumMap.html">EnumMap</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/EnumSet.html">EnumSet</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/EventListenerProxy.html">EventListenerProxy</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/EventObject.html">EventObject</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/FormattableFlags.html">FormattableFlags</a></li> <li class="selected api apilevel-1"><a href="../../../reference/java/util/Formatter.html">Formatter</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/GregorianCalendar.html">GregorianCalendar</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/HashMap.html">HashMap</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/HashSet.html">HashSet</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/Hashtable.html">Hashtable</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/IdentityHashMap.html">IdentityHashMap</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/LinkedHashMap.html">LinkedHashMap</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/LinkedHashSet.html">LinkedHashSet</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/LinkedList.html">LinkedList</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/ListResourceBundle.html">ListResourceBundle</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/Locale.html">Locale</a></li> <li class="api apilevel-19"><a href="../../../reference/java/util/Objects.html">Objects</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/Observable.html">Observable</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/PriorityQueue.html">PriorityQueue</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/Properties.html">Properties</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/PropertyPermission.html">PropertyPermission</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/PropertyResourceBundle.html">PropertyResourceBundle</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/Random.html">Random</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/ResourceBundle.html">ResourceBundle</a></li> <li class="api apilevel-9"><a href="../../../reference/java/util/ResourceBundle.Control.html">ResourceBundle.Control</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/Scanner.html">Scanner</a></li> <li class="api apilevel-9"><a href="../../../reference/java/util/ServiceLoader.html">ServiceLoader</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/SimpleTimeZone.html">SimpleTimeZone</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/Stack.html">Stack</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/StringTokenizer.html">StringTokenizer</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/Timer.html">Timer</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/TimerTask.html">TimerTask</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/TimeZone.html">TimeZone</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/TreeMap.html">TreeMap</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/TreeSet.html">TreeSet</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/UUID.html">UUID</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/Vector.html">Vector</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/WeakHashMap.html">WeakHashMap</a></li> </ul> </li> <li><h2>Enums</h2> <ul> <li class="api apilevel-1"><a href="../../../reference/java/util/Formatter.BigDecimalLayoutForm.html">Formatter.BigDecimalLayoutForm</a></li> </ul> </li> <li><h2>Exceptions</h2> <ul> <li class="api apilevel-1"><a href="../../../reference/java/util/ConcurrentModificationException.html">ConcurrentModificationException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/DuplicateFormatFlagsException.html">DuplicateFormatFlagsException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/EmptyStackException.html">EmptyStackException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/FormatFlagsConversionMismatchException.html">FormatFlagsConversionMismatchException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/FormatterClosedException.html">FormatterClosedException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/IllegalFormatCodePointException.html">IllegalFormatCodePointException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/IllegalFormatConversionException.html">IllegalFormatConversionException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/IllegalFormatException.html">IllegalFormatException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/IllegalFormatFlagsException.html">IllegalFormatFlagsException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/IllegalFormatPrecisionException.html">IllegalFormatPrecisionException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/IllegalFormatWidthException.html">IllegalFormatWidthException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/InputMismatchException.html">InputMismatchException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/InvalidPropertiesFormatException.html">InvalidPropertiesFormatException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/MissingFormatArgumentException.html">MissingFormatArgumentException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/MissingFormatWidthException.html">MissingFormatWidthException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/MissingResourceException.html">MissingResourceException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/NoSuchElementException.html">NoSuchElementException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/TooManyListenersException.html">TooManyListenersException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/UnknownFormatConversionException.html">UnknownFormatConversionException</a></li> <li class="api apilevel-1"><a href="../../../reference/java/util/UnknownFormatFlagsException.html">UnknownFormatFlagsException</a></li> </ul> </li> <li><h2>Errors</h2> <ul> <li class="api apilevel-9"><a href="../../../reference/java/util/ServiceConfigurationError.html">ServiceConfigurationError</a></li> </ul> </li> </ul><br/> </div><!-- end classes --> </div><!-- end nav-panels --> <div id="nav-tree" style="display:none" class="scroll-pane"> <div id="tree-list"></div> </div><!-- end nav-tree --> </div><!-- end swapper --> <div id="nav-swap"> <a class="fullscreen">fullscreen</a> <a href='#' onclick='swapNav();return false;'><span id='tree-link'>Use Tree Navigation</span><span id='panel-link' style='display:none'>Use Panel Navigation</span></a> </div> </div> <!-- end devdoc-nav --> </div> <!-- end side-nav --> <script type="text/javascript"> // init fullscreen based on user pref var fullscreen = readCookie("fullscreen"); if (fullscreen != 0) { if (fullscreen == "false") { toggleFullscreen(false); } else { toggleFullscreen(true); } } // init nav version for mobile if (isMobile) { swapNav(); // tree view should be used on mobile $('#nav-swap').hide(); } else { chooseDefaultNav(); if ($("#nav-tree").is(':visible')) { init_default_navtree("../../../"); } } // scroll the selected page into view $(document).ready(function() { scrollIntoView("packages-nav"); scrollIntoView("classes-nav"); }); </script> <div class="col-12" id="doc-col"> <div id="api-info-block"> <div class="sum-details-links"> Summary: <a href="#nestedclasses">Nested Classes</a> &#124; <a href="#pubctors">Ctors</a> &#124; <a href="#pubmethods">Methods</a> &#124; <a href="#inhmethods">Inherited Methods</a> &#124; <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> </div><!-- end sum-details-links --> <div class="api-level"> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a> </div> </div><!-- end api-info-block --> <!-- ======== START OF CLASS DATA ======== --> <div id="jd-header"> public final class <h1 itemprop="name">Formatter</h1> extends <a href="../../../reference/java/lang/Object.html">Object</a><br/> implements <a href="../../../reference/java/io/Closeable.html">Closeable</a> <a href="../../../reference/java/io/Flushable.html">Flushable</a> </div><!-- end header --> <div id="naMessage"></div> <div id="jd-content" class="api apilevel-1"> <table class="jd-inheritance-table"> <tr> <td colspan="2" class="jd-inheritance-class-cell"><a href="../../../reference/java/lang/Object.html">java.lang.Object</a></td> </tr> <tr> <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td> <td colspan="1" class="jd-inheritance-class-cell">java.util.Formatter</td> </tr> </table> <div class="jd-descr"> <h2>Class Overview</h2> <p itemprop="articleBody">Formats arguments according to a format string (like <code>printf</code> in C). <p> It's relatively rare to use a <code>Formatter</code> directly. A variety of classes offer convenience methods for accessing formatter functionality. Of these, <code><a href="../../../reference/java/lang/String.html#format(java.lang.String, java.lang.Object...)">format(String, Object...)</a></code> is generally the most useful. <code><a href="../../../reference/java/io/PrintStream.html">PrintStream</a></code> and <code><a href="../../../reference/java/io/PrintWriter.html">PrintWriter</a></code> both offer <code>format</code> and <code>printf</code> methods. <p> <i>Format strings</i> consist of plain text interspersed with format specifiers, such as <code>"name: %s weight: %03dkg\n"</code>. Being a Java string, the usual Java string literal backslash escapes are of course available. <p> <i>Format specifiers</i> (such as <code>"%s"</code> or <code>"%03d"</code> in the example) start with a <code>%</code> and describe how to format their corresponding argument. It includes an optional argument index, optional flags, an optional width, an optional precision, and a mandatory conversion type. In the example, <code>"%s"</code> has no flags, no width, and no precision, while <code>"%03d"</code> has the flag <code>0</code>, the width 3, and no precision. <p> Not all combinations of argument index, flags, width, precision, and conversion type are valid. <p> <i>Argument index</i>. Normally, each format specifier consumes the next argument to <code>format</code>. For convenient localization, it's possible to reorder arguments so that they appear in a different order in the output than the order in which they were supplied. For example, <code>"%4$s"</code> formats the fourth argument (<code>4$</code>) as a string (<code>s</code>). It's also possible to reuse an argument with <code><</code>. For example, <code>format("%o %&lt;d %&lt;x", 64)</code> results in <code>"100 64 40"</code>. <p> <i>Flags</i>. The available flags are: <p> <table BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <tr BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=4> <B>Flags</B> </TD> </tr> <tr> <td width="5%"><code>,</code></td> <td width="25%">Use grouping separators for large numbers. (Decimal only.)</td> <td width="30%"><code>format("%,d", 1024);</code></td> <td width="30%"><code>1,234</code></td> </tr> <tr> <td width="5%"><code>+</code></td> <td width="25%">Always show sign. (Decimal only.)</td> <td width="30%"><code>format("%+d, %+4d", 5, 5);</code></td> <td width="30%"><pre>+5, +5</pre></td> </tr> <tr> <td width="5%"><code></code></td> <td width="25%">A space indicates that non-negative numbers should have a leading space. (Decimal only.)</td> <td width="30%"><code>format("x% d% 5d", 4, 4);</code></td> <td width="30%"><pre>x 4 4</pre></td> </tr> <tr> <td width="5%"><code>(</code></td> <td width="25%">Put parentheses around negative numbers. (Decimal only.)</td> <td width="30%"><code>format("%(d, %(d, %(6d", 12, -12, -12);</code></td> <td width="30%"><pre>12, (12), (12)</pre></td> </tr> <tr> <td width="5%"><code>-</code></td> <td width="25%">Left-justify. (Requires width.)</td> <td width="30%"><code>format("%-6dx", 5);</code><br/><code>format("%-3C, %3C", 'd', 0x65);</code></td> <td width="30%"><pre>5 x</pre><br/><pre>D , E</pre></td> </tr> <tr> <td width="5%"><code>0</code></td> <td width="25%">Pad the number with leading zeros. (Requires width.)</td> <td width="30%"><code>format("%07d, %03d", 4, 5555);</code></td> <td width="30%"><code>0000004, 5555</code></td> </tr> <tr> <td width="5%"><code>#</code></td> <td width="25%">Alternate form. (Octal and hex only.) </td> <td width="30%"><code>format("%o %#o", 010, 010);</code><br/><code>format("%x %#x", 0x12, 0x12);</code></td> <td width="30%"><code>10 010</code><br/><code>12 0x12</code></td> </tr> </table> <p> <i>Width</i>. The width is a decimal integer specifying the minimum number of characters to be used to represent the argument. If the result would otherwise be shorter than the width, padding will be added (the exact details of which depend on the flags). Note that you can't use width to truncate a field, only to make it wider: see precision for control over the maximum width. <p> <i>Precision</i>. The precision is a <code>.</code> followed by a decimal integer, giving the minimum number of digits for <code>d</code>, <code>o</code>, <code>x</code>, or <code>X</code>; the minimum number of digits after the decimal point for <code>a</code>, <code>A</code>, <code>e</code>, <code>E</code>, <code>f</code>, or <code>F</code>; the maximum number of significant digits for <code>g</code> or <code>G</code>; or the maximum number of characters for <code>s</code> or <code>S</code>. <p> <i>Conversion type</i>. One or two characters describing how to interpret the argument. Most conversions are a single character, but date/time conversions all start with <code>t</code> and have a single extra character describing the desired output. <p> Many conversion types have a corresponding uppercase variant that converts its result to uppercase using the rules of the relevant locale (either the default or the locale set for this formatter). <p> This table shows the available single-character (non-date/time) conversion types: <table BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <tr BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=4> <B>String conversions</B> <br> All types are acceptable arguments. Values of type <code><a href="../../../reference/java/util/Formattable.html">Formattable</a></code> have their <code>formatTo</code> method invoked; all other types use <code>toString</code>. </TD> </tr> <tr> <td width="5%"><code>s</code></td> <td width="25%">String.</td> <td width="30%"><code>format("%s %s", "hello", "Hello");</code></td> <td width="30%"><code>hello Hello</code></td> </tr> <tr> <td width="5%"><code>S</code></td> <td width="25%">Uppercase string.</td> <td width="30%"><code>format("%S %S", "hello", "Hello");</code></td> <td width="30%"><code>HELLO HELLO</code></td> </tr> <tr BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=4> <B>Character conversions</B> <br> Byte, Character, Short, and Integer (and primitives that box to those types) are all acceptable as character arguments. Any other type is an error. </TD> </tr> <tr> <td width="5%"><code>c</code></td> <td width="25%">Character.</td> <td width="30%"><code>format("%c %c", 'd', 'E');</code></td> <td width="30%"><code>d E</code></td> </tr> <tr> <td width="5%"><code>C</code></td> <td width="25%">Uppercase character.</td> <td width="30%"><code>format("%C %C", 'd', 'E');</code></td> <td width="30%"><code>D E</code></td> </tr> <tr BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=4> <B>Integer conversions</B> <br> Byte, Short, Integer, Long, and BigInteger (and primitives that box to those types) are all acceptable as integer arguments. Any other type is an error. </TD> </tr> <tr> <td width="5%"><code>d</code></td> <td width="25%">Decimal.</td> <td width="30%"><code>format("%d", 26);</code></td> <td width="30%"><code>26</code></td> </tr> <tr> <td width="5%"><code>o</code></td> <td width="25%">Octal.</td> <td width="30%"><code>format("%o", 032);</code></td> <td width="30%"><code>32</code></td> </tr> <tr> <td width="5%"><code>x</code>, <code>X</code></td> <td width="25%">Hexadecimal.</td> <td width="30%"><code>format("%x %X", 0x1a, 0x1a);</code></td> <td width="30%"><code>1a 1A</code></td> </tr> <tr BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=4><B>Floating-point conversions</B> <br> Float, Double, and BigDecimal (and primitives that box to those types) are all acceptable as floating-point arguments. Any other type is an error. </TD> </tr> <tr> <td width="5%"><code>f</code></td> <td width="25%">Decimal floating point.</td> <td width="30%"><pre> format("%f", 123.456f); format("%.1f", 123.456f); format("%1.5f", 123.456f); format("%10f", 123.456f); format("%6.0f", 123.456f);</td> <td width="30%" valign="top"><pre> 123.456001 123.5 123.45600 123.456001 &nbsp;&nbsp;&nbsp;123</pre></td> </tr> <tr> <td width="5%"><code>e</code>, <code>E</code></td> <td width="25%">Engineering/exponential floating point.</td> <td width="30%"><pre> format("%e", 123.456f); format("%.1e", 123.456f); format("%1.5E", 123.456f); format("%10E", 123.456f); format("%6.0E", 123.456f);</td> <td width="30%" valign="top"><pre> 1.234560e+02 1.2e+02 1.23456E+02 1.234560E+02 &nbsp;1E+02</pre></td> </tr> <tr> <td width="5%" valign="top"><code>g</code>, <code>G</code></td> <td width="25%" valign="top">Decimal or engineering, depending on the magnitude of the value.</td> <td width="30%" valign="top"><code>format("%g %g", 0.123, 0.0000123);</code></td> <td width="30%" valign="top"><code>0.123000 1.23000e-05</code></td> </tr> <tr> <td width="5%"><code>a</code>, <code>A</code></td> <td width="25%">Hexadecimal floating point.</td> <td width="30%"><code>format("%a", 123.456f);</code></td> <td width="30%"><code>0x1.edd2f2p6</code></td> </tr> <tr BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=4> <B>Boolean conversion</B> <br> Accepts Boolean values. <code>null</code> is considered false, and instances of all other types are considered true. </TD> </tr> <tr> <td width="5%"><code>b</code>, <code>B</code></td> <td width="25%">Boolean.</td> <td width="30%"><code>format("%b %b", true, false);</code><br><code>format("%B %B", true, false);</code><br><code>format("%b", null);</code><br><code>format("%b", "hello");</code></td> <td width="30%"><code>true false</code><br><code>TRUE FALSE</code><br><code>false</code><br><code>true</code></td> </tr> <tr BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=4> <B>Hash code conversion</B> <br> Invokes <code>hashCode</code> on its argument, which may be of any type. </TD> </tr> <tr> <td width="5%"><code>h</code>, <code>H</code></td> <td width="25%">Hexadecimal hash code.</td> <td width="30%"><code>format("%h", this);</code><br><code>format("%H", this);</code><br><code>format("%h", null);</code></td> <td width="30%"><code>190d11</code><br><code>190D11</code><br><code>null</code></td> </tr> <tr BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=4> <B>Zero-argument conversions</B></TD> </tr> <tr> <td width="5%"><code>%</code></td> <td width="25%">A literal % character.</td> <td width="30%"><code>format("%d%%", 50);</code></td> <td width="30%"><code>50%</code></td> </tr> <tr> <td width="5%"><code>n</code></td> <td width="25%">Newline. (The value of <code><a href="../../../reference/java/lang/System.html#lineSeparator()">lineSeparator()</a></code>.)</td> <td width="30%"><code>format("first%nsecond");</code></td> <td width="30%"><code>first\nsecond</code></td> </tr> </table> <p> It's also possible to format dates and times with <code>Formatter</code>, though you should use <code><a href="../../../reference/java/text/SimpleDateFormat.html">SimpleDateFormat</a></code> (probably via the factory methods in <code><a href="../../../reference/java/text/DateFormat.html">DateFormat</a></code>) instead. The facilities offered by <code>Formatter</code> are low-level and place the burden of localization on the developer. Using <code><a href="../../../reference/java/text/DateFormat.html#getDateInstance()">getDateInstance()</a></code>, <code><a href="../../../reference/java/text/DateFormat.html#getTimeInstance()">getTimeInstance()</a></code>, and <code><a href="../../../reference/java/text/DateFormat.html#getDateTimeInstance()">getDateTimeInstance()</a></code> is preferable for dates and times that will be presented to a human. Those methods will select the best format strings for the user's locale. <p> The best non-localized form is <a href="http://en.wikipedia.org/wiki/ISO_8601">ISO 8601</a>, which you can get with <code>"%tF"</code> (2010-01-22), <code>"%tF %tR"</code> (2010-01-22 13:39), <code>"%tF %tT"</code> (2010-01-22 13:39:15), or <code>"%tF %tT%z"</code> (2010-01-22 13:39:15-0800). <p> This table shows the date/time conversions, but you should use <code><a href="../../../reference/java/text/SimpleDateFormat.html">SimpleDateFormat</a></code> instead: <table BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <tr BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=4><B>Date/time conversions</B> <br> Calendar, Date, and Long (representing milliseconds past the epoch) are all acceptable as date/time arguments. Any other type is an error. The epoch is 1970-01-01 00:00:00 UTC. <font color="red">Use <code><a href="../../../reference/java/text/SimpleDateFormat.html">SimpleDateFormat</a></code> instead.</font> </TD> </tr> <tr> <td width="5%"><code>ta</code></td> <td width="25%">Localized weekday name (abbreviated).</td> <td width="30%"><code>format("%ta", cal, cal);</code></td> <td width="30%"><code>Tue</code></td> </tr> <tr> <td width="5%"><code>tA</code></td> <td width="25%">Localized weekday name (full).</td> <td width="30%"><code>format("%tA", cal, cal);</code></td> <td width="30%"><code>Tuesday</code></td> </tr> <tr> <td width="5%"><code>tb</code></td> <td width="25%">Localized month name (abbreviated).</td> <td width="30%"><code>format("%tb", cal);</code></td> <td width="30%"><code>Apr</code></td> </tr> <tr> <td width="5%"><code>tB</code></td> <td width="25%">Localized month name (full).</td> <td width="30%"><code>format("%tB", cal);</code></td> <td width="30%"><code>April</code></td> </tr> <tr> <td width="5%"><code>tc</code></td> <td width="25%">C library <i>asctime(3)</i>-like output. Do not use.</td> <td width="30%"><code>format("%tc", cal);</code></td> <td width="30%"><code>Tue Apr 01 16:19:17 CEST 2008</code></td> </tr> <tr> <td width="5%"><code>tC</code></td> <td width="25%">2-digit century.</td> <td width="30%"><code>format("%tC", cal);</code></td> <td width="30%"><code>20</code></td> </tr> <tr> <td width="5%"><code>td</code></td> <td width="25%">2-digit day of month (01-31).</td> <td width="30%"><code>format("%td", cal);</code></td> <td width="30%"><code>01</code></td> </tr> <tr> <td width="5%"><code>tD</code></td> <td width="25%">Ambiguous US date format (MM/DD/YY). Do not use.</td> <td width="30%"><code>format("%tD", cal);</code></td> <td width="30%"><code>04/01/08</code></td> </tr> <tr> <td width="5%"><code>te</code></td> <td width="25%">Day of month (1-31).</td> <td width="30%"><code>format("%te", cal);</code></td> <td width="30%"><code>1</code></td> </tr> <tr> <td width="5%"><code>tF</code></td> <td width="25%">Full date in ISO 8601 format (YYYY-MM-DD).</td> <td width="30%"><code>format("%tF", cal);</code></td> <td width="30%"><code>2008-04-01</code></td> </tr> <tr> <td width="5%"><code>th</code></td> <td width="25%">Synonym for <code>%tb</code>.</td> <td width="30%"></td> <td width="30%"></td> </tr> <tr> <td width="5%"><code>tH</code></td> <td width="25%">2-digit 24-hour hour of day (00-23).</td> <td width="30%"><code>format("%tH", cal);</code></td> <td width="30%"><code>16</code></td> </tr> <tr> <td width="5%"><code>tI</code></td> <td width="25%">2-digit 12-hour hour of day (01-12).</td> <td width="30%"><code>format("%tI", cal);</code></td> <td width="30%"><code>04</code></td> </tr> <tr> <td width="5%"><code>tj</code></td> <td width="25%">3-digit day of year (001-366).</td> <td width="30%"><code>format("%tj", cal);</code></td> <td width="30%"><code>092</code></td> </tr> <tr> <td width="5%"><code>tk</code></td> <td width="25%">24-hour hour of day (0-23).</td> <td width="30%"><code>format("%tk", cal);</code></td> <td width="30%"><code>16</code></td> </tr> <tr> <td width="5%"><code>tl</code></td> <td width="25%">12-hour hour of day (1-12).</td> <td width="30%"><code>format("%tl", cal);</code></td> <td width="30%"><code>4</code></td> </tr> <tr> <td width="5%"><code>tL</code></td> <td width="25%">Milliseconds.</td> <td width="30%"><code>format("%tL", cal);</code></td> <td width="30%"><code>359</code></td> </tr> <tr> <td width="5%"><code>tm</code></td> <td width="25%">2-digit month of year (01-12).</td> <td width="30%"><code>format("%tm", cal);</code></td> <td width="30%"><code>04</code></td> </tr> <tr> <td width="5%"><code>tM</code></td> <td width="25%">2-digit minute.</td> <td width="30%"><code>format("%tM", cal);</code></td> <td width="30%"><code>08</code></td> </tr> <tr> <td width="5%"><code>tN</code></td> <td width="25%">Nanoseconds.</td> <td width="30%"><code>format("%tN", cal);</code></td> <td width="30%"><code>359000000</code></td> </tr> <tr> <td width="5%"><code>tp</code></td> <td width="25%">a.m. or p.m.</td> <td width="30%"><code>format("%tp %Tp", cal, cal);</code></td> <td width="30%"><code>pm PM</code></td> </tr> <tr> <td width="5%"><code>tQ</code></td> <td width="25%">Milliseconds since the epoch.</td> <td width="30%"><code>format("%tQ", cal);</code></td> <td width="30%"><code>1207059412656</code></td> </tr> <tr> <td width="5%"><code>tr</code></td> <td width="25%">Full 12-hour time (<code>%tI:%tM:%tS %Tp</code>).</td> <td width="30%"><code>format("%tr", cal);</code></td> <td width="30%"><code>04:15:32 PM</code></td> </tr> <tr> <td width="5%"><code>tR</code></td> <td width="25%">Short 24-hour time (<code>%tH:%tM</code>).</td> <td width="30%"><code>format("%tR", cal);</code></td> <td width="30%"><code>16:15</code></td> </tr> <tr> <td width="5%"><code>ts</code></td> <td width="25%">Seconds since the epoch.</td> <td width="30%"><code>format("%ts", cal);</code></td> <td width="30%"><code>1207059412</code></td> </tr> <tr> <td width="5%"><code>tS</code></td> <td width="25%">2-digit seconds (00-60).</td> <td width="30%"><code>format("%tS", cal);</code></td> <td width="30%"><code>17</code></td> </tr> <tr> <td width="5%"><code>tT</code></td> <td width="25%">Full 24-hour time (<code>%tH:%tM:%tS</code>).</td> <td width="30%"><code>format("%tT", cal);</code></td> <td width="30%"><code>16:15:32</code></td> </tr> <tr> <td width="5%"><code>ty</code></td> <td width="25%">2-digit year (00-99).</td> <td width="30%"><code>format("%ty", cal);</code></td> <td width="30%"><code>08</code></td> </tr> <tr> <td width="5%"><code>tY</code></td> <td width="25%">4-digit year.</td> <td width="30%"><code>format("%tY", cal);</code></td> <td width="30%"><code>2008</code></td> </tr> <tr> <td width="5%"><code>tz</code></td> <td width="25%">Time zone GMT offset.</td> <td width="30%"><code>format("%tz", cal);</code></td> <td width="30%"><code>+0100</code></td> </tr> <tr> <td width="5%"><code>tZ</code></td> <td width="25%">Localized time zone abbreviation.</td> <td width="30%"><code>format("%tZ", cal);</code></td> <td width="30%"><code>CEST</code></td> </tr> </table> <p> As with the other conversions, date/time conversion has an uppercase format. Replacing <code>%t</code> with <code>%T</code> will uppercase the field according to the rules of the formatter's locale. <p><i>Number localization</i>. Some conversions use localized decimal digits rather than the usual ASCII digits. So formatting <code>123</code> with <code>%d</code> will give 123 in English locales but &#x0661;&#x0662;&#x0663; in appropriate Arabic locales, for example. This number localization occurs for the decimal integer conversion <code>%d</code>, the floating point conversions <code>%e</code>, <code>%f</code>, and <code>%g</code>, and all date/time <code>%t</code> or <code>%T</code> conversions, but no other conversions. <p><i>Thread safety</i>. Formatter is not thread-safe.</p> <div class="jd-tagdata"> <h5 class="jd-tagtitle">See Also</h5> <ul class="nolist"><li><code><a href="../../../reference/java/text/DateFormat.html">DateFormat</a></code></li><li><code><a href="../../../reference/java/util/Formattable.html">Formattable</a></code></li><li><code><a href="../../../reference/java/text/SimpleDateFormat.html">SimpleDateFormat</a></code></li> </ul> </div> </div><!-- jd-descr --> <div class="jd-descr"> <h2>Summary</h2> <!-- ======== NESTED CLASS SUMMARY ======== --> <table id="nestedclasses" class="jd-sumtable"><tr><th colspan="12">Nested Classes</th></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> enum</nobr></td> <td class="jd-linkcol"><a href="../../../reference/java/util/Formatter.BigDecimalLayoutForm.html">Formatter.BigDecimalLayoutForm</a></td> <td class="jd-descrcol" width="100%">The enumeration giving the available styles for formatting very large decimal numbers.&nbsp;</td> </tr> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <table id="pubctors" class="jd-sumtable"><tr><th colspan="12">Public Constructors</th></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> </nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/util/Formatter.html#Formatter()">Formatter</a></span>()</nobr> <div class="jd-descrdiv">Constructs a <code>Formatter</code>.</div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> </nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/util/Formatter.html#Formatter(java.lang.Appendable)">Formatter</a></span>(<a href="../../../reference/java/lang/Appendable.html">Appendable</a> a)</nobr> <div class="jd-descrdiv">Constructs a <code>Formatter</code> whose output will be written to the specified <code>Appendable</code>.</div> </td></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> </nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/util/Formatter.html#Formatter(java.util.Locale)">Formatter</a></span>(<a href="../../../reference/java/util/Locale.html">Locale</a> l)</nobr> <div class="jd-descrdiv">Constructs a <code>Formatter</code> with the specified <code>Locale</code>.</div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> </nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/util/Formatter.html#Formatter(java.lang.Appendable, java.util.Locale)">Formatter</a></span>(<a href="../../../reference/java/lang/Appendable.html">Appendable</a> a, <a href="../../../reference/java/util/Locale.html">Locale</a> l)</nobr> <div class="jd-descrdiv">Constructs a <code>Formatter</code> with the specified <code>Locale</code> and whose output will be written to the specified <code>Appendable</code>.</div> </td></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> </nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/util/Formatter.html#Formatter(java.lang.String)">Formatter</a></span>(<a href="../../../reference/java/lang/String.html">String</a> fileName)</nobr> <div class="jd-descrdiv">Constructs a <code>Formatter</code> whose output is written to the specified file.</div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> </nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/util/Formatter.html#Formatter(java.lang.String, java.lang.String)">Formatter</a></span>(<a href="../../../reference/java/lang/String.html">String</a> fileName, <a href="../../../reference/java/lang/String.html">String</a> csn)</nobr> <div class="jd-descrdiv">Constructs a <code>Formatter</code> whose output is written to the specified file.</div> </td></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> </nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/util/Formatter.html#Formatter(java.lang.String, java.lang.String, java.util.Locale)">Formatter</a></span>(<a href="../../../reference/java/lang/String.html">String</a> fileName, <a href="../../../reference/java/lang/String.html">String</a> csn, <a href="../../../reference/java/util/Locale.html">Locale</a> l)</nobr> <div class="jd-descrdiv">Constructs a <code>Formatter</code> with the given <code>Locale</code> and charset, and whose output is written to the specified file.</div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> </nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/util/Formatter.html#Formatter(java.io.File)">Formatter</a></span>(<a href="../../../reference/java/io/File.html">File</a> file)</nobr> <div class="jd-descrdiv">Constructs a <code>Formatter</code> whose output is written to the specified <code>File</code>.</div> </td></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> </nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/util/Formatter.html#Formatter(java.io.File, java.lang.String)">Formatter</a></span>(<a href="../../../reference/java/io/File.html">File</a> file, <a href="../../../reference/java/lang/String.html">String</a> csn)</nobr> <div class="jd-descrdiv">Constructs a <code>Formatter</code> with the given charset, and whose output is written to the specified <code>File</code>.</div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> </nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/util/Formatter.html#Formatter(java.io.File, java.lang.String, java.util.Locale)">Formatter</a></span>(<a href="../../../reference/java/io/File.html">File</a> file, <a href="../../../reference/java/lang/String.html">String</a> csn, <a href="../../../reference/java/util/Locale.html">Locale</a> l)</nobr> <div class="jd-descrdiv">Constructs a <code>Formatter</code> with the given <code>Locale</code> and charset, and whose output is written to the specified <code>File</code>.</div> </td></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> </nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/util/Formatter.html#Formatter(java.io.OutputStream)">Formatter</a></span>(<a href="../../../reference/java/io/OutputStream.html">OutputStream</a> os)</nobr> <div class="jd-descrdiv">Constructs a <code>Formatter</code> whose output is written to the specified <code>OutputStream</code>.</div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> </nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/util/Formatter.html#Formatter(java.io.OutputStream, java.lang.String)">Formatter</a></span>(<a href="../../../reference/java/io/OutputStream.html">OutputStream</a> os, <a href="../../../reference/java/lang/String.html">String</a> csn)</nobr> <div class="jd-descrdiv">Constructs a <code>Formatter</code> with the given charset, and whose output is written to the specified <code>OutputStream</code>.</div> </td></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> </nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/util/Formatter.html#Formatter(java.io.OutputStream, java.lang.String, java.util.Locale)">Formatter</a></span>(<a href="../../../reference/java/io/OutputStream.html">OutputStream</a> os, <a href="../../../reference/java/lang/String.html">String</a> csn, <a href="../../../reference/java/util/Locale.html">Locale</a> l)</nobr> <div class="jd-descrdiv">Constructs a <code>Formatter</code> with the given <code>Locale</code> and charset, and whose output is written to the specified <code>OutputStream</code>.</div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> </nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/util/Formatter.html#Formatter(java.io.PrintStream)">Formatter</a></span>(<a href="../../../reference/java/io/PrintStream.html">PrintStream</a> ps)</nobr> <div class="jd-descrdiv">Constructs a <code>Formatter</code> whose output is written to the specified <code>PrintStream</code>.</div> </td></tr> </table> <!-- ========== METHOD SUMMARY =========== --> <table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> void</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/util/Formatter.html#close()">close</a></span>()</nobr> <div class="jd-descrdiv">Closes the <code>Formatter</code>.</div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> void</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/util/Formatter.html#flush()">flush</a></span>()</nobr> <div class="jd-descrdiv">Flushes the <code>Formatter</code>.</div> </td></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> <a href="../../../reference/java/util/Formatter.html">Formatter</a></nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/util/Formatter.html#format(java.lang.String, java.lang.Object...)">format</a></span>(<a href="../../../reference/java/lang/String.html">String</a> format, <a href="../../../reference/java/lang/Object.html">Object...</a> args)</nobr> <div class="jd-descrdiv">Writes a formatted string to the output destination of the <code>Formatter</code>.</div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> <a href="../../../reference/java/util/Formatter.html">Formatter</a></nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/util/Formatter.html#format(java.util.Locale, java.lang.String, java.lang.Object...)">format</a></span>(<a href="../../../reference/java/util/Locale.html">Locale</a> l, <a href="../../../reference/java/lang/String.html">String</a> format, <a href="../../../reference/java/lang/Object.html">Object...</a> args)</nobr> <div class="jd-descrdiv">Writes a formatted string to the output destination of the <code>Formatter</code>.</div> </td></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> <a href="../../../reference/java/io/IOException.html">IOException</a></nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/util/Formatter.html#ioException()">ioException</a></span>()</nobr> <div class="jd-descrdiv">Returns the last <code>IOException</code> thrown by the <code>Formatter</code>'s output destination.</div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> <a href="../../../reference/java/util/Locale.html">Locale</a></nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/util/Formatter.html#locale()">locale</a></span>()</nobr> <div class="jd-descrdiv">Returns the <code>Locale</code> of the <code>Formatter</code>.</div> </td></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> <a href="../../../reference/java/lang/Appendable.html">Appendable</a></nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/util/Formatter.html#out()">out</a></span>()</nobr> <div class="jd-descrdiv">Returns the output destination of the <code>Formatter</code>.</div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> <a href="../../../reference/java/lang/String.html">String</a></nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/util/Formatter.html#toString()">toString</a></span>()</nobr> <div class="jd-descrdiv">Returns the content by calling the <code>toString()</code> method of the output destination.</div> </td></tr> </table> <!-- ========== METHOD SUMMARY =========== --> <table id="inhmethods" class="jd-sumtable"><tr><th> <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a> <div style="clear:left;">Inherited Methods</div></th></tr> <tr class="api apilevel-" > <td colspan="12"> <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed" ><img id="inherited-methods-java.lang.Object-trigger" src="../../../assets/images/triangle-closed.png" class="jd-expando-trigger-img" /></a> From class <a href="../../../reference/java/lang/Object.html">java.lang.Object</a> <div id="inherited-methods-java.lang.Object"> <div id="inherited-methods-java.lang.Object-list" class="jd-inheritedlinks"> </div> <div id="inherited-methods-java.lang.Object-summary" style="display: none;"> <table class="jd-sumtable-expando"> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> <a href="../../../reference/java/lang/Object.html">Object</a></nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Object.html#clone()">clone</a></span>()</nobr> <div class="jd-descrdiv">Creates and returns a copy of this <code>Object</code>.</div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> boolean</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Object.html#equals(java.lang.Object)">equals</a></span>(<a href="../../../reference/java/lang/Object.html">Object</a> o)</nobr> <div class="jd-descrdiv">Compares this instance with the specified object and indicates if they are equal.</div> </td></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> void</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Object.html#finalize()">finalize</a></span>()</nobr> <div class="jd-descrdiv">Invoked when the garbage collector has detected that this instance is no longer reachable.</div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> final <a href="../../../reference/java/lang/Class.html">Class</a>&lt;?&gt;</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Object.html#getClass()">getClass</a></span>()</nobr> <div class="jd-descrdiv">Returns the unique instance of <code><a href="../../../reference/java/lang/Class.html">Class</a></code> that represents this object's class.</div> </td></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> int</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Object.html#hashCode()">hashCode</a></span>()</nobr> <div class="jd-descrdiv">Returns an integer hash code for this object.</div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> final void</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Object.html#notify()">notify</a></span>()</nobr> <div class="jd-descrdiv">Causes a thread which is waiting on this object's monitor (by means of calling one of the <code>wait()</code> methods) to be woken up.</div> </td></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> final void</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Object.html#notifyAll()">notifyAll</a></span>()</nobr> <div class="jd-descrdiv">Causes all threads which are waiting on this object's monitor (by means of calling one of the <code>wait()</code> methods) to be woken up.</div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> <a href="../../../reference/java/lang/String.html">String</a></nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Object.html#toString()">toString</a></span>()</nobr> <div class="jd-descrdiv">Returns a string containing a concise, human-readable description of this object.</div> </td></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> final void</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Object.html#wait()">wait</a></span>()</nobr> <div class="jd-descrdiv">Causes the calling thread to wait until another thread calls the <code>notify()</code> or <code>notifyAll()</code> method of this object.</div> </td></tr> <tr class=" api apilevel-1" > <td class="jd-typecol"><nobr> final void</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Object.html#wait(long, int)">wait</a></span>(long millis, int nanos)</nobr> <div class="jd-descrdiv">Causes the calling thread to wait until another thread calls the <code>notify()</code> or <code>notifyAll()</code> method of this object or until the specified timeout expires.</div> </td></tr> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> final void</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/Object.html#wait(long)">wait</a></span>(long millis)</nobr> <div class="jd-descrdiv">Causes the calling thread to wait until another thread calls the <code>notify()</code> or <code>notifyAll()</code> method of this object or until the specified timeout expires.</div> </td></tr> </table> </div> </div> </td></tr> <tr class="api apilevel-" > <td colspan="12"> <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.io.Closeable" class="jd-expando-trigger closed" ><img id="inherited-methods-java.io.Closeable-trigger" src="../../../assets/images/triangle-closed.png" class="jd-expando-trigger-img" /></a> From interface <a href="../../../reference/java/io/Closeable.html">java.io.Closeable</a> <div id="inherited-methods-java.io.Closeable"> <div id="inherited-methods-java.io.Closeable-list" class="jd-inheritedlinks"> </div> <div id="inherited-methods-java.io.Closeable-summary" style="display: none;"> <table class="jd-sumtable-expando"> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> abstract void</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/io/Closeable.html#close()">close</a></span>()</nobr> <div class="jd-descrdiv">Closes the object and release any system resources it holds.</div> </td></tr> </table> </div> </div> </td></tr> <tr class="api apilevel-" > <td colspan="12"> <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.io.Flushable" class="jd-expando-trigger closed" ><img id="inherited-methods-java.io.Flushable-trigger" src="../../../assets/images/triangle-closed.png" class="jd-expando-trigger-img" /></a> From interface <a href="../../../reference/java/io/Flushable.html">java.io.Flushable</a> <div id="inherited-methods-java.io.Flushable"> <div id="inherited-methods-java.io.Flushable-list" class="jd-inheritedlinks"> </div> <div id="inherited-methods-java.io.Flushable-summary" style="display: none;"> <table class="jd-sumtable-expando"> <tr class="alt-color api apilevel-1" > <td class="jd-typecol"><nobr> abstract void</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/io/Flushable.html#flush()">flush</a></span>()</nobr> <div class="jd-descrdiv">Flushes the object by writing out any buffered data to the underlying output.</div> </td></tr> </table> </div> </div> </td></tr> <tr class="api apilevel-" > <td colspan="12"> <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.AutoCloseable" class="jd-expando-trigger closed" ><img id="inherited-methods-java.lang.AutoCloseable-trigger" src="../../../assets/images/triangle-closed.png" class="jd-expando-trigger-img" /></a> From interface <a href="../../../reference/java/lang/AutoCloseable.html">java.lang.AutoCloseable</a> <div id="inherited-methods-java.lang.AutoCloseable"> <div id="inherited-methods-java.lang.AutoCloseable-list" class="jd-inheritedlinks"> </div> <div id="inherited-methods-java.lang.AutoCloseable-summary" style="display: none;"> <table class="jd-sumtable-expando"> <tr class="alt-color api apilevel-19" > <td class="jd-typecol"><nobr> abstract void</nobr> </td> <td class="jd-linkcol" width="100%"><nobr> <span class="sympad"><a href="../../../reference/java/lang/AutoCloseable.html#close()">close</a></span>()</nobr> <div class="jd-descrdiv">Closes the object and release any system resources it holds.</div> </td></tr> </table> </div> </div> </td></tr> </table> </div><!-- jd-descr (summary) --> <!-- Details --> <!-- XML Attributes --> <!-- Enum Values --> <!-- Constants --> <!-- Fields --> <!-- Public ctors --> <!-- ========= CONSTRUCTOR DETAIL ======== --> <h2>Public Constructors</h2> <A NAME="Formatter()"></A> <div class="jd-details api apilevel-1"> <h4 class="jd-details-title"> <span class="normal"> public </span> <span class="sympad">Formatter</span> <span class="normal">()</span> </h4> <div class="api-level"> <div> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div> </div> <div class="jd-details-descr"> <div class="jd-tagdata jd-tagdescr"><p>Constructs a <code>Formatter</code>. <p>The output is written to a <code>StringBuilder</code> which can be acquired by invoking <code><a href="../../../reference/java/util/Formatter.html#out()">out()</a></code> and whose content can be obtained by calling <code>toString</code>. <p>The <code>Locale</code> used is the user's default locale. See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>". </p></div> </div> </div> <A NAME="Formatter(java.lang.Appendable)"></A> <div class="jd-details api apilevel-1"> <h4 class="jd-details-title"> <span class="normal"> public </span> <span class="sympad">Formatter</span> <span class="normal">(<a href="../../../reference/java/lang/Appendable.html">Appendable</a> a)</span> </h4> <div class="api-level"> <div> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div> </div> <div class="jd-details-descr"> <div class="jd-tagdata jd-tagdescr"><p>Constructs a <code>Formatter</code> whose output will be written to the specified <code>Appendable</code>. <p>The <code>Locale</code> used is the user's default locale. See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>".</p></div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Parameters</h5> <table class="jd-tagtable"> <tr> <th>a</td> <td>the output destination of the <code>Formatter</code>. If <code>a</code> is <code>null</code>, then a <code>StringBuilder</code> will be used. </td> </tr> </table> </div> </div> </div> <A NAME="Formatter(java.util.Locale)"></A> <div class="jd-details api apilevel-1"> <h4 class="jd-details-title"> <span class="normal"> public </span> <span class="sympad">Formatter</span> <span class="normal">(<a href="../../../reference/java/util/Locale.html">Locale</a> l)</span> </h4> <div class="api-level"> <div> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div> </div> <div class="jd-details-descr"> <div class="jd-tagdata jd-tagdescr"><p>Constructs a <code>Formatter</code> with the specified <code>Locale</code>. <p>The output is written to a <code>StringBuilder</code> which can be acquired by invoking <code><a href="../../../reference/java/util/Formatter.html#out()">out()</a></code> and whose content can be obtained by calling <code>toString</code>.</p></div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Parameters</h5> <table class="jd-tagtable"> <tr> <th>l</td> <td>the <code>Locale</code> of the <code>Formatter</code>. If <code>l</code> is <code>null</code>, then no localization will be used. </td> </tr> </table> </div> </div> </div> <A NAME="Formatter(java.lang.Appendable, java.util.Locale)"></A> <div class="jd-details api apilevel-1"> <h4 class="jd-details-title"> <span class="normal"> public </span> <span class="sympad">Formatter</span> <span class="normal">(<a href="../../../reference/java/lang/Appendable.html">Appendable</a> a, <a href="../../../reference/java/util/Locale.html">Locale</a> l)</span> </h4> <div class="api-level"> <div> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div> </div> <div class="jd-details-descr"> <div class="jd-tagdata jd-tagdescr"><p>Constructs a <code>Formatter</code> with the specified <code>Locale</code> and whose output will be written to the specified <code>Appendable</code>.</p></div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Parameters</h5> <table class="jd-tagtable"> <tr> <th>a</td> <td>the output destination of the <code>Formatter</code>. If <code>a</code> is <code>null</code>, then a <code>StringBuilder</code> will be used.</td> </tr> <tr> <th>l</td> <td>the <code>Locale</code> of the <code>Formatter</code>. If <code>l</code> is <code>null</code>, then no localization will be used. </td> </tr> </table> </div> </div> </div> <A NAME="Formatter(java.lang.String)"></A> <div class="jd-details api apilevel-1"> <h4 class="jd-details-title"> <span class="normal"> public </span> <span class="sympad">Formatter</span> <span class="normal">(<a href="../../../reference/java/lang/String.html">String</a> fileName)</span> </h4> <div class="api-level"> <div> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div> </div> <div class="jd-details-descr"> <div class="jd-tagdata jd-tagdescr"><p>Constructs a <code>Formatter</code> whose output is written to the specified file. <p>The charset of the <code>Formatter</code> is the default charset. <p>The <code>Locale</code> used is the user's default locale. See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>".</p></div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Parameters</h5> <table class="jd-tagtable"> <tr> <th>fileName</td> <td>the filename of the file that is used as the output destination for the <code>Formatter</code>. The file will be truncated to zero size if the file exists, or else a new file will be created. The output of the <code>Formatter</code> is buffered.</td> </tr> </table> </div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Throws</h5> <table class="jd-tagtable"> <tr> <th><a href="../../../reference/java/io/FileNotFoundException.html">FileNotFoundException</a></td> <td>if the filename does not denote a normal and writable file, or if a new file cannot be created, or if any error arises when opening or creating the file. </td> </tr> </table> </div> </div> </div> <A NAME="Formatter(java.lang.String, java.lang.String)"></A> <div class="jd-details api apilevel-1"> <h4 class="jd-details-title"> <span class="normal"> public </span> <span class="sympad">Formatter</span> <span class="normal">(<a href="../../../reference/java/lang/String.html">String</a> fileName, <a href="../../../reference/java/lang/String.html">String</a> csn)</span> </h4> <div class="api-level"> <div> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div> </div> <div class="jd-details-descr"> <div class="jd-tagdata jd-tagdescr"><p>Constructs a <code>Formatter</code> whose output is written to the specified file. <p>The <code>Locale</code> used is the user's default locale. See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>".</p></div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Parameters</h5> <table class="jd-tagtable"> <tr> <th>fileName</td> <td>the filename of the file that is used as the output destination for the <code>Formatter</code>. The file will be truncated to zero size if the file exists, or else a new file will be created. The output of the <code>Formatter</code> is buffered.</td> </tr> <tr> <th>csn</td> <td>the name of the charset for the <code>Formatter</code>.</td> </tr> </table> </div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Throws</h5> <table class="jd-tagtable"> <tr> <th><a href="../../../reference/java/io/FileNotFoundException.html">FileNotFoundException</a></td> <td>if the filename does not denote a normal and writable file, or if a new file cannot be created, or if any error arises when opening or creating the file.</td> </tr> <tr> <th><a href="../../../reference/java/io/UnsupportedEncodingException.html">UnsupportedEncodingException</a></td> <td>if the charset with the specified name is not supported. </td> </tr> </table> </div> </div> </div> <A NAME="Formatter(java.lang.String, java.lang.String, java.util.Locale)"></A> <div class="jd-details api apilevel-1"> <h4 class="jd-details-title"> <span class="normal"> public </span> <span class="sympad">Formatter</span> <span class="normal">(<a href="../../../reference/java/lang/String.html">String</a> fileName, <a href="../../../reference/java/lang/String.html">String</a> csn, <a href="../../../reference/java/util/Locale.html">Locale</a> l)</span> </h4> <div class="api-level"> <div> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div> </div> <div class="jd-details-descr"> <div class="jd-tagdata jd-tagdescr"><p>Constructs a <code>Formatter</code> with the given <code>Locale</code> and charset, and whose output is written to the specified file.</p></div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Parameters</h5> <table class="jd-tagtable"> <tr> <th>fileName</td> <td>the filename of the file that is used as the output destination for the <code>Formatter</code>. The file will be truncated to zero size if the file exists, or else a new file will be created. The output of the <code>Formatter</code> is buffered.</td> </tr> <tr> <th>csn</td> <td>the name of the charset for the <code>Formatter</code>.</td> </tr> <tr> <th>l</td> <td>the <code>Locale</code> of the <code>Formatter</code>. If <code>l</code> is <code>null</code>, then no localization will be used.</td> </tr> </table> </div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Throws</h5> <table class="jd-tagtable"> <tr> <th><a href="../../../reference/java/io/FileNotFoundException.html">FileNotFoundException</a></td> <td>if the filename does not denote a normal and writable file, or if a new file cannot be created, or if any error arises when opening or creating the file.</td> </tr> <tr> <th><a href="../../../reference/java/io/UnsupportedEncodingException.html">UnsupportedEncodingException</a></td> <td>if the charset with the specified name is not supported. </td> </tr> </table> </div> </div> </div> <A NAME="Formatter(java.io.File)"></A> <div class="jd-details api apilevel-1"> <h4 class="jd-details-title"> <span class="normal"> public </span> <span class="sympad">Formatter</span> <span class="normal">(<a href="../../../reference/java/io/File.html">File</a> file)</span> </h4> <div class="api-level"> <div> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div> </div> <div class="jd-details-descr"> <div class="jd-tagdata jd-tagdescr"><p>Constructs a <code>Formatter</code> whose output is written to the specified <code>File</code>. The charset of the <code>Formatter</code> is the default charset. <p>The <code>Locale</code> used is the user's default locale. See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>".</p></div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Parameters</h5> <table class="jd-tagtable"> <tr> <th>file</td> <td>the <code>File</code> that is used as the output destination for the <code>Formatter</code>. The <code>File</code> will be truncated to zero size if the <code>File</code> exists, or else a new <code>File</code> will be created. The output of the <code>Formatter</code> is buffered.</td> </tr> </table> </div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Throws</h5> <table class="jd-tagtable"> <tr> <th><a href="../../../reference/java/io/FileNotFoundException.html">FileNotFoundException</a></td> <td>if the <code>File</code> is not a normal and writable <code>File</code>, or if a new <code>File</code> cannot be created, or if any error rises when opening or creating the <code>File</code>. </td> </tr> </table> </div> </div> </div> <A NAME="Formatter(java.io.File, java.lang.String)"></A> <div class="jd-details api apilevel-1"> <h4 class="jd-details-title"> <span class="normal"> public </span> <span class="sympad">Formatter</span> <span class="normal">(<a href="../../../reference/java/io/File.html">File</a> file, <a href="../../../reference/java/lang/String.html">String</a> csn)</span> </h4> <div class="api-level"> <div> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div> </div> <div class="jd-details-descr"> <div class="jd-tagdata jd-tagdescr"><p>Constructs a <code>Formatter</code> with the given charset, and whose output is written to the specified <code>File</code>. <p>The <code>Locale</code> used is the user's default locale. See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>".</p></div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Parameters</h5> <table class="jd-tagtable"> <tr> <th>file</td> <td>the <code>File</code> that is used as the output destination for the <code>Formatter</code>. The <code>File</code> will be truncated to zero size if the <code>File</code> exists, or else a new <code>File</code> will be created. The output of the <code>Formatter</code> is buffered.</td> </tr> <tr> <th>csn</td> <td>the name of the charset for the <code>Formatter</code>.</td> </tr> </table> </div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Throws</h5> <table class="jd-tagtable"> <tr> <th><a href="../../../reference/java/io/FileNotFoundException.html">FileNotFoundException</a></td> <td>if the <code>File</code> is not a normal and writable <code>File</code>, or if a new <code>File</code> cannot be created, or if any error rises when opening or creating the <code>File</code>.</td> </tr> <tr> <th><a href="../../../reference/java/io/UnsupportedEncodingException.html">UnsupportedEncodingException</a></td> <td>if the charset with the specified name is not supported. </td> </tr> </table> </div> </div> </div> <A NAME="Formatter(java.io.File, java.lang.String, java.util.Locale)"></A> <div class="jd-details api apilevel-1"> <h4 class="jd-details-title"> <span class="normal"> public </span> <span class="sympad">Formatter</span> <span class="normal">(<a href="../../../reference/java/io/File.html">File</a> file, <a href="../../../reference/java/lang/String.html">String</a> csn, <a href="../../../reference/java/util/Locale.html">Locale</a> l)</span> </h4> <div class="api-level"> <div> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div> </div> <div class="jd-details-descr"> <div class="jd-tagdata jd-tagdescr"><p>Constructs a <code>Formatter</code> with the given <code>Locale</code> and charset, and whose output is written to the specified <code>File</code>.</p></div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Parameters</h5> <table class="jd-tagtable"> <tr> <th>file</td> <td>the <code>File</code> that is used as the output destination for the <code>Formatter</code>. The <code>File</code> will be truncated to zero size if the <code>File</code> exists, or else a new <code>File</code> will be created. The output of the <code>Formatter</code> is buffered.</td> </tr> <tr> <th>csn</td> <td>the name of the charset for the <code>Formatter</code>.</td> </tr> <tr> <th>l</td> <td>the <code>Locale</code> of the <code>Formatter</code>. If <code>l</code> is <code>null</code>, then no localization will be used.</td> </tr> </table> </div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Throws</h5> <table class="jd-tagtable"> <tr> <th><a href="../../../reference/java/io/FileNotFoundException.html">FileNotFoundException</a></td> <td>if the <code>File</code> is not a normal and writable <code>File</code>, or if a new <code>File</code> cannot be created, or if any error rises when opening or creating the <code>File</code>.</td> </tr> <tr> <th><a href="../../../reference/java/io/UnsupportedEncodingException.html">UnsupportedEncodingException</a></td> <td>if the charset with the specified name is not supported. </td> </tr> </table> </div> </div> </div> <A NAME="Formatter(java.io.OutputStream)"></A> <div class="jd-details api apilevel-1"> <h4 class="jd-details-title"> <span class="normal"> public </span> <span class="sympad">Formatter</span> <span class="normal">(<a href="../../../reference/java/io/OutputStream.html">OutputStream</a> os)</span> </h4> <div class="api-level"> <div> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div> </div> <div class="jd-details-descr"> <div class="jd-tagdata jd-tagdescr"><p>Constructs a <code>Formatter</code> whose output is written to the specified <code>OutputStream</code>. <p>The charset of the <code>Formatter</code> is the default charset. <p>The <code>Locale</code> used is the user's default locale. See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>".</p></div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Parameters</h5> <table class="jd-tagtable"> <tr> <th>os</td> <td>the stream to be used as the destination of the <code>Formatter</code>. </td> </tr> </table> </div> </div> </div> <A NAME="Formatter(java.io.OutputStream, java.lang.String)"></A> <div class="jd-details api apilevel-1"> <h4 class="jd-details-title"> <span class="normal"> public </span> <span class="sympad">Formatter</span> <span class="normal">(<a href="../../../reference/java/io/OutputStream.html">OutputStream</a> os, <a href="../../../reference/java/lang/String.html">String</a> csn)</span> </h4> <div class="api-level"> <div> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div> </div> <div class="jd-details-descr"> <div class="jd-tagdata jd-tagdescr"><p>Constructs a <code>Formatter</code> with the given charset, and whose output is written to the specified <code>OutputStream</code>. <p>The <code>Locale</code> used is the user's default locale. See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>".</p></div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Parameters</h5> <table class="jd-tagtable"> <tr> <th>os</td> <td>the stream to be used as the destination of the <code>Formatter</code>.</td> </tr> <tr> <th>csn</td> <td>the name of the charset for the <code>Formatter</code>.</td> </tr> </table> </div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Throws</h5> <table class="jd-tagtable"> <tr> <th><a href="../../../reference/java/io/UnsupportedEncodingException.html">UnsupportedEncodingException</a></td> <td>if the charset with the specified name is not supported. </td> </tr> </table> </div> </div> </div> <A NAME="Formatter(java.io.OutputStream, java.lang.String, java.util.Locale)"></A> <div class="jd-details api apilevel-1"> <h4 class="jd-details-title"> <span class="normal"> public </span> <span class="sympad">Formatter</span> <span class="normal">(<a href="../../../reference/java/io/OutputStream.html">OutputStream</a> os, <a href="../../../reference/java/lang/String.html">String</a> csn, <a href="../../../reference/java/util/Locale.html">Locale</a> l)</span> </h4> <div class="api-level"> <div> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div> </div> <div class="jd-details-descr"> <div class="jd-tagdata jd-tagdescr"><p>Constructs a <code>Formatter</code> with the given <code>Locale</code> and charset, and whose output is written to the specified <code>OutputStream</code>.</p></div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Parameters</h5> <table class="jd-tagtable"> <tr> <th>os</td> <td>the stream to be used as the destination of the <code>Formatter</code>.</td> </tr> <tr> <th>csn</td> <td>the name of the charset for the <code>Formatter</code>.</td> </tr> <tr> <th>l</td> <td>the <code>Locale</code> of the <code>Formatter</code>. If <code>l</code> is <code>null</code>, then no localization will be used.</td> </tr> </table> </div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Throws</h5> <table class="jd-tagtable"> <tr> <th><a href="../../../reference/java/io/UnsupportedEncodingException.html">UnsupportedEncodingException</a></td> <td>if the charset with the specified name is not supported. </td> </tr> </table> </div> </div> </div> <A NAME="Formatter(java.io.PrintStream)"></A> <div class="jd-details api apilevel-1"> <h4 class="jd-details-title"> <span class="normal"> public </span> <span class="sympad">Formatter</span> <span class="normal">(<a href="../../../reference/java/io/PrintStream.html">PrintStream</a> ps)</span> </h4> <div class="api-level"> <div> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div> </div> <div class="jd-details-descr"> <div class="jd-tagdata jd-tagdescr"><p>Constructs a <code>Formatter</code> whose output is written to the specified <code>PrintStream</code>. <p>The charset of the <code>Formatter</code> is the default charset. <p>The <code>Locale</code> used is the user's default locale. See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>".</p></div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Parameters</h5> <table class="jd-tagtable"> <tr> <th>ps</td> <td>the <code>PrintStream</code> used as destination of the <code>Formatter</code>. If <code>ps</code> is <code>null</code>, then a <code>NullPointerException</code> will be raised. </td> </tr> </table> </div> </div> </div> <!-- ========= CONSTRUCTOR DETAIL ======== --> <!-- Protected ctors --> <!-- ========= METHOD DETAIL ======== --> <!-- Public methdos --> <h2>Public Methods</h2> <A NAME="close()"></A> <div class="jd-details api apilevel-1"> <h4 class="jd-details-title"> <span class="normal"> public void </span> <span class="sympad">close</span> <span class="normal">()</span> </h4> <div class="api-level"> <div> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div> </div> <div class="jd-details-descr"> <div class="jd-tagdata jd-tagdescr"><p>Closes the <code>Formatter</code>. If the output destination is <code><a href="../../../reference/java/io/Closeable.html">Closeable</a></code>, then the method <code>close()</code> will be called on that destination. If the <code>Formatter</code> has been closed, then calling the this method will have no effect. Any method but the <code><a href="../../../reference/java/util/Formatter.html#ioException()">ioException()</a></code> that is called after the <code>Formatter</code> has been closed will raise a <code>FormatterClosedException</code>. </p></div> </div> </div> <A NAME="flush()"></A> <div class="jd-details api apilevel-1"> <h4 class="jd-details-title"> <span class="normal"> public void </span> <span class="sympad">flush</span> <span class="normal">()</span> </h4> <div class="api-level"> <div> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div> </div> <div class="jd-details-descr"> <div class="jd-tagdata jd-tagdescr"><p>Flushes the <code>Formatter</code>. If the output destination is <code><a href="../../../reference/java/io/Flushable.html">Flushable</a></code>, then the method <code>flush()</code> will be called on that destination.</p></div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Throws</h5> <table class="jd-tagtable"> <tr> <th><a href="../../../reference/java/util/FormatterClosedException.html">FormatterClosedException</a></td> <td>if the <code>Formatter</code> has been closed. </td> </tr> </table> </div> </div> </div> <A NAME="format(java.lang.String, java.lang.Object...)"></A> <div class="jd-details api apilevel-1"> <h4 class="jd-details-title"> <span class="normal"> public <a href="../../../reference/java/util/Formatter.html">Formatter</a> </span> <span class="sympad">format</span> <span class="normal">(<a href="../../../reference/java/lang/String.html">String</a> format, <a href="../../../reference/java/lang/Object.html">Object...</a> args)</span> </h4> <div class="api-level"> <div> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div> </div> <div class="jd-details-descr"> <div class="jd-tagdata jd-tagdescr"><p>Writes a formatted string to the output destination of the <code>Formatter</code>.</p></div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Parameters</h5> <table class="jd-tagtable"> <tr> <th>format</td> <td>a format string.</td> </tr> <tr> <th>args</td> <td>the arguments list used in the <code>format()</code> method. If there are more arguments than those specified by the format string, then the additional arguments are ignored.</td> </tr> </table> </div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Returns</h5> <ul class="nolist"><li>this <code>Formatter</code>.</li></ul> </div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Throws</h5> <table class="jd-tagtable"> <tr> <th><a href="../../../reference/java/util/IllegalFormatException.html">IllegalFormatException</a></td> <td>if the format string is illegal or incompatible with the arguments, or if fewer arguments are sent than those required by the format string, or any other illegal situation.</td> </tr> <tr> <th><a href="../../../reference/java/util/FormatterClosedException.html">FormatterClosedException</a></td> <td>if the <code>Formatter</code> has been closed. </td> </tr> </table> </div> </div> </div> <A NAME="format(java.util.Locale, java.lang.String, java.lang.Object...)"></A> <div class="jd-details api apilevel-1"> <h4 class="jd-details-title"> <span class="normal"> public <a href="../../../reference/java/util/Formatter.html">Formatter</a> </span> <span class="sympad">format</span> <span class="normal">(<a href="../../../reference/java/util/Locale.html">Locale</a> l, <a href="../../../reference/java/lang/String.html">String</a> format, <a href="../../../reference/java/lang/Object.html">Object...</a> args)</span> </h4> <div class="api-level"> <div> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div> </div> <div class="jd-details-descr"> <div class="jd-tagdata jd-tagdescr"><p>Writes a formatted string to the output destination of the <code>Formatter</code>.</p></div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Parameters</h5> <table class="jd-tagtable"> <tr> <th>l</td> <td>the <code>Locale</code> used in the method. If <code>locale</code> is <code>null</code>, then no localization will be applied. This parameter does not change this Formatter's default <code>Locale</code> as specified during construction, and only applies for the duration of this call.</td> </tr> <tr> <th>format</td> <td>a format string.</td> </tr> <tr> <th>args</td> <td>the arguments list used in the <code>format()</code> method. If there are more arguments than those specified by the format string, then the additional arguments are ignored.</td> </tr> </table> </div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Returns</h5> <ul class="nolist"><li>this <code>Formatter</code>.</li></ul> </div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Throws</h5> <table class="jd-tagtable"> <tr> <th><a href="../../../reference/java/util/IllegalFormatException.html">IllegalFormatException</a></td> <td>if the format string is illegal or incompatible with the arguments, or if fewer arguments are sent than those required by the format string, or any other illegal situation.</td> </tr> <tr> <th><a href="../../../reference/java/util/FormatterClosedException.html">FormatterClosedException</a></td> <td>if the <code>Formatter</code> has been closed. </td> </tr> </table> </div> </div> </div> <A NAME="ioException()"></A> <div class="jd-details api apilevel-1"> <h4 class="jd-details-title"> <span class="normal"> public <a href="../../../reference/java/io/IOException.html">IOException</a> </span> <span class="sympad">ioException</span> <span class="normal">()</span> </h4> <div class="api-level"> <div> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div> </div> <div class="jd-details-descr"> <div class="jd-tagdata jd-tagdescr"><p>Returns the last <code>IOException</code> thrown by the <code>Formatter</code>'s output destination. If the <code>append()</code> method of the destination does not throw <code>IOException</code>s, the <code>ioException()</code> method will always return <code>null</code>.</p></div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Returns</h5> <ul class="nolist"><li>the last <code>IOException</code> thrown by the <code>Formatter</code>'s output destination. </li></ul> </div> </div> </div> <A NAME="locale()"></A> <div class="jd-details api apilevel-1"> <h4 class="jd-details-title"> <span class="normal"> public <a href="../../../reference/java/util/Locale.html">Locale</a> </span> <span class="sympad">locale</span> <span class="normal">()</span> </h4> <div class="api-level"> <div> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div> </div> <div class="jd-details-descr"> <div class="jd-tagdata jd-tagdescr"><p>Returns the <code>Locale</code> of the <code>Formatter</code>.</p></div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Returns</h5> <ul class="nolist"><li>the <code>Locale</code> for the <code>Formatter</code> or <code>null</code> for no <code>Locale</code>.</li></ul> </div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Throws</h5> <table class="jd-tagtable"> <tr> <th><a href="../../../reference/java/util/FormatterClosedException.html">FormatterClosedException</a></td> <td>if the <code>Formatter</code> has been closed. </td> </tr> </table> </div> </div> </div> <A NAME="out()"></A> <div class="jd-details api apilevel-1"> <h4 class="jd-details-title"> <span class="normal"> public <a href="../../../reference/java/lang/Appendable.html">Appendable</a> </span> <span class="sympad">out</span> <span class="normal">()</span> </h4> <div class="api-level"> <div> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div> </div> <div class="jd-details-descr"> <div class="jd-tagdata jd-tagdescr"><p>Returns the output destination of the <code>Formatter</code>.</p></div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Returns</h5> <ul class="nolist"><li>the output destination of the <code>Formatter</code>.</li></ul> </div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Throws</h5> <table class="jd-tagtable"> <tr> <th><a href="../../../reference/java/util/FormatterClosedException.html">FormatterClosedException</a></td> <td>if the <code>Formatter</code> has been closed. </td> </tr> </table> </div> </div> </div> <A NAME="toString()"></A> <div class="jd-details api apilevel-1"> <h4 class="jd-details-title"> <span class="normal"> public <a href="../../../reference/java/lang/String.html">String</a> </span> <span class="sympad">toString</span> <span class="normal">()</span> </h4> <div class="api-level"> <div> Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div> </div> <div class="jd-details-descr"> <div class="jd-tagdata jd-tagdescr"><p>Returns the content by calling the <code>toString()</code> method of the output destination.</p></div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Returns</h5> <ul class="nolist"><li>the content by calling the <code>toString()</code> method of the output destination.</li></ul> </div> <div class="jd-tagdata"> <h5 class="jd-tagtitle">Throws</h5> <table class="jd-tagtable"> <tr> <th><a href="../../../reference/java/util/FormatterClosedException.html">FormatterClosedException</a></td> <td>if the <code>Formatter</code> has been closed. </td> </tr> </table> </div> </div> </div> <!-- ========= METHOD DETAIL ======== --> <!-- ========= END OF CLASS DATA ========= --> <A NAME="navbar_top"></A> <div id="footer" class="wrap" > <div id="copyright"> Except as noted, this content is licensed under <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. For details and restrictions, see the <a href="../../../license.html"> Content License</a>. </div> <div id="build_info"> Android 4.4&nbsp;r1 &mdash; <script src="../../../timestamp.js" type="text/javascript"></script> <script>document.write(BUILD_TIMESTAMP)</script> </div> <div id="footerlinks"> <p> <a href="../../../about/index.html">About Android</a>&nbsp;&nbsp;|&nbsp; <a href="../../../legal.html">Legal</a>&nbsp;&nbsp;|&nbsp; <a href="../../../support.html">Support</a> </p> </div> </div> <!-- end footer --> </div> <!-- jd-content --> </div><!-- end doc-content --> </div> <!-- end body-content --> </body> </html>
terrytowne/android-developer-cn
reference/java/util/Formatter.html
HTML
mit
140,532
#include "masternode.h" #include "activemasternode.h" #include "darksend.h" //#include "primitives/transaction.h" #include "main.h" #include "util.h" #include "addrman.h" #include <boost/lexical_cast.hpp> int CMasterNode::minProtoVersion = MIN_MN_PROTO_VERSION; CCriticalSection cs_masternodes; /** The list of active masternodes */ std::vector<CMasterNode> vecMasternodes; /** Object for who's going to get paid on which blocks */ CMasternodePayments masternodePayments; // keep track of masternode votes I've seen map<uint256, CMasternodePaymentWinner> mapSeenMasternodeVotes; // keep track of the scanning errors I've seen map<uint256, int> mapSeenMasternodeScanningErrors; // who's asked for the masternode list and the last time std::map<CNetAddr, int64_t> askedForMasternodeList; // which masternodes we've asked for std::map<COutPoint, int64_t> askedForMasternodeListEntry; // cache block hashes as we calculate them std::map<int64_t, uint256> mapCacheBlockHashes; // manage the masternode connections void ProcessMasternodeConnections(){ LOCK(cs_vNodes); BOOST_FOREACH(CNode* pnode, vNodes) { //if it's our masternode, let it be if(darkSendPool.submittedToMasternode == pnode->addr) continue; if(pnode->fDarkSendMaster){ LogPrintf("Closing masternode connection %s \n", pnode->addr.ToString().c_str()); pnode->CloseSocketDisconnect(); } } } void ProcessMessageMasternode(CNode* pfrom, std::string& strCommand, CDataStream& vRecv) { if (strCommand == "dsee") { //DarkSend Election Entry if(fLiteMode) return; //disable all darksend/masternode related functionality bool fIsInitialDownload = IsInitialBlockDownload(); if(fIsInitialDownload) return; CTxIn vin; CService addr; CPubKey pubkey; CPubKey pubkey2; vector<unsigned char> vchSig; int64_t sigTime; int count; int current; int64_t lastUpdated; int protocolVersion; std::string strMessage; // 70047 and greater vRecv >> vin >> addr >> vchSig >> sigTime >> pubkey >> pubkey2 >> count >> current >> lastUpdated >> protocolVersion; // make sure signature isn't in the future (past is OK) if (sigTime > GetAdjustedTime() + 60 * 60) { LogPrintf("dsee - Signature rejected, too far into the future %s\n", vin.ToString().c_str()); return; } bool isLocal = addr.IsRFC1918() || addr.IsLocal(); //if(Params().MineBlocksOnDemand()) isLocal = false; std::string vchPubKey(pubkey.begin(), pubkey.end()); std::string vchPubKey2(pubkey2.begin(), pubkey2.end()); strMessage = addr.ToString() + boost::lexical_cast<std::string>(sigTime) + vchPubKey + vchPubKey2 + boost::lexical_cast<std::string>(protocolVersion); if(protocolVersion < MIN_MN_PROTO_VERSION) { LogPrintf("dsee - ignoring outdated masternode %s protocol version %d\n", vin.ToString().c_str(), protocolVersion); return; } CScript pubkeyScript; pubkeyScript =GetScriptForDestination(pubkey.GetID()); if(pubkeyScript.size() != 25) { LogPrintf("dsee - pubkey the wrong size\n"); Misbehaving(pfrom->GetId(), 100); return; } CScript pubkeyScript2; pubkeyScript2 =GetScriptForDestination(pubkey2.GetID()); if(pubkeyScript2.size() != 25) { LogPrintf("dsee - pubkey2 the wrong size\n"); Misbehaving(pfrom->GetId(), 100); return; } std::string errorMessage = ""; if(!darkSendSigner.VerifyMessage(pubkey, vchSig, strMessage, errorMessage)){ LogPrintf("dsee - Got bad masternode address signature\n"); Misbehaving(pfrom->GetId(), 100); return; } //search existing masternode list, this is where we update existing masternodes with new dsee broadcasts LOCK(cs_masternodes); BOOST_FOREACH(CMasterNode& mn, vecMasternodes) { if(mn.vin.prevout == vin.prevout) { // count == -1 when it's a new entry // e.g. We don't want the entry relayed/time updated when we're syncing the list // mn.pubkey = pubkey, IsVinAssociatedWithPubkey is validated once below, // after that they just need to match if(count == -1 && mn.pubkey == pubkey && !mn.UpdatedWithin(MASTERNODE_MIN_DSEE_SECONDS)){ mn.UpdateLastSeen(); if(mn.now < sigTime){ //take the newest entry LogPrintf("dsee - Got updated entry for %s\n", addr.ToString().c_str()); mn.pubkey2 = pubkey2; mn.now = sigTime; mn.sig = vchSig; mn.protocolVersion = protocolVersion; mn.addr = addr; RelayDarkSendElectionEntry(vin, addr, vchSig, sigTime, pubkey, pubkey2, count, current, lastUpdated, protocolVersion); } } return; } } // make sure the vout that was signed is related to the transaction that spawned the masternode // - this is expensive, so it's only done once per masternode if(!darkSendSigner.IsVinAssociatedWithPubkey(vin, pubkey)) { LogPrintf("dsee - Got mismatched pubkey and vin\n"); Misbehaving(pfrom->GetId(), 100); return; } if(fDebug) LogPrintf("dsee - Got NEW masternode entry %s\n", addr.ToString().c_str()); // make sure it's still unspent // - this is checked later by .check() in many places and by ThreadCheckDarkSendPool() CValidationState state; CTransaction tx = CTransaction(); CTxOut vout = CTxOut(9999*COIN, darkSendPool.collateralPubKey); tx.vin.push_back(vin); tx.vout.push_back(vout); //if(AcceptableInputs(mempool, state, tx)){ bool* pfMissingInputs = false; if(AcceptableInputs(mempool, tx, false, pfMissingInputs)){ if(fDebug) LogPrintf("dsee - Accepted masternode entry %i %i\n", count, current); if(GetInputAge(vin) < MASTERNODE_MIN_CONFIRMATIONS){ LogPrintf("dsee - Input must have least %d confirmations\n", MASTERNODE_MIN_CONFIRMATIONS); Misbehaving(pfrom->GetId(), 20); return; } // use this as a peer addrman.Add(CAddress(addr), pfrom->addr, 2*60*60); // add our masternode CMasterNode mn(addr, vin, pubkey, vchSig, sigTime, pubkey2, protocolVersion); mn.UpdateLastSeen(lastUpdated); vecMasternodes.push_back(mn); // if it matches our masternodeprivkey, then we've been remotely activated if(pubkey2 == activeMasternode.pubKeyMasternode && protocolVersion == PROTOCOL_VERSION){ activeMasternode.EnableHotColdMasterNode(vin, addr); } if(count == -1 && !isLocal) RelayDarkSendElectionEntry(vin, addr, vchSig, sigTime, pubkey, pubkey2, count, current, lastUpdated, protocolVersion); } else { LogPrintf("dsee - Rejected masternode entry %s\n", addr.ToString().c_str()); int nDoS = 0; if (state.IsInvalid(nDoS)) { LogPrintf("dsee - %s from %s %s was not accepted into the memory pool\n", tx.GetHash().ToString().c_str(), pfrom->addr.ToString().c_str(), pfrom->cleanSubVer.c_str()); if (nDoS > 0) Misbehaving(pfrom->GetId(), nDoS); } } } else if (strCommand == "dseep") { //DarkSend Election Entry Ping if(fLiteMode) return; //disable all darksend/masternode related functionality bool fIsInitialDownload = IsInitialBlockDownload(); if(fIsInitialDownload) return; CTxIn vin; vector<unsigned char> vchSig; int64_t sigTime; bool stop; vRecv >> vin >> vchSig >> sigTime >> stop; //LogPrintf("dseep - Received: vin: %s sigTime: %lld stop: %s\n", vin.ToString().c_str(), sigTime, stop ? "true" : "false"); if (sigTime > GetAdjustedTime() + 60 * 60) { LogPrintf("dseep - Signature rejected, too far into the future %s\n", vin.ToString().c_str()); return; } if (sigTime <= GetAdjustedTime() - 60 * 60) { LogPrintf("dseep - Signature rejected, too far into the past %s - %d %d \n", vin.ToString().c_str(), sigTime, GetAdjustedTime()); return; } // see if we have this masternode LOCK(cs_masternodes); BOOST_FOREACH(CMasterNode& mn, vecMasternodes) { if(mn.vin.prevout == vin.prevout) { // LogPrintf("dseep - Found corresponding mn for vin: %s\n", vin.ToString().c_str()); // take this only if it's newer if(mn.lastDseep < sigTime){ std::string strMessage = mn.addr.ToString() + boost::lexical_cast<std::string>(sigTime) + boost::lexical_cast<std::string>(stop); std::string errorMessage = ""; if(!darkSendSigner.VerifyMessage(mn.pubkey2, vchSig, strMessage, errorMessage)){ LogPrintf("dseep - Got bad masternode address signature %s \n", vin.ToString().c_str()); //Misbehaving(pfrom->GetId(), 100); return; } mn.lastDseep = sigTime; if(!mn.UpdatedWithin(MASTERNODE_MIN_DSEEP_SECONDS)){ mn.UpdateLastSeen(); if(stop) { mn.Disable(); mn.Check(); } RelayDarkSendElectionEntryPing(vin, vchSig, sigTime, stop); } } return; } } if(fDebug) LogPrintf("dseep - Couldn't find masternode entry %s\n", vin.ToString().c_str()); std::map<COutPoint, int64_t>::iterator i = askedForMasternodeListEntry.find(vin.prevout); if (i != askedForMasternodeListEntry.end()){ int64_t t = (*i).second; if (GetTime() < t) { // we've asked recently return; } } // ask for the dsee info once from the node that sent dseep LogPrintf("dseep - Asking source node for missing entry %s\n", vin.ToString().c_str()); pfrom->PushMessage("dseg", vin); int64_t askAgain = GetTime()+(60*60*24); askedForMasternodeListEntry[vin.prevout] = askAgain; } else if (strCommand == "dseg") { //Get masternode list or specific entry if(fLiteMode) return; //disable all darksend/masternode related functionality CTxIn vin; vRecv >> vin; if(vin == CTxIn()) { //only should ask for this once //local network //Note tor peers show up as local proxied addrs //if(!pfrom->addr.IsRFC1918())//&& !Params().MineBlocksOnDemand()) //{ std::map<CNetAddr, int64_t>::iterator i = askedForMasternodeList.find(pfrom->addr); if (i != askedForMasternodeList.end()) { int64_t t = (*i).second; if (GetTime() < t) { //Misbehaving(pfrom->GetId(), 34); //LogPrintf("dseg - peer already asked me for the list\n"); //return; } } int64_t askAgain = GetTime()+(60*60*3); askedForMasternodeList[pfrom->addr] = askAgain; //} } //else, asking for a specific node which is ok LOCK(cs_masternodes); int count = vecMasternodes.size(); int i = 0; BOOST_FOREACH(CMasterNode mn, vecMasternodes) { if(mn.addr.IsRFC1918()) continue; //local network if(vin == CTxIn()){ mn.Check(); if(mn.IsEnabled()) { if(fDebug) LogPrintf("dseg - Sending masternode entry - %s \n", mn.addr.ToString().c_str()); pfrom->PushMessage("dsee", mn.vin, mn.addr, mn.sig, mn.now, mn.pubkey, mn.pubkey2, count, i, mn.lastTimeSeen, mn.protocolVersion); } } else if (vin == mn.vin) { if(fDebug) LogPrintf("dseg - Sending masternode entry - %s \n", mn.addr.ToString().c_str()); pfrom->PushMessage("dsee", mn.vin, mn.addr, mn.sig, mn.now, mn.pubkey, mn.pubkey2, count, i, mn.lastTimeSeen, mn.protocolVersion); LogPrintf("dseg - Sent 1 masternode entries to %s\n", pfrom->addr.ToString().c_str()); return; } i++; } LogPrintf("dseg - Sent %d masternode entries to %s\n", count, pfrom->addr.ToString().c_str()); } else if (strCommand == "mnget") { //Masternode Payments Request Sync if(fLiteMode) return; //disable all darksend/masternode related functionality /*if(pfrom->HasFulfilledRequest("mnget")) { LogPrintf("mnget - peer already asked me for the list\n"); Misbehaving(pfrom->GetId(), 20); return; }*/ pfrom->FulfilledRequest("mnget"); masternodePayments.Sync(pfrom); LogPrintf("mnget - Sent masternode winners to %s\n", pfrom->addr.ToString().c_str()); } else if (strCommand == "mnw") { //Masternode Payments Declare Winner //this is required in litemode CMasternodePaymentWinner winner; int a = 0; vRecv >> winner >> a; if(pindexBest == NULL) return; uint256 hash = winner.GetHash(); if(mapSeenMasternodeVotes.count(hash)) { if(fDebug) LogPrintf("mnw - seen vote %s Height %d bestHeight %d\n", hash.ToString().c_str(), winner.nBlockHeight, pindexBest->nHeight); return; } if(winner.nBlockHeight < pindexBest->nHeight - 10 || winner.nBlockHeight > pindexBest->nHeight+20){ LogPrintf("mnw - winner out of range %s Height %d bestHeight %d\n", winner.vin.ToString().c_str(), winner.nBlockHeight, pindexBest->nHeight); return; } if(winner.vin.nSequence != std::numeric_limits<unsigned int>::max()){ LogPrintf("mnw - invalid nSequence\n"); Misbehaving(pfrom->GetId(), 100); return; } LogPrintf("mnw - winning vote %s Height %d bestHeight %d\n", winner.vin.ToString().c_str(), winner.nBlockHeight, pindexBest->nHeight); if(!masternodePayments.CheckSignature(winner)){ LogPrintf("mnw - invalid signature\n"); Misbehaving(pfrom->GetId(), 100); return; } mapSeenMasternodeVotes.insert(make_pair(hash, winner)); if(masternodePayments.AddWinningMasternode(winner)){ masternodePayments.Relay(winner); } } } struct CompareValueOnly { bool operator()(const pair<int64_t, CTxIn>& t1, const pair<int64_t, CTxIn>& t2) const { return t1.first < t2.first; } }; struct CompareValueOnly2 { bool operator()(const pair<int64_t, int>& t1, const pair<int64_t, int>& t2) const { return t1.first < t2.first; } }; int CountMasternodesAboveProtocol(int protocolVersion) { int i = 0; LOCK(cs_masternodes); BOOST_FOREACH(CMasterNode& mn, vecMasternodes) { if(mn.protocolVersion < protocolVersion) continue; i++; } return i; } int GetMasternodeByVin(CTxIn& vin) { int i = 0; LOCK(cs_masternodes); BOOST_FOREACH(CMasterNode& mn, vecMasternodes) { if (mn.vin == vin) return i; i++; } return -1; } int GetCurrentMasterNode(int mod, int64_t nBlockHeight, int minProtocol) { int i = 0; unsigned int score = 0; int winner = -1; LOCK(cs_masternodes); // scan for winner BOOST_FOREACH(CMasterNode mn, vecMasternodes) { mn.Check(); if(mn.protocolVersion < minProtocol) continue; if(!mn.IsEnabled()) { i++; continue; } // calculate the score for each masternode uint256 n = mn.CalculateScore(mod, nBlockHeight); unsigned int n2 = 0; memcpy(&n2, &n, sizeof(n2)); // determine the winner if(n2 > score){ score = n2; winner = i; } i++; } return winner; } int GetMasternodeByRank(int findRank, int64_t nBlockHeight, int minProtocol) { LOCK(cs_masternodes); int i = 0; std::vector<pair<unsigned int, int> > vecMasternodeScores; i = 0; BOOST_FOREACH(CMasterNode mn, vecMasternodes) { mn.Check(); if(mn.protocolVersion < minProtocol) continue; if(!mn.IsEnabled()) { i++; continue; } uint256 n = mn.CalculateScore(1, nBlockHeight); unsigned int n2 = 0; memcpy(&n2, &n, sizeof(n2)); vecMasternodeScores.push_back(make_pair(n2, i)); i++; } sort(vecMasternodeScores.rbegin(), vecMasternodeScores.rend(), CompareValueOnly2()); int rank = 0; BOOST_FOREACH (PAIRTYPE(unsigned int, int)& s, vecMasternodeScores){ rank++; if(rank == findRank) return s.second; } return -1; } int GetMasternodeRank(CTxIn& vin, int64_t nBlockHeight, int minProtocol) { LOCK(cs_masternodes); std::vector<pair<unsigned int, CTxIn> > vecMasternodeScores; BOOST_FOREACH(CMasterNode& mn, vecMasternodes) { mn.Check(); if(mn.protocolVersion < minProtocol) continue; if(!mn.IsEnabled()) { continue; } uint256 n = mn.CalculateScore(1, nBlockHeight); unsigned int n2 = 0; memcpy(&n2, &n, sizeof(n2)); vecMasternodeScores.push_back(make_pair(n2, mn.vin)); } sort(vecMasternodeScores.rbegin(), vecMasternodeScores.rend(), CompareValueOnly()); unsigned int rank = 0; BOOST_FOREACH (PAIRTYPE(unsigned int, CTxIn)& s, vecMasternodeScores){ rank++; if(s.second == vin) { return rank; } } return -1; } //Get the last hash that matches the modulus given. Processed in reverse order bool GetBlockHash(uint256& hash, int nBlockHeight) { if (pindexBest == NULL) return false; if(nBlockHeight == 0) nBlockHeight = pindexBest->nHeight; if(mapCacheBlockHashes.count(nBlockHeight)){ hash = mapCacheBlockHashes[nBlockHeight]; return true; } const CBlockIndex *BlockLastSolved = pindexBest; const CBlockIndex *BlockReading = pindexBest; if (BlockLastSolved == NULL || BlockLastSolved->nHeight == 0 || pindexBest->nHeight+1 < nBlockHeight) return false; int nBlocksAgo = 0; if(nBlockHeight > 0) nBlocksAgo = (pindexBest->nHeight+1)-nBlockHeight; assert(nBlocksAgo >= 0); int n = 0; for (unsigned int i = 1; BlockReading && BlockReading->nHeight > 0; i++) { if(n >= nBlocksAgo){ hash = BlockReading->GetBlockHash(); mapCacheBlockHashes[nBlockHeight] = hash; return true; } n++; if (BlockReading->pprev == NULL) { assert(BlockReading); break; } BlockReading = BlockReading->pprev; } return false; } // // Deterministically calculate a given "score" for a masternode depending on how close it's hash is to // the proof of work for that block. The further away they are the better, the furthest will win the election // and get paid this block // uint256 CMasterNode::CalculateScore(int mod, int64_t nBlockHeight) { if(pindexBest == NULL) return 0; uint256 hash = 0; uint256 aux = vin.prevout.hash + vin.prevout.n; if(!GetBlockHash(hash, nBlockHeight)) return 0; uint256 hash2 = Hash(BEGIN(hash), END(hash)); uint256 hash3 = Hash(BEGIN(hash), END(aux)); uint256 r = (hash3 > hash2 ? hash3 - hash2 : hash2 - hash3); return r; } void CMasterNode::Check() { //once spent, stop doing the checks if(enabled==3) return; if(!UpdatedWithin(MASTERNODE_REMOVAL_SECONDS)){ enabled = 4; return; } if(!UpdatedWithin(MASTERNODE_EXPIRATION_SECONDS)){ enabled = 2; return; } if(!unitTest){ CValidationState state; CTransaction tx = CTransaction(); CTxOut vout = CTxOut(9999*COIN, darkSendPool.collateralPubKey); tx.vin.push_back(vin); tx.vout.push_back(vout); //if(!AcceptableInputs(mempool, state, tx)){ bool* pfMissingInputs = false; if(!AcceptableInputs(mempool, tx, false, pfMissingInputs)){ enabled = 3; return; } } enabled = 1; // OK } bool CMasternodePayments::CheckSignature(CMasternodePaymentWinner& winner) { //note: need to investigate why this is failing std::string strMessage = winner.vin.ToString().c_str() + boost::lexical_cast<std::string>(winner.nBlockHeight) + winner.payee.ToString(); if (!TestNet()) { std::string strPubKey = strMainPubKey; CPubKey pubkey(ParseHex(strPubKey)); std::string errorMessage = ""; if(!darkSendSigner.VerifyMessage(pubkey, winner.vchSig, strMessage, errorMessage)){ return false; } } else if (TestNet()) { std::string strPubKey = strTestPubKey; CPubKey pubkey(ParseHex(strPubKey)); assert(strPubKey != "0"); std::string errorMessage = ""; if(!darkSendSigner.VerifyMessage(pubkey, winner.vchSig, strMessage, errorMessage)){ return false; } } return true; } bool CMasternodePayments::Sign(CMasternodePaymentWinner& winner) { std::string strMessage = winner.vin.ToString().c_str() + boost::lexical_cast<std::string>(winner.nBlockHeight) + winner.payee.ToString(); CKey key2; CPubKey pubkey2; std::string errorMessage = ""; if(!darkSendSigner.SetKey(strMasterPrivKey, errorMessage, key2, pubkey2)) { LogPrintf("CMasternodePayments::Sign - ERROR: Invalid masternodeprivkey: '%s'\n", errorMessage.c_str()); return false; } if(!darkSendSigner.SignMessage(strMessage, errorMessage, winner.vchSig, key2)) { LogPrintf("CMasternodePayments::Sign - Sign message failed"); return false; } if(!darkSendSigner.VerifyMessage(pubkey2, winner.vchSig, strMessage, errorMessage)) { LogPrintf("CMasternodePayments::Sign - Verify message failed"); return false; } return true; } uint64_t CMasternodePayments::CalculateScore(uint256 blockHash, CTxIn& vin) { uint256 n1 = blockHash; uint256 n2 = Hash(BEGIN(n1), END(n1)); uint256 n3 = Hash(BEGIN(vin.prevout.hash), END(vin.prevout.hash)); uint256 n4 = n3 > n2 ? (n3 - n2) : (n2 - n3); //printf(" -- CMasternodePayments CalculateScore() n2 = %d \n", n2.Get64()); //printf(" -- CMasternodePayments CalculateScore() n3 = %d \n", n3.Get64()); //printf(" -- CMasternodePayments CalculateScore() n4 = %d \n", n4.Get64()); return n4.Get64(); } bool CMasternodePayments::GetBlockPayee(int nBlockHeight, CScript& payee) { BOOST_FOREACH(CMasternodePaymentWinner& winner, vWinning){ if(winner.nBlockHeight == nBlockHeight) { payee = winner.payee; return true; } } return false; } bool CMasternodePayments::GetWinningMasternode(int nBlockHeight, CTxIn& vinOut) { BOOST_FOREACH(CMasternodePaymentWinner& winner, vWinning){ if(winner.nBlockHeight == nBlockHeight) { vinOut = winner.vin; return true; } } return false; } bool CMasternodePayments::AddWinningMasternode(CMasternodePaymentWinner& winnerIn) { uint256 blockHash = 0; if(!GetBlockHash(blockHash, winnerIn.nBlockHeight-576)) { return false; } winnerIn.score = CalculateScore(blockHash, winnerIn.vin); bool foundBlock = false; BOOST_FOREACH(CMasternodePaymentWinner& winner, vWinning){ if(winner.nBlockHeight == winnerIn.nBlockHeight) { foundBlock = true; if(winner.score < winnerIn.score){ winner.score = winnerIn.score; winner.vin = winnerIn.vin; winner.payee = winnerIn.payee; winner.vchSig = winnerIn.vchSig; return true; } } } // if it's not in the vector if(!foundBlock){ vWinning.push_back(winnerIn); mapSeenMasternodeVotes.insert(make_pair(winnerIn.GetHash(), winnerIn)); return true; } return false; } void CMasternodePayments::CleanPaymentList() { LOCK(cs_masternodes); if(pindexBest == NULL) return; int nLimit = std::max(((int)vecMasternodes.size())*2, 1000); vector<CMasternodePaymentWinner>::iterator it; for(it=vWinning.begin();it<vWinning.end();it++){ if(pindexBest->nHeight - (*it).nBlockHeight > nLimit){ if(fDebug) LogPrintf("CMasternodePayments::CleanPaymentList - Removing old masternode payment - block %d\n", (*it).nBlockHeight); vWinning.erase(it); break; } } } bool CMasternodePayments::ProcessBlock(int nBlockHeight) { LOCK(cs_masternodes); if(!enabled) return false; CMasternodePaymentWinner winner; std::vector<CTxIn> vecLastPayments; int c = 0; BOOST_REVERSE_FOREACH(CMasternodePaymentWinner& winner, vWinning){ vecLastPayments.push_back(winner.vin); //if we have one full payment cycle, break if(++c > (int)vecMasternodes.size()) break; } std::random_shuffle ( vecMasternodes.begin(), vecMasternodes.end() ); BOOST_FOREACH(CMasterNode& mn, vecMasternodes) { bool found = false; BOOST_FOREACH(CTxIn& vin, vecLastPayments) if(mn.vin == vin) found = true; if(found) continue; mn.Check(); if(!mn.IsEnabled()) { continue; } winner.score = 0; winner.nBlockHeight = nBlockHeight; winner.vin = mn.vin; winner.payee =GetScriptForDestination(mn.pubkey.GetID()); break; } //if we can't find someone to get paid, pick randomly if(winner.nBlockHeight == 0 && vecMasternodes.size() > 0) { winner.score = 0; winner.nBlockHeight = nBlockHeight; winner.vin = vecMasternodes[0].vin; winner.payee =GetScriptForDestination(vecMasternodes[0].pubkey.GetID()); } if(Sign(winner)){ if(AddWinningMasternode(winner)){ Relay(winner); return true; } } return false; } void CMasternodePayments::Relay(CMasternodePaymentWinner& winner) { CInv inv(MSG_MASTERNODE_WINNER, winner.GetHash()); vector<CInv> vInv; vInv.push_back(inv); LOCK(cs_vNodes); BOOST_FOREACH(CNode* pnode, vNodes){ pnode->PushMessage("inv", vInv); } } void CMasternodePayments::Sync(CNode* node) { int a = 0; BOOST_FOREACH(CMasternodePaymentWinner& winner, vWinning) if(winner.nBlockHeight >= pindexBest->nHeight-10 && winner.nBlockHeight <= pindexBest->nHeight + 20) node->PushMessage("mnw", winner, a); } bool CMasternodePayments::SetPrivKey(std::string strPrivKey) { CMasternodePaymentWinner winner; // Test signing successful, proceed strMasterPrivKey = strPrivKey; Sign(winner); if(CheckSignature(winner)){ LogPrintf("CMasternodePayments::SetPrivKey - Successfully initialized as masternode payments master\n"); enabled = true; return true; } else { return false; } }
nolith/breakcoin
src/masternode.cpp
C++
mit
27,883
/* * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * */ package org.apach3.http.client.methods; import java.io.IOException; import org.apach3.http.client.HttpClient; import org.apach3.http.conn.ClientConnectionManager; import org.apach3.http.conn.ClientConnectionRequest; import org.apach3.http.conn.ConnectionReleaseTrigger; import org.apach3.http.conn.ManagedClientConnection; /** * Interface representing an HTTP request that can be aborted by shutting * down the underlying HTTP connection. * * * <!-- empty lines to avoid svn diff problems --> * @since 4.0 */ public interface AbortableHttpRequest { /** * Sets the {@link ClientConnectionRequest} callback that can be * used to abort a long-lived request for a connection. * If the request is already aborted, throws an {@link IOException}. * * @see ClientConnectionManager */ void setConnectionRequest(ClientConnectionRequest connRequest) throws IOException; /** * Sets the {@link ConnectionReleaseTrigger} callback that can * be used to abort an active connection. * Typically, this will be the {@link ManagedClientConnection} itself. * If the request is already aborted, throws an {@link IOException}. */ void setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger) throws IOException; /** * Aborts this http request. Any active execution of this method should * return immediately. If the request has not started, it will abort after * the next execution. Aborting this request will cause all subsequent * executions with this request to fail. * * @see HttpClient#execute(HttpUriRequest) * @see HttpClient#execute(org.apach3.http.HttpHost, * org.apach3.http.HttpRequest) * @see HttpClient#execute(HttpUriRequest, * org.apach3.http.protocol.HttpContext) * @see HttpClient#execute(org.apach3.http.HttpHost, * org.apach3.http.HttpRequest, org.apach3.http.protocol.HttpContext) */ void abort(); }
0x90sled/droidtowers
main/source/org/apach3/http/client/methods/AbortableHttpRequest.java
Java
mit
3,240
import { privatize as P } from 'container'; import { ENV, environment } from 'ember-environment'; import Component from './component'; import Checkbox from './components/checkbox'; import LinkToComponent from './components/link-to'; import TextArea from './components/text_area'; import TextField from './components/text_field'; import { clientBuilder, DOMChanges, DOMTreeConstruction, NodeDOMTreeConstruction, rehydrationBuilder, serializeBuilder, } from './dom'; import Environment from './environment'; import loc from './helpers/loc'; import { InertRenderer, InteractiveRenderer } from './renderer'; import TemplateCompiler from './template-compiler'; import ComponentTemplate from './templates/component'; import OutletTemplate from './templates/outlet'; import RootTemplate from './templates/root'; import OutletView from './views/outlet'; interface Registry { injection(name: string, name2: string, name3: string): void; register(name: string, value: any): void; optionsForType(type: string, options: any): void; } export function setupApplicationRegistry(registry: Registry) { registry.injection( 'service:-glimmer-environment', 'appendOperations', 'service:-dom-tree-construction' ); registry.injection('renderer', 'env', 'service:-glimmer-environment'); // because we are using injections we can't use instantiate false // we need to use bind() to copy the function so factory for // association won't leak registry.register('service:-dom-builder', { create({ bootOptions }: { bootOptions: { _renderMode: string } }) { let { _renderMode } = bootOptions; switch (_renderMode) { case 'serialize': return serializeBuilder.bind(null); case 'rehydrate': return rehydrationBuilder.bind(null); default: return clientBuilder.bind(null); } }, }); registry.injection('service:-dom-builder', 'bootOptions', '-environment:main'); registry.injection('renderer', 'builder', 'service:-dom-builder'); registry.register(P`template:-root`, RootTemplate); registry.injection('renderer', 'rootTemplate', P`template:-root`); registry.register('renderer:-dom', InteractiveRenderer); registry.register('renderer:-inert', InertRenderer); if (environment.hasDOM) { registry.injection('service:-glimmer-environment', 'updateOperations', 'service:-dom-changes'); } registry.register('service:-dom-changes', { create({ document }: { document: HTMLDocument }) { return new DOMChanges(document); }, }); registry.register('service:-dom-tree-construction', { create({ document }: { document: HTMLDocument }) { let Implementation = environment.hasDOM ? DOMTreeConstruction : NodeDOMTreeConstruction; return new Implementation(document); }, }); } export function setupEngineRegistry(registry: Registry) { registry.register('view:-outlet', OutletView); registry.register('template:-outlet', OutletTemplate); registry.injection('view:-outlet', 'template', 'template:-outlet'); registry.injection('service:-dom-changes', 'document', 'service:-document'); registry.injection('service:-dom-tree-construction', 'document', 'service:-document'); registry.register(P`template:components/-default`, ComponentTemplate); registry.register('service:-glimmer-environment', Environment); registry.register(P`template-compiler:main`, TemplateCompiler); registry.injection('template', 'compiler', P`template-compiler:main`); registry.optionsForType('helper', { instantiate: false }); registry.register('helper:loc', loc); registry.register('component:-text-field', TextField); registry.register('component:-text-area', TextArea); registry.register('component:-checkbox', Checkbox); registry.register('component:link-to', LinkToComponent); if (!ENV._TEMPLATE_ONLY_GLIMMER_COMPONENTS) { registry.register(P`component:-default`, Component); } }
Serabe/ember.js
packages/ember-glimmer/lib/setup-registry.ts
TypeScript
mit
3,947
#if NET452 namespace Microsoft.ApplicationInsights.Tests { using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Net; using System.Threading; using Microsoft.ApplicationInsights.Channel; using Microsoft.ApplicationInsights.DataContracts; using Microsoft.ApplicationInsights.DependencyCollector; using Microsoft.ApplicationInsights.DependencyCollector.Implementation; using Microsoft.ApplicationInsights.DependencyCollector.Implementation.Operation; using Microsoft.ApplicationInsights.Extensibility; using Microsoft.ApplicationInsights.Extensibility.Implementation; using Microsoft.ApplicationInsights.TestFramework; using Microsoft.ApplicationInsights.Web.TestFramework; using Microsoft.VisualStudio.TestTools.UnitTesting; [TestClass] public sealed class FrameworkHttpProcessingTest : IDisposable { #region Fields private const string RandomAppIdEndpoint = "http://app.id.endpoint"; // appIdEndpoint - this really won't be used for tests because of the app id provider override. private const int TimeAccuracyMilliseconds = 50; private const string TestInstrumentationKey = nameof(TestInstrumentationKey); private const string TestApplicationId = nameof(TestApplicationId); private Uri testUrl = new Uri("http://www.microsoft.com/"); private Uri testUrlNonStandardPort = new Uri("http://www.microsoft.com:911/"); private int sleepTimeMsecBetweenBeginAndEnd = 100; private TelemetryConfiguration configuration; private List<ITelemetry> sendItems = new List<ITelemetry>(); private FrameworkHttpProcessing httpProcessingFramework; private CacheBasedOperationHolder cache = new CacheBasedOperationHolder("testCache", 100 * 1000); #endregion //Fields #region TestInitialize [TestInitialize] public void TestInitialize() { Activity.DefaultIdFormat = ActivityIdFormat.W3C; Activity.ForceDefaultIdFormat = true; this.configuration = new TelemetryConfiguration() { TelemetryChannel = new StubTelemetryChannel { OnSend = item => this.sendItems.Add(item) }, InstrumentationKey = TestInstrumentationKey, ApplicationIdProvider = new MockApplicationIdProvider(TestInstrumentationKey, TestApplicationId) }; this.httpProcessingFramework = new FrameworkHttpProcessing(this.configuration, this.cache, /*setCorrelationHeaders*/ true, new List<string>(), false); DependencyTableStore.IsDesktopHttpDiagnosticSourceActivated = false; } [TestCleanup] public void Cleanup() { Activity.Current = null; DependencyTableStore.IsDesktopHttpDiagnosticSourceActivated = false; } #endregion //TestInitiliaze #region BeginEndCallBacks [TestMethod] public void OnBeginDoesNotThrowForIncorrectUrl() { this.httpProcessingFramework.OnBeginHttpCallback(100, "BadUrl"); // Should not throw } /// <summary> /// Validates HttpProcessingFramework returns correct operation for OnBeginHttpCallback. /// </summary> [TestMethod] [Description("Validates HttpProcessingFramework returns correct operation for OnBeginHttpCallback.")] public void RddTestHttpProcessingFrameworkOnBeginHttpCallback() { var id = 100; this.httpProcessingFramework.OnBeginHttpCallback(id, this.testUrl.OriginalString); Assert.AreEqual(0, this.sendItems.Count, "No telemetry item should be processed without calling End"); } /// <summary> /// Validates HttpProcessingFramework sends correct telemetry on calling OnEndHttpCallback for success. /// </summary> [TestMethod] [Description("Validates HttpProcessingFramework sends correct telemetry on calling OnEndHttpCallback for success.")] public void RddTestHttpProcessingFrameworkOnEndHttpCallbackSuccess() { var id = 100; Stopwatch stopwatch = Stopwatch.StartNew(); this.httpProcessingFramework.OnBeginHttpCallback(id, this.testUrl.OriginalString); Thread.Sleep(this.sleepTimeMsecBetweenBeginAndEnd); Assert.AreEqual(0, this.sendItems.Count, "No telemetry item should be processed without calling End"); this.httpProcessingFramework.OnEndHttpCallback(id, 200); stopwatch.Stop(); Assert.AreEqual(1, this.sendItems.Count, "Only one telemetry item should be sent"); ValidateTelemetryPacketForOnBeginHttpCallback( this.sendItems[0] as DependencyTelemetry, this.testUrl, RemoteDependencyConstants.HTTP, true, stopwatch.Elapsed.TotalMilliseconds, "200", null); } #if !NET452 [TestMethod] public void RddTestHttpProcessingFrameworkOnEndHttpCallbackSuccessParentActivity() { var parentActivity = new Activity("parent").Start(); parentActivity.AddBaggage("k", "v"); parentActivity.TraceStateString = "state=some"; var id = 100; Stopwatch stopwatch = Stopwatch.StartNew(); this.httpProcessingFramework.OnBeginHttpCallback(id, this.testUrl.OriginalString); Thread.Sleep(this.sleepTimeMsecBetweenBeginAndEnd); Assert.AreEqual(0, this.sendItems.Count, "No telemetry item should be processed without calling End"); this.httpProcessingFramework.OnEndHttpCallback(id, 200); stopwatch.Stop(); Assert.AreEqual(1, this.sendItems.Count, "Only one telemetry item should be sent"); ValidateTelemetryPacketForOnBeginHttpCallback( this.sendItems[0] as DependencyTelemetry, this.testUrl, RemoteDependencyConstants.HTTP, true, stopwatch.Elapsed.TotalMilliseconds, "200", parentActivity); } #endif [TestMethod] public void RddTestHttpProcessingFrameworkOnEndHttpCallbackSuccessParentActivityW3COff() { Activity.DefaultIdFormat = ActivityIdFormat.Hierarchical; Activity.ForceDefaultIdFormat = true; var parentActivity = new Activity("parent").Start(); parentActivity.AddBaggage("k", "v"); parentActivity.TraceStateString = "state=some"; var id = 100; Stopwatch stopwatch = Stopwatch.StartNew(); this.httpProcessingFramework.OnBeginHttpCallback(id, this.testUrl.OriginalString); Thread.Sleep(this.sleepTimeMsecBetweenBeginAndEnd); Assert.AreEqual(0, this.sendItems.Count, "No telemetry item should be processed without calling End"); this.httpProcessingFramework.OnEndHttpCallback(id, 200); stopwatch.Stop(); Assert.AreEqual(1, this.sendItems.Count, "Only one telemetry item should be sent"); ValidateTelemetryPacketForOnBeginHttpCallback( this.sendItems[0] as DependencyTelemetry, this.testUrl, RemoteDependencyConstants.HTTP, true, stopwatch.Elapsed.TotalMilliseconds, "200", parentActivity); } [TestMethod] [Description("Validates HttpProcessingFramework sends correct telemetry on calling OnEndHttpCallback for success when W3C is off.")] public void RddTestHttpProcessingFrameworkOnEndHttpCallbackSuccessW3COff() { Activity.DefaultIdFormat = ActivityIdFormat.Hierarchical; Activity.ForceDefaultIdFormat = true; var id = 100; Stopwatch stopwatch = Stopwatch.StartNew(); this.httpProcessingFramework.OnBeginHttpCallback(id, this.testUrl.OriginalString); Thread.Sleep(this.sleepTimeMsecBetweenBeginAndEnd); Assert.AreEqual(0, this.sendItems.Count, "No telemetry item should be processed without calling End"); this.httpProcessingFramework.OnEndHttpCallback(id, 200); stopwatch.Stop(); Assert.AreEqual(1, this.sendItems.Count, "Only one telemetry item should be sent"); ValidateTelemetryPacketForOnBeginHttpCallback( this.sendItems[0] as DependencyTelemetry, this.testUrl, RemoteDependencyConstants.HTTP, true, stopwatch.Elapsed.TotalMilliseconds, "200", null); } /// <summary> /// Validates HttpProcessingFramework sends correct telemetry on calling OnEndHttpCallback for failure. /// </summary> [TestMethod] [Description("Validates HttpProcessingFramework sends correct telemetry on calling OnEndHttpCallback for failure.")] public void RddTestHttpProcessingFrameworkOnEndHttpCallbackFailure() { var id = 100; Stopwatch stopwatch = Stopwatch.StartNew(); this.httpProcessingFramework.OnBeginHttpCallback(id, this.testUrl.OriginalString); Thread.Sleep(this.sleepTimeMsecBetweenBeginAndEnd); Assert.AreEqual(0, this.sendItems.Count, "No telemetry item should be processed without calling End"); this.httpProcessingFramework.OnEndHttpCallback(id, 500); stopwatch.Stop(); Assert.AreEqual(1, this.sendItems.Count, "Only one telemetry item should be sent"); ValidateTelemetryPacketForOnBeginHttpCallback( this.sendItems[0] as DependencyTelemetry, this.testUrl, RemoteDependencyConstants.HTTP, false, stopwatch.Elapsed.TotalMilliseconds, "500", null); } [TestMethod] public void IfNoStatusCodeItemIsNotTracked() { int? statusCode = null; this.httpProcessingFramework.OnBeginHttpCallback(100, this.testUrl.OriginalString); Thread.Sleep(this.sleepTimeMsecBetweenBeginAndEnd); this.httpProcessingFramework.OnEndHttpCallback(100, statusCode); Assert.AreEqual(0, this.sendItems.Count); } [TestMethod] public void IfNegativeStatusCodeSuccessIsFalse() { int? statusCode = -1; this.httpProcessingFramework.OnBeginHttpCallback(100, this.testUrl.OriginalString); Thread.Sleep(this.sleepTimeMsecBetweenBeginAndEnd); this.httpProcessingFramework.OnEndHttpCallback(100, statusCode); var dependency = this.sendItems[0] as DependencyTelemetry; Assert.IsFalse(dependency.Success.Value); Assert.AreEqual(string.Empty, dependency.ResultCode); } [TestMethod] public void ForCorrectStatusCodeSuccessIsSetOnBaseOfIt() { int? statusCode = 200; this.httpProcessingFramework.OnBeginHttpCallback(100, this.testUrl.OriginalString); Thread.Sleep(this.sleepTimeMsecBetweenBeginAndEnd); this.httpProcessingFramework.OnEndHttpCallback(100, statusCode); var dependency = this.sendItems[0] as DependencyTelemetry; Assert.IsTrue(dependency.Success.Value); Assert.AreEqual("200", dependency.ResultCode); } /// <summary> /// Validates HttpProcessingFramework does not sent telemetry on calling OnEndHttpCallback with an id which do not exist. /// </summary> [TestMethod] [Description("Validates HttpProcessingFramework does not sent telemetry on calling OnEndHttpCallback with an id which do not exist.")] public void RddTestHttpProcessingFrameworkOnEndHttpCallbackInvalidId() { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(this.testUrl); var id1 = ClientServerDependencyTracker.GetIdForRequestObject(request); var id2 = 200; this.httpProcessingFramework.OnBeginHttpCallback(id1, this.testUrl.ToString()); Thread.Sleep(this.sleepTimeMsecBetweenBeginAndEnd); Assert.AreEqual(0, this.sendItems.Count, "No telemetry item should be processed without calling End"); this.httpProcessingFramework.OnEndHttpCallback(id2, null); Assert.AreEqual(0, this.sendItems.Count, "No telemetry item should be processed as invalid id is passed"); } [TestMethod] public void OnEndHttpCallbackSetsSuccessToFalseForNegativeStatusCode() { // -1 StatusCode is returned in case of no response int statusCode = -1; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(this.testUrl); var id = ClientServerDependencyTracker.GetIdForRequestObject(request); this.httpProcessingFramework.OnBeginHttpCallback(id, this.testUrl.ToString()); this.httpProcessingFramework.OnEndHttpCallback(id, statusCode); Assert.AreEqual(1, this.sendItems.Count, "Only one telemetry item should be sent"); var actual = this.sendItems[0] as DependencyTelemetry; Assert.IsFalse(actual.Success.Value); } [TestMethod] public void OnEndHttpCallbackSetsSuccessToTrueForLessThan400() { int statusCode = 399; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(this.testUrl); var id = ClientServerDependencyTracker.GetIdForRequestObject(request); this.httpProcessingFramework.OnBeginHttpCallback(id, this.testUrl.ToString()); this.httpProcessingFramework.OnEndHttpCallback(id, statusCode); Assert.AreEqual(1, this.sendItems.Count, "Only one telemetry item should be sent"); var actual = this.sendItems[0] as DependencyTelemetry; Assert.IsTrue(actual.Success.Value); } [TestMethod] public void FrameworkHttpProcessingIsDisabledWhenHttpDesktopDiagSourceIsEnabled() { DependencyTableStore.IsDesktopHttpDiagnosticSourceActivated = true; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(this.testUrl); var id = ClientServerDependencyTracker.GetIdForRequestObject(request); this.httpProcessingFramework.OnBeginHttpCallback(id, this.testUrl.ToString()); this.httpProcessingFramework.OnEndHttpCallback(id, 200); Assert.AreEqual(0, this.sendItems.Count, "No telemetry item should be sent"); } [TestMethod] public void OnEndHttpCallbackSetsSuccessToFalseForMoreThan400() { int statusCode = 400; this.httpProcessingFramework.OnBeginHttpCallback(100, this.testUrl.OriginalString); this.httpProcessingFramework.OnEndHttpCallback(100, statusCode); Assert.AreEqual(1, this.sendItems.Count, "Only one telemetry item should be sent"); var actual = this.sendItems[0] as DependencyTelemetry; Assert.IsFalse(actual.Success.Value); } [TestMethod] public void OnEndHttpCallbackWithoutStatusCodeRemovesTelemetryFromCache() { this.httpProcessingFramework.OnBeginHttpCallback(100, this.testUrl.OriginalString); Assert.IsNotNull(this.cache.Get(100)); this.httpProcessingFramework.OnEndHttpCallback(100, null); Assert.AreEqual(0, this.sendItems.Count, "Telemetry item should not be sent"); Assert.IsNull(DependencyTableStore.Instance.WebRequestCacheHolder.Get(100)); } [TestMethod] public void OnEndHttpCallbackWithoutStatusCodeDoesNotRemoveTelemetryFromCacheWhenDiagnosticSourceIsActivated() { this.httpProcessingFramework.OnBeginHttpCallback(100, this.testUrl.OriginalString); Assert.IsNotNull(this.cache.Get(100)); DependencyTableStore.IsDesktopHttpDiagnosticSourceActivated = true; this.httpProcessingFramework.OnEndHttpCallback(100, null); Assert.AreEqual(0, this.sendItems.Count, "Telemetry item should not be sent"); Assert.IsNotNull(this.cache.Get(100)); } [TestMethod] public void HttpProcessorSetsTargetForNonStandardPort() { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(this.testUrlNonStandardPort); var id = ClientServerDependencyTracker.GetIdForRequestObject(request); this.httpProcessingFramework.OnBeginHttpCallback(id, this.testUrlNonStandardPort.ToString()); this.httpProcessingFramework.OnEndHttpCallback(id, 500); Assert.AreEqual(1, this.sendItems.Count, "Exactly one telemetry item should be sent"); DependencyTelemetry receivedItem = (DependencyTelemetry)this.sendItems[0]; string expectedTarget = this.testUrlNonStandardPort.Host + ":" + this.testUrlNonStandardPort.Port; Assert.AreEqual(expectedTarget, receivedItem.Target, "HttpProcessingFramework returned incorrect target for non standard port."); } #endregion //BeginEndCallBacks #region AsyncScenarios /// <summary> /// Validates HttpProcessingFramework calculates startTime from the start of very first OnRequestSend if any /// 1.create request /// 2.request.OnRequestSend /// 3.request.OnRequestSend /// 4.request.OnEndHttpCallback /// The expected time is the time between 2 and 4. /// </summary> [TestMethod] [Description("Validates HttpProcessingFramework calculates startTime from the start of very first OnRequestSend if any")] public void RddTestHttpProcessingFrameworkStartTimeFromGetRequestStreamAsync() { Stopwatch stopwatch = Stopwatch.StartNew(); HttpWebRequest request = (HttpWebRequest)WebRequest.Create(this.testUrl); var id1 = ClientServerDependencyTracker.GetIdForRequestObject(request); this.httpProcessingFramework.OnBeginHttpCallback(id1, this.testUrl.ToString()); Thread.Sleep(this.sleepTimeMsecBetweenBeginAndEnd); this.httpProcessingFramework.OnBeginHttpCallback(id1, this.testUrl.ToString()); Thread.Sleep(this.sleepTimeMsecBetweenBeginAndEnd); Assert.AreEqual(0, this.sendItems.Count, "No telemetry item should be processed without calling End"); this.httpProcessingFramework.OnEndHttpCallback(id1, 200); stopwatch.Stop(); Assert.AreEqual(1, this.sendItems.Count, "Exactly one telemetry item should be sent"); ValidateTelemetryPacketForOnBeginHttpCallback( this.sendItems[0] as DependencyTelemetry, this.testUrl, RemoteDependencyConstants.HTTP, true, stopwatch.Elapsed.TotalMilliseconds, "200", null); } #endregion AsyncScenarios #region Disposable public void Dispose() { this.configuration.Dispose(); GC.SuppressFinalize(this); } #endregion Disposable #region Helpers private static void ValidateTelemetryPacketForOnBeginHttpCallback( DependencyTelemetry remoteDependencyTelemetryActual, Uri url, string kind, bool? success, double valueMin, string statusCode, Activity parentActivity) { Assert.AreEqual(url.AbsolutePath, remoteDependencyTelemetryActual.Name, true, "Resource name in the sent telemetry is wrong"); string expectedVersion = SdkVersionHelper.GetExpectedSdkVersion(typeof(DependencyTrackingTelemetryModule), prefix: "rddf:"); ValidateTelemetryPacket(remoteDependencyTelemetryActual, url, kind, success, valueMin, statusCode, expectedVersion, parentActivity); } private static void ValidateTelemetryPacket( DependencyTelemetry remoteDependencyTelemetryActual, Uri url, string kind, bool? success, double valueMin, string statusCode, string expectedVersion, Activity parentActivity) { Assert.AreEqual(url.Host, remoteDependencyTelemetryActual.Target, true, "Resource target in the sent telemetry is wrong"); Assert.AreEqual(url.OriginalString, remoteDependencyTelemetryActual.Data, true, "Resource data in the sent telemetry is wrong"); Assert.AreEqual(kind.ToString(), remoteDependencyTelemetryActual.Type, "DependencyKind in the sent telemetry is wrong"); Assert.AreEqual(success, remoteDependencyTelemetryActual.Success, "Success in the sent telemetry is wrong"); Assert.AreEqual(statusCode, remoteDependencyTelemetryActual.ResultCode, "ResultCode in the sent telemetry is wrong"); var valueMinRelaxed = valueMin - TimeAccuracyMilliseconds; Assert.IsTrue( remoteDependencyTelemetryActual.Duration >= TimeSpan.FromMilliseconds(valueMinRelaxed), string.Format(CultureInfo.InvariantCulture, "Value (dependency duration = {0}) in the sent telemetry should be equal or more than the time duration between start and end", remoteDependencyTelemetryActual.Duration)); var valueMax = valueMin + TimeAccuracyMilliseconds; Assert.IsTrue( remoteDependencyTelemetryActual.Duration <= TimeSpan.FromMilliseconds(valueMax), string.Format(CultureInfo.InvariantCulture, "Value (dependency duration = {0}) in the sent telemetry should not be signigficantly bigger then the time duration between start and end", remoteDependencyTelemetryActual.Duration)); Assert.AreEqual(expectedVersion, remoteDependencyTelemetryActual.Context.GetInternalContext().SdkVersion); if (parentActivity != null) { if (parentActivity.IdFormat == ActivityIdFormat.W3C) { Assert.AreEqual(parentActivity.TraceId.ToHexString(), remoteDependencyTelemetryActual.Context.Operation.Id); Assert.AreEqual(parentActivity.SpanId.ToHexString(), remoteDependencyTelemetryActual.Context.Operation.ParentId); if (parentActivity.TraceStateString != null) { Assert.IsTrue(remoteDependencyTelemetryActual.Properties.ContainsKey("tracestate")); Assert.AreEqual(parentActivity.TraceStateString, remoteDependencyTelemetryActual.Properties["tracestate"]); } else { Assert.IsFalse(remoteDependencyTelemetryActual.Properties.ContainsKey("tracestate")); } } else { Assert.AreEqual(parentActivity.RootId, remoteDependencyTelemetryActual.Context.Operation.Id); Assert.AreEqual(parentActivity.Id, remoteDependencyTelemetryActual.Context.Operation.ParentId); } } else { Assert.IsNotNull(remoteDependencyTelemetryActual.Context.Operation.Id); Assert.IsNull(remoteDependencyTelemetryActual.Context.Operation.ParentId); } } #endregion Helpers } } #endif
pharring/ApplicationInsights-dotnet
WEB/Src/DependencyCollector/DependencyCollector.Tests/Implementation/FrameworkHttpProcessingTest.cs
C#
mit
23,703
// // ABBall.m // AmazeBalls // // Created by Daniel Flax on 6/15/13. // Copyright (c) 2013 Piece of Cake Adventures, LLC. All rights reserved. // // // The MIT License (MIT) // // Copyright (c) 2013 Daniel Flax // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // #import "ABBall.h" #import "ABBallScene.h" @implementation ABBall // Create and return a new ball at the specified location of the type passed in + (instancetype)newBallNodeAtLocation:(CGPoint)location ofType:(int)ballType withBouncyness:(CGFloat)bouncyness { // Deal with the coordinate system transformations CGFloat offset; if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { offset = 768.0; } else { offset = 320.0; } // Based on the requested ball type, select the right string to load the image NSString * ballNameString; if (ballType == 2007) { ballType = (arc4random() % 7) + 2000; } switch (ballType) { case 2000: ballNameString = @"amazeball"; break; case 2001: ballNameString = @"baseball"; break; case 2002: ballNameString = @"basketball"; break; case 2003: ballNameString = @"football"; break; case 2004: ballNameString = @"pumpkin"; break; case 2005: ballNameString = @"soccer1"; break; case 2006: ballNameString = @"soccer2"; break; default: break; } // Calculate the correct coordinates to put the new ball - in the Scene's coordinate system CGPoint skLocation = CGPointMake(location.x, offset - (location.y - 12.5)); // Create the actual ball node object and set the appropriate settings for the node ABBall * newBall = [[ABBall alloc] initWithImageNamed:ballNameString]; newBall.position = skLocation; newBall.name = @"ballNode"; newBall.userInteractionEnabled = YES; // Add the properties for the ball's physics body - with the bouncyness that's been passed in newBall.physicsBody = [SKPhysicsBody bodyWithCircleOfRadius:newBall.frame.size.width / 2.0]; newBall.physicsBody.dynamic = YES; newBall.physicsBody.affectedByGravity = YES; newBall.physicsBody.allowsRotation = YES; newBall.physicsBody.restitution = bouncyness; // Set the category bit masks for collision, etc. newBall.physicsBody.categoryBitMask = ballCategory; newBall.physicsBody.collisionBitMask = ballCategory | wallCategory | edgeCategory; newBall.physicsBody.contactTestBitMask = ballCategory | wallCategory | edgeCategory; return newBall; } // When touches begin, figure out where in the parent view, the ball is, and move to the new location - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch * touch = [touches anyObject]; SKScene * parentNode = (SKScene *)self.parent; CGPoint viewLocation = [touch locationInView:parentNode.view]; CGPoint translatedPoint = CGPointMake(viewLocation.x, 320.0 - viewLocation.y); self.position = translatedPoint; } // As touches continue, move the ball to the new location - with an offset for the positon // of the finger relative to the position of the ball's center - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { UITouch * touch = [touches anyObject]; SKScene * parentNode = (SKScene *)self.parent; CGPoint viewLocation = [touch locationInView:parentNode.view]; CGSize mySize = self.scene.size; CGPoint translatedPoint = CGPointMake(viewLocation.x, mySize.height - viewLocation.y); self.position = translatedPoint; } // When touches end, impart an impulse vector in the direction of the last touch - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { // trial and error... selected 14.0 to be the momentum. Have fun with it. CGFloat momentum = 14.0; UITouch * lastTouch = [touches anyObject]; SKScene * parentScene = (SKScene *)self.parent; CGPoint lastTouchLocation = [lastTouch locationInView:parentScene.view]; CGPoint penultimateLocation = [lastTouch previousLocationInView:parentScene.view]; CGVector movementVector = CGVectorMake((momentum * (lastTouchLocation.x - penultimateLocation.x)), (momentum * -(lastTouchLocation.y - penultimateLocation.y))); [self.physicsBody applyImpulse:movementVector]; } @end
dflax/amazeballs
Legacy Versions/Objective C Version/AmazeBalls/ABBall.m
Matlab
mit
5,183
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="description" content="Javadoc API documentation for Fresco." /> <link rel="shortcut icon" type="image/x-icon" href="../../../../favicon.ico" /> <title> com.facebook.animated.webp - Fresco API | Fresco </title> <link href="../../../../../assets/doclava-developer-docs.css" rel="stylesheet" type="text/css" /> <link href="../../../../../assets/customizations.css" rel="stylesheet" type="text/css" /> <script src="../../../../../assets/search_autocomplete.js" type="text/javascript"></script> <script src="../../../../../assets/jquery-resizable.min.js" type="text/javascript"></script> <script src="../../../../../assets/doclava-developer-docs.js" type="text/javascript"></script> <script src="../../../../../assets/prettify.js" type="text/javascript"></script> <script type="text/javascript"> setToRoot("../../../../", "../../../../../assets/"); </script> <script src="../../../../../assets/doclava-developer-reference.js" type="text/javascript"></script> <script src="../../../../../assets/navtree_data.js" type="text/javascript"></script> <script src="../../../../../assets/customizations.js" type="text/javascript"></script> <noscript> <style type="text/css"> html,body{overflow:auto;} #body-content{position:relative; top:0;} #doc-content{overflow:visible;border-left:3px solid #666;} #side-nav{padding:0;} #side-nav .toggle-list ul {display:block;} #resize-packages-nav{border-bottom:3px solid #666;} </style> </noscript> </head> <body class=""> <div id="header"> <div id="headerLeft"> <span id="masthead-title"><a href="../../../../packages.html">Fresco</a></span> </div> <div id="headerRight"> <div id="search" > <div id="searchForm"> <form accept-charset="utf-8" class="gsc-search-box" onsubmit="return submit_search()"> <table class="gsc-search-box" cellpadding="0" cellspacing="0"><tbody> <tr> <td class="gsc-input"> <input id="search_autocomplete" class="gsc-input" type="text" size="33" autocomplete="off" title="search developer docs" name="q" value="search developer docs" onFocus="search_focus_changed(this, true)" onBlur="search_focus_changed(this, false)" onkeydown="return search_changed(event, true, '../../../../')" onkeyup="return search_changed(event, false, '../../../../')" /> <div id="search_filtered_div" class="no-display"> <table id="search_filtered" cellspacing=0> </table> </div> </td> <!-- <td class="gsc-search-button"> <input type="submit" value="Search" title="search" id="search-button" class="gsc-search-button" /> </td> <td class="gsc-clear-button"> <div title="clear results" class="gsc-clear-button">&nbsp;</div> </td> --> </tr></tbody> </table> </form> </div><!-- searchForm --> </div><!-- search --> </div> </div><!-- header --> <div class="g-section g-tpl-240" id="body-content"> <div class="g-unit g-first side-nav-resizable" id="side-nav"> <div id="swapper"> <div id="nav-panels"> <div id="resize-packages-nav"> <div id="packages-nav"> <div id="index-links"> <a href="../../../../packages.html" >Packages</a> | <a href="../../../../classes.html" >Classes</a> </div> <ul> <li class="api apilevel-"> <a href="../../../../com/facebook/animated/gif/package-summary.html">com.facebook.animated.gif</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/animated/giflite/package-summary.html">com.facebook.animated.giflite</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/animated/giflite/decoder/package-summary.html">com.facebook.animated.giflite.decoder</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/animated/giflite/draw/package-summary.html">com.facebook.animated.giflite.draw</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/animated/giflite/drawable/package-summary.html">com.facebook.animated.giflite.drawable</a></li> <li class="selected api apilevel-"> <a href="../../../../com/facebook/animated/webp/package-summary.html">com.facebook.animated.webp</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/animated/webpdrawable/package-summary.html">com.facebook.animated.webpdrawable</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/binaryresource/package-summary.html">com.facebook.binaryresource</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/cache/common/package-summary.html">com.facebook.cache.common</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/cache/disk/package-summary.html">com.facebook.cache.disk</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/callercontext/package-summary.html">com.facebook.callercontext</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/activitylistener/package-summary.html">com.facebook.common.activitylistener</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/disk/package-summary.html">com.facebook.common.disk</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/executors/package-summary.html">com.facebook.common.executors</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/file/package-summary.html">com.facebook.common.file</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/internal/package-summary.html">com.facebook.common.internal</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/lifecycle/package-summary.html">com.facebook.common.lifecycle</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/logging/package-summary.html">com.facebook.common.logging</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/media/package-summary.html">com.facebook.common.media</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/memory/package-summary.html">com.facebook.common.memory</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/references/package-summary.html">com.facebook.common.references</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/statfs/package-summary.html">com.facebook.common.statfs</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/streams/package-summary.html">com.facebook.common.streams</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/time/package-summary.html">com.facebook.common.time</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/util/package-summary.html">com.facebook.common.util</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/common/webp/package-summary.html">com.facebook.common.webp</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/datasource/package-summary.html">com.facebook.datasource</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawable/base/package-summary.html">com.facebook.drawable.base</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/backends/pipeline/package-summary.html">com.facebook.drawee.backends.pipeline</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/backends/pipeline/debug/package-summary.html">com.facebook.drawee.backends.pipeline.debug</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/backends/pipeline/info/package-summary.html">com.facebook.drawee.backends.pipeline.info</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/backends/pipeline/info/internal/package-summary.html">com.facebook.drawee.backends.pipeline.info.internal</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/components/package-summary.html">com.facebook.drawee.components</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/controller/package-summary.html">com.facebook.drawee.controller</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/debug/package-summary.html">com.facebook.drawee.debug</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/debug/listener/package-summary.html">com.facebook.drawee.debug.listener</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/drawable/package-summary.html">com.facebook.drawee.drawable</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/generic/package-summary.html">com.facebook.drawee.generic</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/gestures/package-summary.html">com.facebook.drawee.gestures</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/interfaces/package-summary.html">com.facebook.drawee.interfaces</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/span/package-summary.html">com.facebook.drawee.span</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/drawee/view/package-summary.html">com.facebook.drawee.view</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/fresco/animation/backend/package-summary.html">com.facebook.fresco.animation.backend</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/fresco/animation/bitmap/package-summary.html">com.facebook.fresco.animation.bitmap</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/fresco/animation/bitmap/cache/package-summary.html">com.facebook.fresco.animation.bitmap.cache</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/fresco/animation/bitmap/preparation/package-summary.html">com.facebook.fresco.animation.bitmap.preparation</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/fresco/animation/bitmap/wrapper/package-summary.html">com.facebook.fresco.animation.bitmap.wrapper</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/fresco/animation/drawable/package-summary.html">com.facebook.fresco.animation.drawable</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/fresco/animation/drawable/animator/package-summary.html">com.facebook.fresco.animation.drawable.animator</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/fresco/animation/factory/package-summary.html">com.facebook.fresco.animation.factory</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/fresco/animation/frame/package-summary.html">com.facebook.fresco.animation.frame</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/fresco/middleware/package-summary.html">com.facebook.fresco.middleware</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/fresco/ui/common/package-summary.html">com.facebook.fresco.ui.common</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imageformat/package-summary.html">com.facebook.imageformat</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/animated/base/package-summary.html">com.facebook.imagepipeline.animated.base</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/animated/factory/package-summary.html">com.facebook.imagepipeline.animated.factory</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/animated/impl/package-summary.html">com.facebook.imagepipeline.animated.impl</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/animated/util/package-summary.html">com.facebook.imagepipeline.animated.util</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/backends/okhttp3/package-summary.html">com.facebook.imagepipeline.backends.okhttp3</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/backends/volley/package-summary.html">com.facebook.imagepipeline.backends.volley</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/bitmaps/package-summary.html">com.facebook.imagepipeline.bitmaps</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/cache/package-summary.html">com.facebook.imagepipeline.cache</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/common/package-summary.html">com.facebook.imagepipeline.common</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/core/package-summary.html">com.facebook.imagepipeline.core</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/datasource/package-summary.html">com.facebook.imagepipeline.datasource</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/debug/package-summary.html">com.facebook.imagepipeline.debug</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/decoder/package-summary.html">com.facebook.imagepipeline.decoder</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/drawable/package-summary.html">com.facebook.imagepipeline.drawable</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/filter/package-summary.html">com.facebook.imagepipeline.filter</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/image/package-summary.html">com.facebook.imagepipeline.image</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/instrumentation/package-summary.html">com.facebook.imagepipeline.instrumentation</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/listener/package-summary.html">com.facebook.imagepipeline.listener</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/memory/package-summary.html">com.facebook.imagepipeline.memory</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/multiuri/package-summary.html">com.facebook.imagepipeline.multiuri</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/nativecode/package-summary.html">com.facebook.imagepipeline.nativecode</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/platform/package-summary.html">com.facebook.imagepipeline.platform</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/postprocessors/package-summary.html">com.facebook.imagepipeline.postprocessors</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/producers/package-summary.html">com.facebook.imagepipeline.producers</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/request/package-summary.html">com.facebook.imagepipeline.request</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/systrace/package-summary.html">com.facebook.imagepipeline.systrace</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/transcoder/package-summary.html">com.facebook.imagepipeline.transcoder</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imagepipeline/transformation/package-summary.html">com.facebook.imagepipeline.transformation</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/imageutils/package-summary.html">com.facebook.imageutils</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/webpsupport/package-summary.html">com.facebook.webpsupport</a></li> <li class="api apilevel-"> <a href="../../../../com/facebook/widget/text/span/package-summary.html">com.facebook.widget.text.span</a></li> </ul><br/> </div> <!-- end packages --> </div> <!-- end resize-packages --> <div id="classes-nav"> <ul> <li><h2>Classes</h2> <ul> <li class="api apilevel-"><a href="../../../../com/facebook/animated/webp/WebPFrame.html">WebPFrame</a></li> <li class="api apilevel-"><a href="../../../../com/facebook/animated/webp/WebPImage.html">WebPImage</a></li> </ul> </li> </ul><br/> </div><!-- end classes --> </div><!-- end nav-panels --> <div id="nav-tree" style="display:none"> <div id="index-links"> <a href="../../../../packages.html" >Packages</a> | <a href="../../../../classes.html" >Classes</a> </div> </div><!-- end nav-tree --> </div><!-- end swapper --> </div> <!-- end side-nav --> <script> if (!isMobile) { //$("<a href='#' id='nav-swap' onclick='swapNav();return false;' style='font-size:10px;line-height:9px;margin-left:1em;text-decoration:none;'><span id='tree-link'>Use Tree Navigation</span><span id='panel-link' style='display:none'>Use Panel Navigation</span></a>").appendTo("#side-nav"); chooseDefaultNav(); if ($("#nav-tree").is(':visible')) { init_default_navtree("../../../../"); } else { addLoadEvent(function() { scrollIntoView("packages-nav"); scrollIntoView("classes-nav"); }); } //$("#swapper").css({borderBottom:"2px solid #aaa"}); } else { swapNav(); // tree view should be used on mobile } </script> <div class="g-unit" id="doc-content"> <div id="api-info-block"> <div class="api-level"> </div> </div> <div id="jd-header"> package <h1>com.facebook.animated.webp</h1> </div><!-- end header --> <div id="naMessage"></div> <div id="jd-content" class="api apilevel-"> <h2>Classes</h2> <div class="jd-sumtable"> <table class="jd-sumtable-expando"> <tr class="alt-color api apilevel-" > <td class="jd-linkcol"><a href="../../../../com/facebook/animated/webp/WebPFrame.html">WebPFrame</a></td> <td class="jd-descrcol" width="100%">A single frame of a <code><a href="../../../../com/facebook/animated/webp/WebPImage.html">WebPImage</a></code>.&nbsp;</td> </tr> <tr class=" api apilevel-" > <td class="jd-linkcol"><a href="../../../../com/facebook/animated/webp/WebPImage.html">WebPImage</a></td> <td class="jd-descrcol" width="100%">A representation of a WebP image.&nbsp;</td> </tr> </table> </div> <div id="footer"> +Generated by <a href="http://code.google.com/p/doclava/">Doclava</a>. +</div> <!-- end footer - @generated --> </div><!-- end jd-content --> </div><!-- doc-content --> </div> <!-- end body-content --> <script type="text/javascript"> init(); /* initialize doclava-developer-docs.js */ </script> </body> </html>
facebook/fresco
docs/javadoc/reference/com/facebook/animated/webp/package-summary.html
HTML
mit
19,981
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Class: Gem::Security::Signer</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> <script type="text/javascript"> // <![CDATA[ function popupCode( url ) { window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") } function toggleCode( id ) { if ( document.getElementById ) elem = document.getElementById( id ); else if ( document.all ) elem = eval( "document.all." + id ); else return false; elemStyle = elem.style; if ( elemStyle.display != "block" ) { elemStyle.display = "block" } else { elemStyle.display = "none" } return true; } // Make codeblocks hidden by default document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) // ]]> </script> </head> <body> <div id="classHeader"> <table class="header-table"> <tr class="top-aligned-row"> <td><strong>Class</strong></td> <td class="class-name-in-header">Gem::Security::Signer</td> </tr> <tr class="top-aligned-row"> <td><strong>In:</strong></td> <td> <a href="../../../files/lib/rubygems/security_rb.html"> lib/rubygems/security.rb </a> <br /> </td> </tr> <tr class="top-aligned-row"> <td><strong>Parent:</strong></td> <td> Object </td> </tr> </table> </div> <!-- banner header --> <div id="bodyContent"> <div id="contextContent"> <div id="description"> <p> Basic <a href="../../OpenSSL.html">OpenSSL</a>-based package signing class. </p> </div> </div> <div id="method-list"> <h3 class="section-bar">Methods</h3> <div class="name-list"> <a href="#M000098">new</a>&nbsp;&nbsp; <a href="#M000099">sign</a>&nbsp;&nbsp; </div> </div> </div> <!-- if includes --> <div id="section"> <div id="attribute-list"> <h3 class="section-bar">Attributes</h3> <div class="name-list"> <table> <tr class="top-aligned-row context-row"> <td class="context-item-name">cert_chain</td> <td class="context-item-value">&nbsp;[RW]&nbsp;</td> <td class="context-item-desc"></td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">key</td> <td class="context-item-value">&nbsp;[RW]&nbsp;</td> <td class="context-item-desc"></td> </tr> </table> </div> </div> <!-- if method_list --> <div id="methods"> <h3 class="section-bar">Public Class methods</h3> <div id="method-M000098" class="method-detail"> <a name="M000098"></a> <div class="method-heading"> <a href="Signer.src/M000098.html" target="Code" class="method-signature" onclick="popupCode('Signer.src/M000098.html');return false;"> <span class="method-name">new</span><span class="method-args">(key, cert_chain)</span> </a> </div> <div class="method-description"> </div> </div> <h3 class="section-bar">Public Instance methods</h3> <div id="method-M000099" class="method-detail"> <a name="M000099"></a> <div class="method-heading"> <a href="Signer.src/M000099.html" target="Code" class="method-signature" onclick="popupCode('Signer.src/M000099.html');return false;"> <span class="method-name">sign</span><span class="method-args">(data)</span> </a> </div> <div class="method-description"> <p> Sign data with given digest algorithm </p> </div> </div> </div> </div> <div id="validator-badges"> <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> </div> </body> </html>
codereflection/Giles
tools/Rake/lib/ruby/gems/1.8/doc/rubygems-1.5.2/rdoc/classes/Gem/Security/Signer.html
HTML
mit
4,647
<?php /* * This file is part of the PHP CS utility. * * (c) Fabien Potencier <fabien@symfony.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Symfony\CS\Finder; use Symfony\CS\FinderInterface; use Symfony\Component\Finder\Finder; /** * @author Fabien Potencier <fabien@symfony.com> */ class DefaultFinder extends Finder implements FinderInterface { public function __construct() { parent::__construct(); $files = $this->getFilesToExclude(); $this ->files() ->name('*.php') ->name('*.twig') ->name('*.xml') ->name('*.yml') ->ignoreDotFiles(true) ->ignoreVCS(true) ->exclude('vendor') ->filter( function (\SplFileInfo $file) use ($files) { return !in_array($file->getRelativePathname(), $files, true); } ) ; } public function setDir($dir) { $this->in($this->getDirs($dir)); } /** * Gets the directories that needs to be scanned for files to validate. * * @return array */ protected function getDirs($dir) { return array($dir); } /** * Excludes files because modifying them would break. * * This is mainly useful for fixtures in unit tests. * * @return array */ protected function getFilesToExclude() { return array(); } }
stof/PHP-CS-Fixer
Symfony/CS/Finder/DefaultFinder.php
PHP
mit
1,553
 Type.registerNamespace("Strings"); Strings.OfficeOM = function() { }; Strings.OfficeOM.registerClass("Strings.OfficeOM"); Strings.OfficeOM.L_ShowWindowDialogNotification = "{0} иска да покаже нов прозорец."; Strings.OfficeOM.L_CannotRegisterEvent = "Манипулаторът на събитие не може да бъде регистриран."; Strings.OfficeOM.L_NotImplemented = "Функцията {0} не е реализирана."; Strings.OfficeOM.L_CustomXmlOutOfDateName = "Данните не са актуални"; Strings.OfficeOM.L_ActivityLimitReached = "Достигнато е ограничението за активност."; Strings.OfficeOM.L_InvalidBinding = "Невалидно обвързване"; Strings.OfficeOM.L_InvalidOrTimedOutSessionMessage = "Your Office Online session has expired or is invalid. To continue, refresh the page."; Strings.OfficeOM.L_PropertyDoesNotExist = 'Свойството "{0}" не съществува в обекта.'; Strings.OfficeOM.L_BindingCreationError = "Грешка при създаване на обвързване"; Strings.OfficeOM.L_InvalidSetRows = "Посочените редове са невалидни."; Strings.OfficeOM.L_CannotWriteToSelection = "Не може да се запише в текущата селекция."; Strings.OfficeOM.L_IndexOutOfRange = "Индексът е извън обхват."; Strings.OfficeOM.L_ReadSettingsError = "Грешка в настройките за четене"; Strings.OfficeOM.L_InvalidGetColumns = "Посочените колони са невалидни."; Strings.OfficeOM.L_OverwriteWorksheetData = "Операцията за настройка е неуспешна, защото подаденият обект с данни ще се запише върху данните или ще ги отмести."; Strings.OfficeOM.L_RowIndexOutOfRange = "Стойността на индекса на реда е извън допустимия диапазон. Използвайте стойност (0 или по-висока), която е по-малка от броя на редовете."; Strings.OfficeOM.L_ColIndexOutOfRange = "Стойността на индекса на колоната е извън допустимия диапазон. Използвайте стойност (0 или по-висока), която е по-малка от броя на колоните."; Strings.OfficeOM.L_InvalidParameters = "Функцията {0} има невалиден параметри."; Strings.OfficeOM.L_DialogAlreadyOpened = "Операцията е неуспешна, защото тази добавка вече има активен диалогов прозорец."; Strings.OfficeOM.L_SetDataParametersConflict = "Посочените параметри са в конфликт."; Strings.OfficeOM.L_CannotApplyPropertyThroughSetMethod = 'Промените в свойство "{0}" не могат да бъдат приложени чрез метод "object.set".'; Strings.OfficeOM.L_DataNotMatchCoercionType = "Типът на указания обект с данни не е съвместим с текущата селекция."; Strings.OfficeOM.L_DialogOK = "OK"; Strings.OfficeOM.L_RunMustReturnPromise = 'Функцията за партида, подадена на метода ".run", не върна обещание. Функцията трябва да върне едно обещание, така че всички автоматично проследявани обекти да могат да бъдат освободени при завършване на операцията с партидата. Обикновено връщате обещание чрез връщане на отговора от "context.sync()".'; Strings.OfficeOM.L_UnsupportedEnumerationMessage = "Това номериране не се поддържа в текущото приложение хост."; Strings.OfficeOM.L_NewWindowCrossZoneConfigureBrowserLink = "конфигуриране на браузъра"; Strings.OfficeOM.L_InvalidCoercion = "Невалидно преобразуване на тип"; Strings.OfficeOM.L_UnsupportedDataObject = "Подаденият тип на обект с данни не се поддържа."; Strings.OfficeOM.L_AppNameNotExist = "Не съществува име на добавка за {0}."; Strings.OfficeOM.L_AddBindingFromPromptDefaultText = "Направете избор."; Strings.OfficeOM.L_DataNotMatchBindingType = "Указаният обект с данни не е съвместим с типа на обвързване."; Strings.OfficeOM.L_InvalidFormatValue = "Един или повече от параметрите за форматиране имат стойности, които не са позволени. Проверете стойностите и опитайте отново."; Strings.OfficeOM.L_OperationNotSupported = "Тази операция не се поддържа."; Strings.OfficeOM.L_InvalidRequestContext = "Не може да се използва обектът в контекста на различни заявки."; Strings.OfficeOM.L_NamedItemNotFound = "Наименуваният елемент не съществува."; Strings.OfficeOM.L_InvalidGetRows = "Посочените редове са невалидни."; Strings.OfficeOM.L_CellFormatAmountBeyondLimits = "Забележка: Наборите за форматиране, зададени от повикване на форматирането на API, се предполага да бъдат под 100."; Strings.OfficeOM.L_ConnectionFailureWithDetails = "Искането е неуспешно с код на състоянието {0}, код за грешка {1} и следното съобщение за грешка: {2}"; Strings.OfficeOM.L_CustomXmlExceedQuotaName = "Достигнат е максималният брой селекции"; Strings.OfficeOM.L_TooManyIncompleteRequests = "Изчакайте, докато завърши предишното повикване."; Strings.OfficeOM.L_SetDataIsTooLarge = "Зададеният обект с данни е твърде голям."; Strings.OfficeOM.L_InvalidOrTimedOutSession = "Invalid Or Timed Out Session"; Strings.OfficeOM.L_DialogAddressNotTrusted = "Домейнът на URL адреса не е включен в елемента AppDomain в манифеста."; Strings.OfficeOM.L_InvalidBindingOperation = "Невалидна операция за обвързване"; Strings.OfficeOM.L_APICallFailed = "Неуспешно извикване на API"; Strings.OfficeOM.L_SpecifiedIdNotExist = "Посоченият ИД не съществува."; Strings.OfficeOM.L_SaveSettingsError = "Грешка в настройките за записване"; Strings.OfficeOM.L_InvalidSetStartRowColumn = "Зададените стойности за startRow или startColumn са невалидни."; Strings.OfficeOM.L_InvalidFormat = "Грешка, причинена от невалиден формат"; Strings.OfficeOM.L_InvalidArgument = 'Аргументът "{0}" не работи за този случай, липсва или не е в правилния формат.'; Strings.OfficeOM.L_EventHandlerAdditionFailed = "Неуспешно добавяне на манипулатора на събитие."; Strings.OfficeOM.L_InvalidAPICall = "Невалидно извикване на API"; Strings.OfficeOM.L_EventRegistrationError = "Грешка при регистриране на събитие"; Strings.OfficeOM.L_DialogRequireHTTPS = "Не се поддържа протоколът HTTP. Вместо това използвайте HTTPS"; Strings.OfficeOM.L_CustomXmlError = "Грешка в потребителския XML."; Strings.OfficeOM.L_TooManyOptionalFunction = "няколко опционални функции в списъка с параметри"; Strings.OfficeOM.L_CustomXmlExceedQuotaMessage = "XPath ограничава избора до 1024 елемента."; Strings.OfficeOM.L_InvalidSelectionForBindingType = "Не може да се създаде обвързване с текущата селекция и указания тип обвързване."; Strings.OfficeOM.L_OperationNotSupportedOnMatrixData = "Избраното съдържание трябва да е в табличен формат. Форматирайте данните като таблица и опитайте отново."; Strings.OfficeOM.L_ShowWindowDialogNotificationIgnore = "Игнориране"; Strings.OfficeOM.L_SliceSizeNotSupported = "Указаният размер на сегмент не се поддържа."; Strings.OfficeOM.L_EventHandlerRemovalFailed = "Неуспешно премахване на манипулатора на събитие."; Strings.OfficeOM.L_DataReadError = "Грешка при четене на данни"; Strings.OfficeOM.L_InvalidDataFormat = "Форматът на указания обект с данни е невалиден."; Strings.OfficeOM.L_RequestTimeout = "Повикването отне твърде много време, за да се изпълни."; Strings.OfficeOM.L_GetSelectionNotSupported = "Текущата селекция не се поддържа."; Strings.OfficeOM.L_InvalidTableOptionValue = "Един или повече от параметрите на tableOptions имат стойности, които не са позволени. Проверете стойностите и опитайте отново."; Strings.OfficeOM.L_PermissionDenied = "Разрешението е отказано"; Strings.OfficeOM.L_InvalidDataObject = "Невалиден обект с данни"; Strings.OfficeOM.L_InvalidColumnsForBinding = "Посочените колони са невалидни."; Strings.OfficeOM.L_InvalidGetRowColumnCounts = "Зададените стойности за rowCount или columnCount са невалидни."; Strings.OfficeOM.L_OsfControlTypeNotSupported = "Типът OsfControl не се поддържа."; Strings.OfficeOM.L_DialogNavigateError = "Грешка в навигацията в диалоговия прозорец"; Strings.OfficeOM.L_InvalidArgumentGeneric = "Аргументите, подадени на функцията, не вършат работа в тази ситуация, липсват или не са в правилния формат."; Strings.OfficeOM.L_InvalidObjectPath = 'Пътят на обекта "{0}" не работи за това, което се опитвате да направите. Ако използвате обекта в няколко различни повиквания на "context.sync" и извън последователно изпълнение на партида ".run", използвайте методите "context.trackedObjects.add()" и "context.trackedObjects.remove()" за управление на времето на живот на обекта.'; Strings.OfficeOM.L_InternalError = "Вътрешна грешка"; Strings.OfficeOM.L_CoercionTypeNotMatchBinding = "Зададеният тип преобразуване не е съвместим с този тип обвързване."; Strings.OfficeOM.L_InValidOptionalArgument = "невалиден незадължителен аргумент"; Strings.OfficeOM.L_InvalidNamedItemForBindingType = "Зададеният тип обвързване не е съвместим с подадения именуван елемент."; Strings.OfficeOM.L_InvalidNode = "Невалиден възел"; Strings.OfficeOM.L_UnknownBindingType = "Типът на обвързването не се поддържа."; Strings.OfficeOM.L_EventHandlerNotExist = "Зададеният манипулатор на събитие не е намерен за това обвързване."; Strings.OfficeOM.L_NoCapability = "Нямате достатъчно разрешения за това действие."; Strings.OfficeOM.L_SettingsCannotSave = "Настройките не можаха да бъдат записани."; Strings.OfficeOM.L_DataWriteReminder = "Напомняне за запис на данни"; Strings.OfficeOM.L_InvalidSetColumns = "Посочените колони са невалидни."; Strings.OfficeOM.L_InvalidBindingError = "Грешка от невалидно обвързване"; Strings.OfficeOM.L_SelectionNotSupportCoercionType = "Текущата селекция не е съвместима със зададения тип преобразуване."; Strings.OfficeOM.L_FormatValueOutOfRange = "Стойността е извън позволения диапазон."; Strings.OfficeOM.L_InvalidGetStartRowColumn = "Зададените стойности за startRow или startColumn са невалидни."; Strings.OfficeOM.L_NetworkProblem = "Мрежов проблем"; Strings.OfficeOM.L_MissingParameter = "Липсващ параметър"; Strings.OfficeOM.L_NewWindowCrossZone = 'Настройките за защита на вашия браузър ни пречат да създадем диалогов прозорец. Опитайте с друг браузър или {0}, така че "{1}" и домейнът, показан в адресната лента, да са в една и съща зона на защита.'; Strings.OfficeOM.L_SettingsStaleError = "Грешка от неактуални настройки"; Strings.OfficeOM.L_CannotNavigateTo = "Обектът се намира на място, където не се поддържа навигация."; Strings.OfficeOM.L_AttemptingToSetReadOnlyProperty = 'Опит за настройка на свойство само за четене "{0}".'; Strings.OfficeOM.L_AppNotExistInitializeNotCalled = "Приложението {0} не съществува. Не е извикано Microsoft.Office.WebExtension.Initialize(причина)."; Strings.OfficeOM.L_CoercionTypeNotSupported = "Зададеният тип преобразуване не се поддържа."; Strings.OfficeOM.L_InvalidReadForBlankRow = "Указаният ред е празен."; Strings.OfficeOM.L_UnsupportedEnumeration = "Неподдържано номериране"; Strings.OfficeOM.L_CloseFileBeforeRetrieve = "Извикайте closeAsync за текущия файл, преди да извлечете друг."; Strings.OfficeOM.L_CustomXmlOutOfDateMessage = "Данните са остарели. Извлечете обекта отново."; Strings.OfficeOM.L_Timeout = "Времето за изчакване на операцията изтече."; Strings.OfficeOM.L_NotSupportedEventType = "Указаният тип на събитие {0} не се поддържа."; Strings.OfficeOM.L_GetDataIsTooLarge = "Заявеният набор данни е твърде голям."; Strings.OfficeOM.L_MultipleNamedItemFound = "Намерени са множество обекти с едно и също име."; Strings.OfficeOM.L_InvalidCellsValue = "Един или повече от параметрите на клетките имат стойности, които не са позволени. Проверете стойностите и опитайте отново."; Strings.OfficeOM.L_InitializeNotReady = "Office.js не е още напълно зареден. Опитайте отново по-късно или се уверете, че сте добавили кода за инициализация във функцията Office.initialize."; Strings.OfficeOM.L_NotSupportedBindingType = "Указаният тип на обвързване {0} не се поддържа."; Strings.OfficeOM.L_ShuttingDown = "Операцията беше неуспешна, защото данните в сървъра не са актуални."; Strings.OfficeOM.L_FormattingReminder = "Напомняне за форматиране"; Strings.OfficeOM.L_ConnectionFailureWithStatus = "Искането е неуспешно с код на състоянието {0}."; Strings.OfficeOM.L_DialogInvalidScheme = "Схемата на URL адреса не се поддържа. Вместо това използвайте HTTPS."; Strings.OfficeOM.L_DocumentReadOnly = "Заявената операция не е разрешена в текущия документен режим."; Strings.OfficeOM.L_InvalidApiCallInContext = "Невалидно извикване на API в текущия контекст."; Strings.OfficeOM.L_ShowWindowDialogNotificationAllow = "Позволи"; Strings.OfficeOM.L_DataWriteError = "Грешка при запис на данни"; Strings.OfficeOM.L_FunctionCallFailed = "Извикването на функцията {0} е неуспешно, код на грешка: {1}."; Strings.OfficeOM.L_DataNotMatchBindingSize = "Подаденият обект с данни не съответства на размера на текущата селекция."; Strings.OfficeOM.L_RequestTokenUnavailable = "Този API е ограничен, за да се забави честотата на повикване."; Strings.OfficeOM.L_NewWindowCrossZoneErrorString = "Ограничения на браузъра ни попречиха да създадем диалоговия прозорец. Домейнът на диалоговия прозорец и домейнът на хоста на добавката не са в една и съща зона на защита."; Strings.OfficeOM.L_BindingNotExist = "Указаното обвързване не съществува."; Strings.OfficeOM.L_DisplayDialogError = "Показване на грешката в диалоговия прозорец"; Strings.OfficeOM.L_SettingNameNotExist = "Указаното име на настройка не съществува."; Strings.OfficeOM.L_BrowserAPINotSupported = "Този браузър не поддържа искания API."; Strings.OfficeOM.L_NonUniformPartialSetNotSupported = 'Параметрите за координати не могат да се използват с налагане на типа "Таблица", когато таблицата съдържа обединени клетки.'; Strings.OfficeOM.L_ElementMissing = "Не можем да форматираме клетката на таблицата, тъй като някои стойности на параметри липсват. Проверете отново параметрите и опитайте отново."; Strings.OfficeOM.L_ValueNotLoaded = 'Стойността на обекта резултат още не е заредена. Преди четене на свойството на стойността, повикайте "context.sync()" в контекста на съответната заявка.'; Strings.OfficeOM.L_NavOutOfBound = "Операцията е неуспешна, тъй като индексът е извън диапазона."; Strings.OfficeOM.L_RedundantCallbackSpecification = "Обратното повикване не може да се задава и в списък с аргументи, и в незадължителен обект."; Strings.OfficeOM.L_PropertyNotLoaded = 'Свойството "{0}" не е налично. Преди да прочетете стойността на свойството, извикайте метода за зареждане с обекта, който го съдържа, и извикайте "context.sync()" в контекста на свързаната заявка.'; Strings.OfficeOM.L_SettingsAreStale = "Настройките не можаха да се запишат, защото не са актуални."; Strings.OfficeOM.L_MissingRequiredArguments = "липсват някои задължителни аргументи"; Strings.OfficeOM.L_NonUniformPartialGetNotSupported = 'Параметрите за координати не могат да се използват с налагане на типа "Таблица", когато таблицата съдържа обединени клетки.'; Strings.OfficeOM.L_OutOfRange = "Извън допустимия диапазон"; Strings.OfficeOM.L_HostError = "Грешка на хоста"; Strings.OfficeOM.L_TooManyOptionalObjects = "няколко опционални обекта в списъка с параметри"; Strings.OfficeOM.L_APINotSupported = "API не се поддържа"; Strings.OfficeOM.L_UserClickIgnore = "Потребителят избра да игнорира диалоговия прозорец."; Strings.OfficeOM.L_BindingToMultipleSelection = "Не се поддържат несъседни селекции."; Strings.OfficeOM.L_InternalErrorDescription = "Възникна вътрешна грешка."; Strings.OfficeOM.L_DataStale = "Данните не са актуални"; Strings.OfficeOM.L_MemoryLimit = "Превишено е ограничението за паметта"; Strings.OfficeOM.L_CellDataAmountBeyondLimits = "Забележка: Броят на клетките в таблица се предполага да бъде под 20 000 клетки."; Strings.OfficeOM.L_SelectionCannotBound = "Не може да се обвърже с текущата селекция."; Strings.OfficeOM.L_UserNotSignedIn = "Нито един потребител не е влязъл в Office."; Strings.OfficeOM.L_BadSelectorString = "Низът, който е подаден в селектора, е неправилно форматиран или не се поддържа."; Strings.OfficeOM.L_InvalidValue = "Невалидна стойност"; Strings.OfficeOM.L_DataNotMatchSelection = "Предоставеният обект с данни не е съвместим с формата или размерностите на текущата селекция."; Strings.OfficeOM.L_NotSupported = "Функцията {0} не се поддържа."; Strings.OfficeOM.L_CustomXmlNodeNotFound = "Указаният възел не е намерен."; Strings.OfficeOM.L_NetworkProblemRetrieveFile = "Проблем в мрежата попречи на извличането на файла."; Strings.OfficeOM.L_TooManyArguments = "твърде много аргументи"; Strings.OfficeOM.L_OperationNotSupportedOnThisBindingType = "Операцията не се поддържа за този тип обвързване."; Strings.OfficeOM.L_GetDataParametersConflict = "Посочените параметри са в конфликт."; Strings.OfficeOM.L_FileTypeNotSupported = "Зададеният тип на файл не се поддържа."; Strings.OfficeOM.L_CallbackNotAFunction = "Обратното повикване трябва да е от тип функция, а беше от тип {0}."
mszcool/mszcoolAzureBillingAddIn
src/mszcoolAzureBillingSheetWeb/Scripts/Office/1/bg-bg/office_strings.debug.js
JavaScript
mit
23,233
<!DOCTYPE html> <html lang="en"> <head> <title>SwizzleMethodKind Enumeration Reference</title> <link rel="stylesheet" type="text/css" href="../css/jazzy.css" /> <link rel="stylesheet" type="text/css" href="../css/highlight.css" /> <meta charset='utf-8'> <script src="../js/jquery.min.js" defer></script> <script src="../js/jazzy.js" defer></script> </head> <body> <a name="//apple_ref/swift/Enum/SwizzleMethodKind" class="dashAnchor"></a> <a title="SwizzleMethodKind Enumeration Reference"></a> <header> <div class="content-wrapper"> <p><a href="../index.html">Xcore 1.0.0 Docs</a> (34% documented)</p> <p class="header-right"><a href="https://github.com/zmian/xcore.swift"><img src="../img/gh.png"/>View on GitHub</a></p> <p class="header-right"><a href="dash-feed://https%3A%2F%2Fgithub%2Ecom%2Fzmian%2Fdocsets%2FXcore%2Exml"><img src="../img/dash.png"/>Install in Dash</a></p> </div> </header> <div class="content-wrapper"> <p id="breadcrumbs"> <a href="../index.html">Xcore Reference</a> <img id="carat" src="../img/carat.png" /> SwizzleMethodKind Enumeration Reference </p> </div> <div class="content-wrapper"> <nav class="sidebar"> <ul class="nav-groups"> <li class="nav-group-name"> <a href="../Classes.html">Classes</a> <ul class="nav-group-tasks"> <li class="nav-group-task"> <a href="../Classes/Analytics.html">Analytics</a> </li> <li class="nav-group-task"> <a href="../Classes/AnalyticsSessionTracker.html">AnalyticsSessionTracker</a> </li> <li class="nav-group-task"> <a href="../Classes/Anchor.html">Anchor</a> </li> <li class="nav-group-task"> <a href="../Classes/Anchor/Axis.html">– Axis</a> </li> <li class="nav-group-task"> <a href="../Classes/Anchor/XAxis.html">– XAxis</a> </li> <li class="nav-group-task"> <a href="../Classes/Anchor/YAxis.html">– YAxis</a> </li> <li class="nav-group-task"> <a href="../Classes/Anchor/DimensionAxis.html">– DimensionAxis</a> </li> <li class="nav-group-task"> <a href="../Classes/Anchor.html#/s:5Xcore6AnchorC8SizeAxisC">– SizeAxis</a> </li> <li class="nav-group-task"> <a href="../Classes/Anchor/EdgesAxis.html">– EdgesAxis</a> </li> <li class="nav-group-task"> <a href="../Classes/Anchor.html#/s:5Xcore6AnchorC10CenterAxisC">– CenterAxis</a> </li> <li class="nav-group-task"> <a href="../Classes/Anchor.html#/s:5Xcore6AnchorC9XAxisTypeO">– XAxisType</a> </li> <li class="nav-group-task"> <a href="../Classes/Anchor.html#/s:5Xcore6AnchorC9YAxisTypeO">– YAxisType</a> </li> <li class="nav-group-task"> <a href="../Classes/Anchor.html#/s:5Xcore6AnchorC17DimensionAxisTypeO">– DimensionAxisType</a> </li> <li class="nav-group-task"> <a href="../Classes/Anchor.html#/s:5Xcore6AnchorC13EdgesAxisTypeO">– EdgesAxisType</a> </li> <li class="nav-group-task"> <a href="../Classes/Anchor.html#/s:5Xcore6AnchorC14CenterAxisTypeO">– CenterAxisType</a> </li> <li class="nav-group-task"> <a href="../Classes/AnimationRunLoop.html">AnimationRunLoop</a> </li> <li class="nav-group-task"> <a href="../Classes/BlurView.html">BlurView</a> </li> <li class="nav-group-task"> <a href="../Classes/CarouselView.html">CarouselView</a> </li> <li class="nav-group-task"> <a href="../Classes/CarouselViewModel.html">CarouselViewModel</a> </li> <li class="nav-group-task"> <a href="../Classes/Chrome.html">Chrome</a> </li> <li class="nav-group-task"> <a href="../Classes/Chrome/Element.html">– Element</a> </li> <li class="nav-group-task"> <a href="../Classes/Chrome/BackgroundStyle.html">– BackgroundStyle</a> </li> <li class="nav-group-task"> <a href="../Classes/Chrome/Style.html">– Style</a> </li> <li class="nav-group-task"> <a href="../Classes/CollectionViewCarouselLayout.html">CollectionViewCarouselLayout</a> </li> <li class="nav-group-task"> <a href="../Classes/CollectionViewDequeueCache.html">CollectionViewDequeueCache</a> </li> <li class="nav-group-task"> <a href="../Classes/Console.html">Console</a> </li> <li class="nav-group-task"> <a href="../Classes/Console/LevelOptions.html">– LevelOptions</a> </li> <li class="nav-group-task"> <a href="../Classes/Console/PrefixOptions.html">– PrefixOptions</a> </li> <li class="nav-group-task"> <a href="../Classes/ContainerViewController.html">ContainerViewController</a> </li> <li class="nav-group-task"> <a href="../Classes/CurrencyFormatter.html">CurrencyFormatter</a> </li> <li class="nav-group-task"> <a href="../Classes/CustomCarouselView.html">CustomCarouselView</a> </li> <li class="nav-group-task"> <a href="../Classes/CustomCarouselView/Style.html">– Style</a> </li> <li class="nav-group-task"> <a href="../Classes/DatePicker.html">DatePicker</a> </li> <li class="nav-group-task"> <a href="../Classes/DrawerScreen.html">DrawerScreen</a> </li> <li class="nav-group-task"> <a href="../Classes/DrawerScreen/Appearance.html">– Appearance</a> </li> <li class="nav-group-task"> <a href="../Classes/DynamicTableView.html">DynamicTableView</a> </li> <li class="nav-group-task"> <a href="../Classes/DynamicTableViewCell.html">DynamicTableViewCell</a> </li> <li class="nav-group-task"> <a href="../Classes/DynamicTableViewController.html">DynamicTableViewController</a> </li> <li class="nav-group-task"> <a href="../Classes/Environment.html">Environment</a> </li> <li class="nav-group-task"> <a href="../Classes/Environment/Kind.html">– Kind</a> </li> <li class="nav-group-task"> <a href="../Classes/FadeAnimator.html">FadeAnimator</a> </li> <li class="nav-group-task"> <a href="../Classes/GradientLayer.html">GradientLayer</a> </li> <li class="nav-group-task"> <a href="../Classes/GradientView.html">GradientView</a> </li> <li class="nav-group-task"> <a href="../Classes/HUD.html">HUD</a> </li> <li class="nav-group-task"> <a href="../Classes/HUD/StatusBarAppearance.html">– StatusBarAppearance</a> </li> <li class="nav-group-task"> <a href="../Classes/HUD/Duration.html">– Duration</a> </li> <li class="nav-group-task"> <a href="../Classes/HUD/Appearance.html">– Appearance</a> </li> <li class="nav-group-task"> <a href="../Classes/HapticFeedback.html">HapticFeedback</a> </li> <li class="nav-group-task"> <a href="../Classes/IconLabelCollectionView.html">IconLabelCollectionView</a> </li> <li class="nav-group-task"> <a href="../Classes/IconLabelCollectionView/Cell.html">– Cell</a> </li> <li class="nav-group-task"> <a href="../Classes/IconLabelCollectionViewController.html">IconLabelCollectionViewController</a> </li> <li class="nav-group-task"> <a href="../Classes/IconLabelView.html">IconLabelView</a> </li> <li class="nav-group-task"> <a href="../Classes/InputToolbar.html">InputToolbar</a> </li> <li class="nav-group-task"> <a href="../Classes/IntrinsicContentSizeImageView.html">IntrinsicContentSizeImageView</a> </li> <li class="nav-group-task"> <a href="../Classes/IntrinsicContentSizeView.html">IntrinsicContentSizeView</a> </li> <li class="nav-group-task"> <a href="../Classes/KeychainHelpers.html">KeychainHelpers</a> </li> <li class="nav-group-task"> <a href="../Classes/LabelTextView.html">LabelTextView</a> </li> <li class="nav-group-task"> <a href="../Classes/LinePageControl.html">LinePageControl</a> </li> <li class="nav-group-task"> <a href="../Classes/LoadingView.html">LoadingView</a> </li> <li class="nav-group-task"> <a href="../Classes/MarkupText.html">MarkupText</a> </li> <li class="nav-group-task"> <a href="../Classes/MarkupText/Appearance.html">– Appearance</a> </li> <li class="nav-group-task"> <a href="../Classes/MulticastDelegate.html">MulticastDelegate</a> </li> <li class="nav-group-task"> <a href="../Classes/NavigationController.html">NavigationController</a> </li> <li class="nav-group-task"> <a href="../Classes/Observers.html">Observers</a> </li> <li class="nav-group-task"> <a href="../Classes/PageControl.html">PageControl</a> </li> <li class="nav-group-task"> <a href="../Classes/PageNavigationController.html">PageNavigationController</a> </li> <li class="nav-group-task"> <a href="../Classes/PassthroughStackView.html">PassthroughStackView</a> </li> <li class="nav-group-task"> <a href="../Classes/PassthroughView.html">PassthroughView</a> </li> <li class="nav-group-task"> <a href="../Classes/Picker.html">Picker</a> </li> <li class="nav-group-task"> <a href="../Classes/Picker/RowModel.html">– RowModel</a> </li> <li class="nav-group-task"> <a href="../Classes/Picker/RowView.html">– RowView</a> </li> <li class="nav-group-task"> <a href="../Classes/PickerList.html">PickerList</a> </li> <li class="nav-group-task"> <a href="../Classes/ProgressView.html">ProgressView</a> </li> <li class="nav-group-task"> <a href="../Classes/ReorderTableView.html">ReorderTableView</a> </li> <li class="nav-group-task"> <a href="../Classes/Request.html">Request</a> </li> <li class="nav-group-task"> <a href="../Classes/Request/Method.html">– Method</a> </li> <li class="nav-group-task"> <a href="../Classes/Request/Body.html">– Body</a> </li> <li class="nav-group-task"> <a href="../Classes/Router.html">Router</a> </li> <li class="nav-group-task"> <a href="../Classes/Router/Route.html">– Route</a> </li> <li class="nav-group-task"> <a href="../Classes/Router/RouteKind.html">– RouteKind</a> </li> <li class="nav-group-task"> <a href="../Classes/SearchBarView.html">SearchBarView</a> </li> <li class="nav-group-task"> <a href="../Classes/SearchBarView/SeparatorPosition.html">– SeparatorPosition</a> </li> <li class="nav-group-task"> <a href="../Classes/SeparatorView.html">SeparatorView</a> </li> <li class="nav-group-task"> <a href="../Classes/SeparatorView/Style.html">– Style</a> </li> <li class="nav-group-task"> <a href="../Classes/SiriShortcuts.html">SiriShortcuts</a> </li> <li class="nav-group-task"> <a href="../Classes/SiriShortcuts/Domain.html">– Domain</a> </li> <li class="nav-group-task"> <a href="../Classes/SiriShortcuts/Suggestions.html">– Suggestions</a> </li> <li class="nav-group-task"> <a href="../Classes/SplitScreenViewController.html">SplitScreenViewController</a> </li> <li class="nav-group-task"> <a href="../Classes/SwizzleManager.html">SwizzleManager</a> </li> <li class="nav-group-task"> <a href="../Classes/SwizzleManager/SwizzleOptions.html">– SwizzleOptions</a> </li> <li class="nav-group-task"> <a href="../Classes/TextViewController.html">TextViewController</a> </li> <li class="nav-group-task"> <a href="../Classes/TransitionAnimator.html">TransitionAnimator</a> </li> <li class="nav-group-task"> <a href="../Classes/TransitionContext.html">TransitionContext</a> </li> <li class="nav-group-task"> <a href="../Classes/UserDefaultStore.html">UserDefaultStore</a> </li> <li class="nav-group-task"> <a href="../Classes/UserDefaultsAnalyticsProvider.html">UserDefaultsAnalyticsProvider</a> </li> <li class="nav-group-task"> <a href="../Classes/Weak.html">Weak</a> </li> <li class="nav-group-task"> <a href="../Classes/WebViewController.html">WebViewController</a> </li> <li class="nav-group-task"> <a href="../Classes/WebViewController/Autofill.html">– Autofill</a> </li> <li class="nav-group-task"> <a href="../Classes/WebViewController/Style.html">– Style</a> </li> <li class="nav-group-task"> <a href="../Classes/XCCollectionReusableView.html">XCCollectionReusableView</a> </li> <li class="nav-group-task"> <a href="../Classes/XCCollectionView.html">XCCollectionView</a> </li> <li class="nav-group-task"> <a href="../Classes/XCCollectionViewCell.html">XCCollectionViewCell</a> </li> <li class="nav-group-task"> <a href="../Classes/XCCollectionViewComposedDataSource.html">XCCollectionViewComposedDataSource</a> </li> <li class="nav-group-task"> <a href="../Classes/XCCollectionViewDataSource.html">XCCollectionViewDataSource</a> </li> <li class="nav-group-task"> <a href="../Classes/XCCollectionViewFlowLayout.html">XCCollectionViewFlowLayout</a> </li> <li class="nav-group-task"> <a href="../Classes/XCCollectionViewFlowLayout/Attributes.html">– Attributes</a> </li> <li class="nav-group-task"> <a href="../Classes/XCCollectionViewFlowLayoutAdapter.html">XCCollectionViewFlowLayoutAdapter</a> </li> <li class="nav-group-task"> <a href="../Classes/XCCollectionViewTileLayout.html">XCCollectionViewTileLayout</a> </li> <li class="nav-group-task"> <a href="../Classes/XCCollectionViewTileLayoutAdapter.html">XCCollectionViewTileLayoutAdapter</a> </li> <li class="nav-group-task"> <a href="../Classes/XCComposedCollectionViewController.html">XCComposedCollectionViewController</a> </li> <li class="nav-group-task"> <a href="../Classes/XCComposedCollectionViewLayoutAdapter.html">XCComposedCollectionViewLayoutAdapter</a> </li> <li class="nav-group-task"> <a href="../Classes/XCComposedTableViewController.html">XCComposedTableViewController</a> </li> <li class="nav-group-task"> <a href="../Classes/XCPageViewController.html">XCPageViewController</a> </li> <li class="nav-group-task"> <a href="../Classes/XCPageViewController/PageControlPosition.html">– PageControlPosition</a> </li> <li class="nav-group-task"> <a href="../Classes/XCScrollViewController.html">XCScrollViewController</a> </li> <li class="nav-group-task"> <a href="../Classes/XCTabBarController.html">XCTabBarController</a> </li> <li class="nav-group-task"> <a href="../Classes/XCTableViewCell.html">XCTableViewCell</a> </li> <li class="nav-group-task"> <a href="../Classes/XCTableViewComposedDataSource.html">XCTableViewComposedDataSource</a> </li> <li class="nav-group-task"> <a href="../Classes/XCTableViewDataSource.html">XCTableViewDataSource</a> </li> <li class="nav-group-task"> <a href="../Classes/XCToolbar.html">XCToolbar</a> </li> <li class="nav-group-task"> <a href="../Classes/XCView.html">XCView</a> </li> <li class="nav-group-task"> <a href="../Classes/ZoomAnimator.html">ZoomAnimator</a> </li> <li class="nav-group-task"> <a href="../Classes/ZoomAnimatorNavigationControllerDelegate.html">ZoomAnimatorNavigationControllerDelegate</a> </li> </ul> </li> <li class="nav-group-name"> <a href="../Global%20Variables.html">Global Variables</a> <ul class="nav-group-tasks"> <li class="nav-group-task"> <a href="../Global%20Variables.html#/s:5Xcore18isDebuggerAttachedSbvp">isDebuggerAttached</a> </li> <li class="nav-group-task"> <a href="../Global%20Variables.html#/s:5Xcore003Bxa12CoreGraphics7CGFloatVvp">π</a> </li> </ul> </li> <li class="nav-group-name"> <a href="../Enums.html">Enumerations</a> <ul class="nav-group-tasks"> <li class="nav-group-task"> <a href="../Enums/AnimationDirection.html">AnimationDirection</a> </li> <li class="nav-group-task"> <a href="../Enums/AnimationState.html">AnimationState</a> </li> <li class="nav-group-task"> <a href="../Enums/AssociationPolicy.html">AssociationPolicy</a> </li> <li class="nav-group-task"> <a href="../Enums/Count.html">Count</a> </li> <li class="nav-group-task"> <a href="../Enums/Currency.html">Currency</a> </li> <li class="nav-group-task"> <a href="../Enums/Currency/Components.html">– Components</a> </li> <li class="nav-group-task"> <a href="../Enums/Currency/SymbolsOptions.html">– SymbolsOptions</a> </li> <li class="nav-group-task"> <a href="../Enums/Either.html">Either</a> </li> <li class="nav-group-task"> <a href="../Enums/FeatureFlag.html">FeatureFlag</a> </li> <li class="nav-group-task"> <a href="../Enums/FeatureFlag/Key.html">– Key</a> </li> <li class="nav-group-task"> <a href="../Enums/GradientDirection.html">GradientDirection</a> </li> <li class="nav-group-task"> <a href="../Enums/Handler.html">Handler</a> </li> <li class="nav-group-task"> <a href="../Enums/Handler/Completion.html">– Completion</a> </li> <li class="nav-group-task"> <a href="../Enums/Handler/Lifecycle.html">– Lifecycle</a> </li> <li class="nav-group-task"> <a href="../Enums/ImageRepresentableAlignment.html">ImageRepresentableAlignment</a> </li> <li class="nav-group-task"> <a href="../Enums/ImageSourceType.html">ImageSourceType</a> </li> <li class="nav-group-task"> <a href="../Enums/ImageSourceType/CacheType.html">– CacheType</a> </li> <li class="nav-group-task"> <a href="../Enums/Interstitial.html">Interstitial</a> </li> <li class="nav-group-task"> <a href="../Enums/Interstitial/UserState.html">– UserState</a> </li> <li class="nav-group-task"> <a href="../Enums/Interstitial/Controller.html">– Controller</a> </li> <li class="nav-group-task"> <a href="../Enums/Interstitial/Item.html">– Item</a> </li> <li class="nav-group-task"> <a href="../Enums/LaunchScreen.html">LaunchScreen</a> </li> <li class="nav-group-task"> <a href="../Enums/LaunchScreen/View.html">– View</a> </li> <li class="nav-group-task"> <a href="../Enums/LaunchScreen/ViewController.html">– ViewController</a> </li> <li class="nav-group-task"> <a href="../Enums/ListAccessoryType.html">ListAccessoryType</a> </li> <li class="nav-group-task"> <a href="../Enums/MultiplePromisesResolutionStrategy.html">MultiplePromisesResolutionStrategy</a> </li> <li class="nav-group-task"> <a href="../Enums/StringSourceType.html">StringSourceType</a> </li> <li class="nav-group-task"> <a href="../Enums/SwizzleMethodKind.html">SwizzleMethodKind</a> </li> </ul> </li> <li class="nav-group-name"> <a href="../Extensions.html">Extensions</a> <ul class="nav-group-tasks"> <li class="nav-group-task"> <a href="../Extensions/AVAsset.html">AVAsset</a> </li> <li class="nav-group-task"> <a href="../Extensions/AVPlayer.html">AVPlayer</a> </li> <li class="nav-group-task"> <a href="../Extensions/AVPlayerItem.html">AVPlayerItem</a> </li> <li class="nav-group-task"> <a href="../Extensions/Array.html">Array</a> </li> <li class="nav-group-task"> <a href="../Extensions/Bundle.html">Bundle</a> </li> <li class="nav-group-task"> <a href="../Extensions/CALayer.html">CALayer</a> </li> <li class="nav-group-task"> <a href="../Extensions/CAMediaTimingFunction.html">CAMediaTimingFunction</a> </li> <li class="nav-group-task"> <a href="../Extensions/CATransaction.html">CATransaction</a> </li> <li class="nav-group-task"> <a href="../Extensions/CATransitionType.html">CATransitionType</a> </li> <li class="nav-group-task"> <a href="../Extensions/CGAffineTransform.html">CGAffineTransform</a> </li> <li class="nav-group-task"> <a href="../Extensions/CGColor.html">CGColor</a> </li> <li class="nav-group-task"> <a href="../Extensions/CGContext.html">CGContext</a> </li> <li class="nav-group-task"> <a href="../Extensions/CGFloat.html">CGFloat</a> </li> <li class="nav-group-task"> <a href="../Extensions/CGRect.html">CGRect</a> </li> <li class="nav-group-task"> <a href="../Extensions/CGSize.html">CGSize</a> </li> <li class="nav-group-task"> <a href="../Extensions/CMTime.html">CMTime</a> </li> <li class="nav-group-task"> <a href="../Extensions/CaseIterable.html">CaseIterable</a> </li> <li class="nav-group-task"> <a href="../Extensions/CharacterSet.html">CharacterSet</a> </li> <li class="nav-group-task"> <a href="../Extensions/ClosedRange.html">ClosedRange</a> </li> <li class="nav-group-task"> <a href="../Extensions/Collection.html">Collection</a> </li> <li class="nav-group-task"> <a href="../Extensions/Comparable.html">Comparable</a> </li> <li class="nav-group-task"> <a href="../Extensions/Constraint.html">Constraint</a> </li> <li class="nav-group-task"> <a href="../Extensions/ConstraintMakerEditable.html">ConstraintMakerEditable</a> </li> <li class="nav-group-task"> <a href="../Extensions/ConstraintMakerPriortizable.html">ConstraintMakerPriortizable</a> </li> <li class="nav-group-task"> <a href="../Extensions/ConstraintMakerRelatable.html">ConstraintMakerRelatable</a> </li> <li class="nav-group-task"> <a href="../Extensions/ConstraintPriority.html">ConstraintPriority</a> </li> <li class="nav-group-task"> <a href="../Extensions/Data.html">Data</a> </li> <li class="nav-group-task"> <a href="../Extensions/Data/HexEncodingOptions.html">– HexEncodingOptions</a> </li> <li class="nav-group-task"> <a href="../Extensions/Date.html">Date</a> </li> <li class="nav-group-task"> <a href="../Extensions/Dictionary.html">Dictionary</a> </li> <li class="nav-group-task"> <a href="../Extensions/Dictionary/MergingStrategy.html">– MergingStrategy</a> </li> <li class="nav-group-task"> <a href="../Extensions/DispatchTime.html">DispatchTime</a> </li> <li class="nav-group-task"> <a href="../Extensions/Double.html">Double</a> </li> <li class="nav-group-task"> <a href="../Extensions/FileManager.html">FileManager</a> </li> <li class="nav-group-task"> <a href="../Extensions/FileManager/Options.html">– Options</a> </li> <li class="nav-group-task"> <a href="../Extensions/FixedWidthInteger.html">FixedWidthInteger</a> </li> <li class="nav-group-task"> <a href="../Extensions/FloatingPoint.html">FloatingPoint</a> </li> <li class="nav-group-task"> <a href="../Extensions/HTTPCookieStorage.html">HTTPCookieStorage</a> </li> <li class="nav-group-task"> <a href="../Extensions/INBalanceAmount.html">INBalanceAmount</a> </li> <li class="nav-group-task"> <a href="../Extensions/INCurrencyAmount.html">INCurrencyAmount</a> </li> <li class="nav-group-task"> <a href="../Extensions/INIntent.html">INIntent</a> </li> <li class="nav-group-task"> <a href="../Extensions/IndexPath.html">IndexPath</a> </li> <li class="nav-group-task"> <a href="../Extensions/Int.html">Int</a> </li> <li class="nav-group-task"> <a href="../Extensions/Locale.html">Locale</a> </li> <li class="nav-group-task"> <a href="../Extensions/MFMailComposeViewController.html">MFMailComposeViewController</a> </li> <li class="nav-group-task"> <a href="../Extensions/NSAttributedString.html">NSAttributedString</a> </li> <li class="nav-group-task"> <a href="../Extensions/NSAttributedString/CaretDirection.html">– CaretDirection</a> </li> <li class="nav-group-task"> <a href="../Extensions/NSAttributedString/BulletStyle.html">– BulletStyle</a> </li> <li class="nav-group-task"> <a href="../Extensions/NSLayoutConstraint.html">NSLayoutConstraint</a> </li> <li class="nav-group-task"> <a href="../Extensions/NSLayoutConstraint/Edges.html">– Edges</a> </li> <li class="nav-group-task"> <a href="../Extensions/NSLayoutConstraint/Size.html">– Size</a> </li> <li class="nav-group-task"> <a href="../Extensions/NSMutableAttributedString.html">NSMutableAttributedString</a> </li> <li class="nav-group-task"> <a href="../Extensions/NSObject.html">NSObject</a> </li> <li class="nav-group-task"> <a href="../Extensions/NSObject/LookupComparison.html">– LookupComparison</a> </li> <li class="nav-group-task"> <a href="../Extensions/NSObjectProtocol.html">NSObjectProtocol</a> </li> <li class="nav-group-task"> <a href="../Extensions/NSPredicate.html">NSPredicate</a> </li> <li class="nav-group-task"> <a href="../Extensions/NSString.html">NSString</a> </li> <li class="nav-group-task"> <a href="../Extensions/NotificationCenter.html">NotificationCenter</a> </li> <li class="nav-group-task"> <a href="../Extensions/NotificationCenter/Event.html">– Event</a> </li> <li class="nav-group-task"> <a href="../Extensions/Optional.html">Optional</a> </li> <li class="nav-group-task"> <a href="../Extensions/ProcessInfo.html">ProcessInfo</a> </li> <li class="nav-group-task"> <a href="../Extensions/ProcessInfo/Argument.html">– Argument</a> </li> <li class="nav-group-task"> <a href="../Extensions/ProcessInfo/Arguments.html">– Arguments</a> </li> <li class="nav-group-task"> <a href="../Extensions/Promise.html">Promise</a> </li> <li class="nav-group-task"> <a href="../Extensions/Promise/MultiplePromisesResponse.html">– MultiplePromisesResponse</a> </li> <li class="nav-group-task"> <a href="../Extensions/RandomAccessCollection.html">RandomAccessCollection</a> </li> <li class="nav-group-task"> <a href="../Extensions/RangeReplaceableCollection.html">RangeReplaceableCollection</a> </li> <li class="nav-group-task"> <a href="../Extensions/Sequence.html">Sequence</a> </li> <li class="nav-group-task"> <a href="../Extensions/SignedInteger.html">SignedInteger</a> </li> <li class="nav-group-task"> <a href="../Extensions/String.html">String</a> </li> <li class="nav-group-task"> <a href="../Extensions/String/TruncationPosition.html">– TruncationPosition</a> </li> <li class="nav-group-task"> <a href="../Extensions/StringProtocol.html">StringProtocol</a> </li> <li class="nav-group-task"> <a href="../Extensions/TimeInterval.html">TimeInterval</a> </li> <li class="nav-group-task"> <a href="../Extensions/TimeZone.html">TimeZone</a> </li> <li class="nav-group-task"> <a href="../Extensions/Timer.html">Timer</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIAlertController.html">UIAlertController</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIApplication.html">UIApplication</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIBarButtonItem.html">UIBarButtonItem</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIButton.html">UIButton</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIButton/Configuration.html">– Configuration</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIButton/DefaultAppearance.html">– DefaultAppearance</a> </li> <li class="nav-group-task"> <a href="../Extensions/UICollectionReusableView.html">UICollectionReusableView</a> </li> <li class="nav-group-task"> <a href="../Extensions/UICollectionView.html">UICollectionView</a> </li> <li class="nav-group-task"> <a href="../Extensions/UICollectionView/SupplementaryViewKind.html">– SupplementaryViewKind</a> </li> <li class="nav-group-task"> <a href="../Extensions/UICollectionViewCell.html">UICollectionViewCell</a> </li> <li class="nav-group-task"> <a href="../Extensions/UICollectionViewFlowLayout.html">UICollectionViewFlowLayout</a> </li> <li class="nav-group-task"> <a href="../Extensions/UICollectionViewLayout.html">UICollectionViewLayout</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIColor.html">UIColor</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIControl.html">UIControl</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIDatePicker.html">UIDatePicker</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIDevice.html">UIDevice</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIDevice/BiometryType.html">– BiometryType</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIDevice/Capability.html">– Capability</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIDevice/ModelType.html">– ModelType</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIEdgeInsets.html">UIEdgeInsets</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIFont.html">UIFont</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIFont/Trait.html">– Trait</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIFont/TextStyle.html">– TextStyle</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIFont/LoaderError.html">– LoaderError</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIFont/Typeface.html">– Typeface</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIGestureRecognizer.html">UIGestureRecognizer</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIImage.html">UIImage</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIImage/Fetcher.html">– Fetcher</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIImageView.html">UIImageView</a> </li> <li class="nav-group-task"> <a href="../Extensions/UILabel.html">UILabel</a> </li> <li class="nav-group-task"> <a href="../Extensions/UILayoutPriority.html">UILayoutPriority</a> </li> <li class="nav-group-task"> <a href="../Extensions/UINavigationBar.html">UINavigationBar</a> </li> <li class="nav-group-task"> <a href="../Extensions/UINavigationController.html">UINavigationController</a> </li> <li class="nav-group-task"> <a href="../Extensions/UINavigationController/AnimationStyle.html">– AnimationStyle</a> </li> <li class="nav-group-task"> <a href="../Extensions/UINib.html">UINib</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIPopoverPresentationController.html">UIPopoverPresentationController</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIRectCorner.html">UIRectCorner</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIRefreshControl.html">UIRefreshControl</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIResponder.html">UIResponder</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIScrollView.html">UIScrollView</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIScrollView/ScrollingDirection.html">– ScrollingDirection</a> </li> <li class="nav-group-task"> <a href="../Extensions/UISearchBar.html">UISearchBar</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIStackView.html">UIStackView</a> </li> <li class="nav-group-task"> <a href="../Extensions/UITabBar.html">UITabBar</a> </li> <li class="nav-group-task"> <a href="../Extensions/UITabBarController.html">UITabBarController</a> </li> <li class="nav-group-task"> <a href="../Extensions/UITabBarController/TabItem.html">– TabItem</a> </li> <li class="nav-group-task"> <a href="../Extensions/UITableView.html">UITableView</a> </li> <li class="nav-group-task"> <a href="../Extensions/UITableViewCell.html">UITableViewCell</a> </li> <li class="nav-group-task"> <a href="../Extensions/UITextField.html">UITextField</a> </li> <li class="nav-group-task"> <a href="../Extensions/UITextView.html">UITextView</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIToolbar.html">UIToolbar</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIView.html">UIView</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIViewController.html">UIViewController</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIViewController/DefaultAppearance.html">– DefaultAppearance</a> </li> <li class="nav-group-task"> <a href="../Extensions/UIWindow.html">UIWindow</a> </li> <li class="nav-group-task"> <a href="../Extensions/URL.html">URL</a> </li> <li class="nav-group-task"> <a href="../Extensions/URL/Scheme.html">– Scheme</a> </li> <li class="nav-group-task"> <a href="../Extensions/WKWebView.html">WKWebView</a> </li> </ul> </li> <li class="nav-group-name"> <a href="../Functions.html">Functions</a> <ul class="nav-group-tasks"> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore2neoiySbSDyxq_SgG_ADtSHRzr0_lF">!=(_:_:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore1poiySDyxq_GAC_ACSgtSHRzr0_lF">+(_:_:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore1poiySDyxq_GAC_ACtSHRzr0_lF">+(_:_:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore2peoiyySDyxq_Gz_ACtSHRzr0_lF">+=(_:_:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore2eeoiySbSDyxq_SgG_ADtSHRzr0_lF">==(_:_:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore2eeoiySbyXlSg_So6UIViewCtF">==(_:_:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore5alert5title7messageySS_SStF">alert(title:message:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore13collectionify_10parameters8callbackyyx_yq_Sgctc_SayxGySayq_Gctr0_lF">collectionify(_:parameters:callback:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore13collectionify_10parameters8callbackyyx_yq_ctc_SayxGySayq_Gctr0_lF">collectionify(_:parameters:callback:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore13collectionify_9splitSize10parameters8callbackyySayxG_ySayq_Gctc_SiAFyAGctr0_lF">collectionify(_:splitSize:parameters:callback:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore8debounce5delay5queue6actionyx_q_tc8Dispatch0F12TimeIntervalO_So012OS_dispatch_D0Cyx_q_tctr0_lF">debounce(delay:queue:action:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore8debounce5delay5queue6actionyxc8Dispatch0F12TimeIntervalO_So012OS_dispatch_D0CyxctlF">debounce(delay:queue:action:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore8debounce5delay5queue6actionyyc8Dispatch0F12TimeIntervalO_So012OS_dispatch_D0CyyctF">debounce(delay:queue:action:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore5delay2by_ySd_yyctF">delay(by:_:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore10fatalError7because8function4file4lines5NeverOAA11FatalReasonV_s12StaticStringVALSutF">fatalError(because:function:file:line:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore4join_8strategy10PromiseKit0D0CyAfAE24MultiplePromisesResponseVyx_GGSayAFySayxGGG_AA0fG18ResolutionStrategyOtlF">join(_:strategy:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore7measure5label5blockySS_yyyXEXEtF">measure(label:block:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore4name2ofSSyp_tF">name(of:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore4open3url4fromy10Foundation3URLV_So16UIViewControllerCtF">open(url:from:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore11orderedJoiny10PromiseKit0D0CySayxGGSayAGycGlF">orderedJoin(_:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore12promiseUntil9predicate4body10retryDelay15maxRetrySeconds10PromiseKit0K0CyxGSbxc_AJycSdSitlF">promiseUntil(predicate:body:retryDelay:maxRetrySeconds:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore1ryAA20ImageAssetIdentifierVADF">r(_:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore7swizzle_16originalSelector08swizzledD04kindyyXlXp_10ObjectiveC0D0VAhA17SwizzleMethodKindOtF">swizzle(_:originalSelector:swizzledSelector:kind:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore12synchronizedyxyXl_xyKXEtKlF">synchronized(_:_:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore8throttle5delay5queue6actionyx_q_tcSd_So012OS_dispatch_D0Cyx_q_tctr0_lF">throttle(delay:queue:action:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore8throttle5delay5queue6actionyxcSd_So012OS_dispatch_D0CyxctlF">throttle(delay:queue:action:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore8throttle5delay5queue6actionyycSd_So012OS_dispatch_D0CyyctF">throttle(delay:queue:action:)</a> </li> <li class="nav-group-task"> <a href="../Functions.html#/s:5Xcore11warnUnknown_4file8function4lineyyp_S2SSitF">warnUnknown(_:file:function:line:)</a> </li> </ul> </li> <li class="nav-group-name"> <a href="../Protocols.html">Protocols</a> <ul class="nav-group-tasks"> <li class="nav-group-task"> <a href="../Protocols/AnalyticsEvent.html">AnalyticsEvent</a> </li> <li class="nav-group-task"> <a href="../Protocols/AnalyticsProvider.html">AnalyticsProvider</a> </li> <li class="nav-group-task"> <a href="../Protocols/Appliable.html">Appliable</a> </li> <li class="nav-group-task"> <a href="../Protocols/CarouselAccessibilitySupport.html">CarouselAccessibilitySupport</a> </li> <li class="nav-group-task"> <a href="../Protocols/CarouselViewCellRepresentable.html">CarouselViewCellRepresentable</a> </li> <li class="nav-group-task"> <a href="../Protocols/CarouselViewModelRepresentable.html">CarouselViewModelRepresentable</a> </li> <li class="nav-group-task"> <a href="../Protocols/CollectionViewLayoutRepresentable.html">CollectionViewLayoutRepresentable</a> </li> <li class="nav-group-task"> <a href="../Protocols/Colorable.html">Colorable</a> </li> <li class="nav-group-task"> <a href="../Protocols/Configurable.html">Configurable</a> </li> <li class="nav-group-task"> <a href="../Protocols/ConfigurationInitializable.html">ConfigurationInitializable</a> </li> <li class="nav-group-task"> <a href="../Protocols/ControlTargetActionBlockRepresentable.html">ControlTargetActionBlockRepresentable</a> </li> <li class="nav-group-task"> <a href="../Protocols/CurrencySymbolsProvider.html">CurrencySymbolsProvider</a> </li> <li class="nav-group-task"> <a href="../Protocols/DimmableLayout.html">DimmableLayout</a> </li> <li class="nav-group-task"> <a href="../Protocols/DisplayTimestampPreferenceStorage.html">DisplayTimestampPreferenceStorage</a> </li> <li class="nav-group-task"> <a href="../Protocols/DrawerScreenContent.html">DrawerScreenContent</a> </li> <li class="nav-group-task"> <a href="../Protocols/EquatableByPointer.html">EquatableByPointer</a> </li> <li class="nav-group-task"> <a href="../Protocols/ExtensibleByAssociatedObject.html">ExtensibleByAssociatedObject</a> </li> <li class="nav-group-task"> <a href="../Protocols/FadeAnimatorBounceable.html">FadeAnimatorBounceable</a> </li> <li class="nav-group-task"> <a href="../Protocols/FeatureFlagProvider.html">FeatureFlagProvider</a> </li> <li class="nav-group-task"> <a href="../Protocols/ImageFetcher.html">ImageFetcher</a> </li> <li class="nav-group-task"> <a href="../Protocols/ImageRepresentable.html">ImageRepresentable</a> </li> <li class="nav-group-task"> <a href="../Protocols/ImageRepresentablePlugin.html">ImageRepresentablePlugin</a> </li> <li class="nav-group-task"> <a href="../Protocols/ImageTitleDisplayable.html">ImageTitleDisplayable</a> </li> <li class="nav-group-task"> <a href="../Protocols/ImageTransform.html">ImageTransform</a> </li> <li class="nav-group-task"> <a href="../Protocols/InitializableByEmptyConstructor.html">InitializableByEmptyConstructor</a> </li> <li class="nav-group-task"> <a href="../Protocols/InterstitialCompatibleViewController.html">InterstitialCompatibleViewController</a> </li> <li class="nav-group-task"> <a href="../Protocols/KeyboardObservable.html">KeyboardObservable</a> </li> <li class="nav-group-task"> <a href="../Protocols/ModallyPresentable.html">ModallyPresentable</a> </li> <li class="nav-group-task"> <a href="../Protocols/MutableAppliable.html">MutableAppliable</a> </li> <li class="nav-group-task"> <a href="../Protocols/NibInstantiable.html">NibInstantiable</a> </li> <li class="nav-group-task"> <a href="../Protocols/NotificationObject.html">NotificationObject</a> </li> <li class="nav-group-task"> <a href="../Protocols.html#/s:5Xcore16ObstructableViewP">ObstructableView</a> </li> <li class="nav-group-task"> <a href="../Protocols/OptionalType.html">OptionalType</a> </li> <li class="nav-group-task"> <a href="../Protocols/OptionsRepresentable.html">OptionsRepresentable</a> </li> <li class="nav-group-task"> <a href="../Protocols/PickerListModel.html">PickerListModel</a> </li> <li class="nav-group-task"> <a href="../Protocols/PickerModel.html">PickerModel</a> </li> <li class="nav-group-task"> <a href="../Protocols.html#/s:5Xcore29PopoverPresentationSourceViewP">PopoverPresentationSourceView</a> </li> <li class="nav-group-task"> <a href="../Protocols/PredicateRepresentable.html">PredicateRepresentable</a> </li> <li class="nav-group-task"> <a href="../Protocols/PresentationContext.html">PresentationContext</a> </li> <li class="nav-group-task"> <a href="../Protocols/ReorderTableViewDelegate.html">ReorderTableViewDelegate</a> </li> <li class="nav-group-task"> <a href="../Protocols/Reusable.html">Reusable</a> </li> <li class="nav-group-task"> <a href="../Protocols/RouteHandler.html">RouteHandler</a> </li> <li class="nav-group-task"> <a href="../Protocols/SiriShortcutConvertible.html">SiriShortcutConvertible</a> </li> <li class="nav-group-task"> <a href="../Protocols/SortOrderable.html">SortOrderable</a> </li> <li class="nav-group-task"> <a href="../Protocols/StoryboardInstantiable.html">StoryboardInstantiable</a> </li> <li class="nav-group-task"> <a href="../Protocols/StringRepresentable.html">StringRepresentable</a> </li> <li class="nav-group-task"> <a href="../Protocols/TargetActionBlockRepresentable.html">TargetActionBlockRepresentable</a> </li> <li class="nav-group-task"> <a href="../Protocols/TextAttributedTextRepresentable.html">TextAttributedTextRepresentable</a> </li> <li class="nav-group-task"> <a href="../Protocols/UserInfoContainer.html">UserInfoContainer</a> </li> <li class="nav-group-task"> <a href="../Protocols/ViewMaskable.html">ViewMaskable</a> </li> <li class="nav-group-task"> <a href="../Protocols/XCCollectionViewDelegateTileLayout.html">XCCollectionViewDelegateTileLayout</a> </li> <li class="nav-group-task"> <a href="../Protocols/XCCollectionViewFlowLayoutCustomizable.html">XCCollectionViewFlowLayoutCustomizable</a> </li> <li class="nav-group-task"> <a href="../Protocols/XCCollectionViewTileLayoutCustomizable.html">XCCollectionViewTileLayoutCustomizable</a> </li> <li class="nav-group-task"> <a href="../Protocols/XCComposedCollectionViewLayoutCompatible.html">XCComposedCollectionViewLayoutCompatible</a> </li> <li class="nav-group-task"> <a href="../Protocols/ZoomAnimatorDestination.html">ZoomAnimatorDestination</a> </li> <li class="nav-group-task"> <a href="../Protocols/ZoomAnimatorSource.html">ZoomAnimatorSource</a> </li> </ul> </li> <li class="nav-group-name"> <a href="../Structs.html">Structures</a> <ul class="nav-group-tasks"> <li class="nav-group-task"> <a href="../Structs/AdaptiveURL.html">AdaptiveURL</a> </li> <li class="nav-group-task"> <a href="../Structs/AlphaImageTransform.html">AlphaImageTransform</a> </li> <li class="nav-group-task"> <a href="../Structs/AnyConfigurable.html">AnyConfigurable</a> </li> <li class="nav-group-task"> <a href="../Structs/AnyEquatable.html">AnyEquatable</a> </li> <li class="nav-group-task"> <a href="../Structs/AppAnalyticsEvent.html">AppAnalyticsEvent</a> </li> <li class="nav-group-task"> <a href="../Structs/AppConstants.html">AppConstants</a> </li> <li class="nav-group-task"> <a href="../Structs/ArrayIterator.html">ArrayIterator</a> </li> <li class="nav-group-task"> <a href="../Structs/BackgroundImageTransform.html">BackgroundImageTransform</a> </li> <li class="nav-group-task"> <a href="../Structs/BlockImageTransform.html">BlockImageTransform</a> </li> <li class="nav-group-task"> <a href="../Structs/CellOptions.html">CellOptions</a> </li> <li class="nav-group-task"> <a href="../Structs/Clamping.html">Clamping</a> </li> <li class="nav-group-task"> <a href="../Structs/ColorizeImageTransform.html">ColorizeImageTransform</a> </li> <li class="nav-group-task"> <a href="../Structs/ColorizeImageTransform/Kind.html">– Kind</a> </li> <li class="nav-group-task"> <a href="../Structs/CompositeImageTransform.html">CompositeImageTransform</a> </li> <li class="nav-group-task"> <a href="../Structs/Configuration.html">Configuration</a> </li> <li class="nav-group-task"> <a href="../Structs/CornerRadiusImageTransform.html">CornerRadiusImageTransform</a> </li> <li class="nav-group-task"> <a href="../Structs/DataSource.html">DataSource</a> </li> <li class="nav-group-task"> <a href="../Structs/DelayedMutable.html">DelayedMutable</a> </li> <li class="nav-group-task"> <a href="../Structs/DynamicTableModel.html">DynamicTableModel</a> </li> <li class="nav-group-task"> <a href="../Structs/ElementPosition.html">ElementPosition</a> </li> <li class="nav-group-task"> <a href="../Structs/FatalReason.html">FatalReason</a> </li> <li class="nav-group-task"> <a href="../Structs/GradientImageTransform.html">GradientImageTransform</a> </li> <li class="nav-group-task"> <a href="../Structs/HighlightedAnimationOptions.html">HighlightedAnimationOptions</a> </li> <li class="nav-group-task"> <a href="../Structs/Identifier.html">Identifier</a> </li> <li class="nav-group-task"> <a href="../Structs/ImageAssetIdentifier.html">ImageAssetIdentifier</a> </li> <li class="nav-group-task"> <a href="../Structs/IndexPathCache.html">IndexPathCache</a> </li> <li class="nav-group-task"> <a href="../Structs/JSONHelpers.html">JSONHelpers</a> </li> <li class="nav-group-task"> <a href="../Structs/KeyboardPayload.html">KeyboardPayload</a> </li> <li class="nav-group-task"> <a href="../Structs/LazyReset.html">LazyReset</a> </li> <li class="nav-group-task"> <a href="../Structs/MetaStaticMember.html">MetaStaticMember</a> </li> <li class="nav-group-task"> <a href="../Structs/Percentage.html">Percentage</a> </li> <li class="nav-group-task"> <a href="../Structs/PresentationContextKind.html">PresentationContextKind</a> </li> <li class="nav-group-task"> <a href="../Structs/PrintAnalyticsProvider.html">PrintAnalyticsProvider</a> </li> <li class="nav-group-task"> <a href="../Structs/ResizeImageTransform.html">ResizeImageTransform</a> </li> <li class="nav-group-task"> <a href="../Structs/ResizeImageTransform/ScalingMode.html">– ScalingMode</a> </li> <li class="nav-group-task"> <a href="../Structs/Response.html">Response</a> </li> <li class="nav-group-task"> <a href="../Structs/SafeAreaLayoutGuideOptions.html">SafeAreaLayoutGuideOptions</a> </li> <li class="nav-group-task"> <a href="../Structs/Section.html">Section</a> </li> <li class="nav-group-task"> <a href="../Structs/Shadow.html">Shadow</a> </li> <li class="nav-group-task"> <a href="../Structs/StringConverter.html">StringConverter</a> </li> <li class="nav-group-task"> <a href="../Structs/StringsFile.html">StringsFile</a> </li> <li class="nav-group-task"> <a href="../Structs/Theme.html">Theme</a> </li> <li class="nav-group-task"> <a href="../Structs/TintColorImageTransform.html">TintColorImageTransform</a> </li> <li class="nav-group-task"> <a href="../Structs/Trimmed.html">Trimmed</a> </li> <li class="nav-group-task"> <a href="../Structs/UserDefault.html">UserDefault</a> </li> <li class="nav-group-task"> <a href="../Structs/UserInfoKey.html">UserInfoKey</a> </li> <li class="nav-group-task"> <a href="../Structs/ValidationRule.html">ValidationRule</a> </li> <li class="nav-group-task"> <a href="../Structs/Version.html">Version</a> </li> <li class="nav-group-task"> <a href="../Structs/WebViewScripts.html">WebViewScripts</a> </li> <li class="nav-group-task"> <a href="../Structs/XCComposedCollectionViewLayout.html">XCComposedCollectionViewLayout</a> </li> </ul> </li> <li class="nav-group-name"> <a href="../Typealiases.html">Type Aliases</a> <ul class="nav-group-tasks"> <li class="nav-group-task"> <a href="../Typealiases.html#/s:5Xcore25CarouselAccessibilityItema">CarouselAccessibilityItem</a> </li> <li class="nav-group-task"> <a href="../Typealiases.html#/s:5Xcore20CarouselViewCellTypea">CarouselViewCellType</a> </li> </ul> </li> </ul> </nav> <article class="main-content"> <section> <section class="section"> <h1>SwizzleMethodKind</h1> <div class="declaration"> <div class="language"> <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">SwizzleMethodKind</span></code></pre> </div> </div> <p>Undocumented</p> </section> <section class="section task-group-section"> <div class="task-group"> <ul> <li class="item"> <div> <code> <a name="/s:5Xcore17SwizzleMethodKindO5classyA2CmF"></a> <a name="//apple_ref/swift/Element/class" class="dashAnchor"></a> <a class="token" href="#/s:5Xcore17SwizzleMethodKindO5classyA2CmF">class</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>Undocumented</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="k">case</span> <span class="p">`</span><span class="nv">class</span><span class="p">`</span></code></pre> </div> </div> <div class="slightly-smaller"> <a href="https://github.com/zmian/xcore.swift/blob/master/Sources/Cocoa/Classes/Swizzle/Swizzle.swift#L">Show on GitHub</a> </div> </section> </div> </li> <li class="item"> <div> <code> <a name="/s:5Xcore17SwizzleMethodKindO8instanceyA2CmF"></a> <a name="//apple_ref/swift/Element/instance" class="dashAnchor"></a> <a class="token" href="#/s:5Xcore17SwizzleMethodKindO8instanceyA2CmF">instance</a> </code> </div> <div class="height-container"> <div class="pointer-container"></div> <section class="section"> <div class="pointer"></div> <div class="abstract"> <p>Undocumented</p> </div> <div class="declaration"> <h4>Declaration</h4> <div class="language"> <p class="aside-title">Swift</p> <pre class="highlight swift"><code><span class="k">case</span> <span class="n">instance</span></code></pre> </div> </div> <div class="slightly-smaller"> <a href="https://github.com/zmian/xcore.swift/blob/master/Sources/Cocoa/Classes/Swizzle/Swizzle.swift#L">Show on GitHub</a> </div> </section> </div> </li> </ul> </div> </section> </section> <section id="footer"> <p>&copy; 2019 <a class="link" href="https://zmian.me" target="_blank" rel="external">Zeeshan</a>. All rights reserved. (Last updated: 2019-11-28)</p> <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.12.0</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p> </section> </article> </div> </body> </div> </html>
zmian/xcore.swift
docs/docsets/Xcore.docset/Contents/Resources/Documents/Enums/SwizzleMethodKind.html
HTML
mit
69,296
<?php include ROOT_PATH.'/application/view/layout/header.view.php';?> <style> .container { width: 100%; } .bs-docs-masthead { padding: 80px 0; } .bs-docs-header, .bs-docs-masthead { position: relative; padding: 30px 15px; color: #cdbfe3; text-align: center; text-shadow: 0 1px 0 rgba(0,0,0,.1); background-color: #3190DF; background-image: -webkit-gradient(linear,left top,left bottom,from(#3190DF),to(#3190DF)); background-image: -webkit-linear-gradient(top,#3190DF 0,#3190DF 100%); background-image: -o-linear-gradient(top,#3190DF 0,#3190DF 100%); background-image: linear-gradient(to bottom,#3190DF 0,#3190DF 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='##3190DF', endColorstr='##3190DF', GradientType=0); background-repeat: repeat-x; } .bs-docs-masthead .lead { font-size: 24px; } .bs-docs-masthead .lead { margin: 0 auto 30px; font-size: 30px; color: #fff; } .bs-docs-masthead .btn { padding: 15px 30px; font-size: 20px; } .btn-outline-inverse { color: #fff; background-color: transparent; border-color: #cdbfe3; } .btn-group-lg>.btn, .btn-lg { padding: 10px 16px; font-size: 18px; line-height: 1.3333333; border-radius: 6px; } .content-container { height:600px; } </style> <div class="content-container"> <main class="bs-docs-masthead" id="content" role="main"> <div class="container"> <p class="lead"><?php echo htmlspecialchars($title);?><p> <p class="lead">来自于WFE团队的一款PHP敏捷开发框架</p> <p class="lead">2015年内正式发布</p> <p class="lead"> <a href="/framework/download" class="btn btn-outline-inverse btn-lg">下载 WFE-PHP-FRAMEWORK&nbsp;测试版</a> </p> <p class="version">当前版本: v0.1&nbsp;beta | 文档更新于:2015-02-24</p> <p class="version">beta版本不建议直接用于生产环境</p> </div> </main> </div> <!--a href="<?php echo $this->url('book', 'index');?>">手册</a--> <?php include ROOT_PATH.'/application/view/layout/footer.view.php';?>
QQWFE/wfe-php-framework
application/view/Index/show.php
PHP
mit
2,061
var config = require('./sModule.config.js'); var fs = require('fs'); function sModule(){ this.source = {}; this.source.length = 0; } var _proto = sModule.prototype; // 检查输入输出路径是否正常,并读取文件,保存为特定对象 _proto.checkIO = function () { console.log('Checkout IO !'); var _this = this; var dirPath = config.appConfig.input.path; fs.readdir(dirPath,function (err, files) { if (err){ throw err; } else { files.forEach(function (file) { fs.readFile(dirPath+ '/' +file, 'utf-8', function (err, data) { if (err) { throw err; } var indexKey = _this.source.length; var fileData = { // 可能还要补充其它的数据 data: data }; _this.source[String(indexKey)] = fileData; _this.source.length++; }); }); } }); return this; }; // 初始化打包工具实例,完成配置和一些中间状态的生成 _proto.initInstance = function () { console.log('Init instance !'); console.log(JSON.stringify(this.source)); return this; }; // 处理输入文件,生成在浏览器环境中模拟node的代码,并和模块拼装在一起 _proto.compileApp = function () { console.log('Compile APP !'); return this; }; // 后处理,按照配置文件输出,生成打包后的App _proto.generateApp = function () { console.log('Generate App !'); return this; }; new sModule(config) .checkIO() .initInstance() .compileApp() .generateApp();
ShengGuangzhi/SummerTree
demo/client/hack/sModule/sModule.js
JavaScript
mit
1,756
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>Boost.uBlas: matrix_assign.hpp Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript"> $(document).ready(initResizable); </script> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body onload='searchBox.OnSelectItem(0);'> <!-- Generated by Doxygen 1.7.3 --> <script type="text/javascript"><!-- var searchBox = new SearchBox("searchBox", "search",false,'Search'); --></script> <script type="text/javascript"> function hasClass(ele,cls) { return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)')); } function addClass(ele,cls) { if (!this.hasClass(ele,cls)) ele.className += " "+cls; } function removeClass(ele,cls) { if (hasClass(ele,cls)) { var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)'); ele.className=ele.className.replace(reg,' '); } } function toggleVisibility(linkObj) { var base = linkObj.getAttribute('id'); var summary = document.getElementById(base + '-summary'); var content = document.getElementById(base + '-content'); var trigger = document.getElementById(base + '-trigger'); if ( hasClass(linkObj,'closed') ) { summary.style.display = 'none'; content.style.display = 'block'; trigger.src = 'open.png'; removeClass(linkObj,'closed'); addClass(linkObj,'opened'); } else if ( hasClass(linkObj,'opened') ) { summary.style.display = 'block'; content.style.display = 'none'; trigger.src = 'closed.png'; removeClass(linkObj,'opened'); addClass(linkObj,'closed'); } return false; } </script> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectlogo"><img alt="Logo" src="logo boost ublas.png"></td> <td style="padding-left: 0.5em;"> <div id="projectname">Boost.uBlas&#160;<span id="projectnumber">1.49</span></div> <div id="projectbrief">Linear Algebra in C++: matrices, vectors and numeric algorithms</div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li id="searchli"> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File&#160;List</span></a></li> <li><a href="globals.html"><span>File&#160;Members</span></a></li> </ul> </div> </div> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> initNavTree('a00620.html',''); </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <h1>matrix_assign.hpp</h1> </div> </div> <div class="contents"> <a href="a00620.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//</span> <a name="l00002"></a>00002 <span class="comment">// Copyright (c) 2000-2002</span> <a name="l00003"></a>00003 <span class="comment">// Joerg Walter, Mathias Koch</span> <a name="l00004"></a>00004 <span class="comment">//</span> <a name="l00005"></a>00005 <span class="comment">// Distributed under the Boost Software License, Version 1.0. (See</span> <a name="l00006"></a>00006 <span class="comment">// accompanying file LICENSE_1_0.txt or copy at</span> <a name="l00007"></a>00007 <span class="comment">// http://www.boost.org/LICENSE_1_0.txt)</span> <a name="l00008"></a>00008 <span class="comment">//</span> <a name="l00009"></a>00009 <span class="comment">// The authors gratefully acknowledge the support of</span> <a name="l00010"></a>00010 <span class="comment">// GeNeSys mbH &amp; Co. KG in producing this work.</span> <a name="l00011"></a>00011 <span class="comment">//</span> <a name="l00012"></a>00012 <a name="l00013"></a>00013 <span class="preprocessor">#ifndef _BOOST_UBLAS_MATRIX_ASSIGN_</span> <a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define _BOOST_UBLAS_MATRIX_ASSIGN_</span> <a name="l00015"></a>00015 <span class="preprocessor"></span> <a name="l00016"></a>00016 <span class="preprocessor">#include &lt;boost/numeric/ublas/traits.hpp&gt;</span> <a name="l00017"></a>00017 <span class="comment">// Required for make_conformant storage</span> <a name="l00018"></a>00018 <span class="preprocessor">#include &lt;vector&gt;</span> <a name="l00019"></a>00019 <a name="l00020"></a>00020 <span class="comment">// Iterators based on ideas of Jeremy Siek</span> <a name="l00021"></a>00021 <a name="l00022"></a>00022 <span class="keyword">namespace </span>boost { <span class="keyword">namespace </span>numeric { <span class="keyword">namespace </span>ublas { <a name="l00023"></a>00023 <span class="keyword">namespace </span>detail { <a name="l00024"></a>00024 <a name="l00025"></a>00025 <span class="comment">// Weak equality check - useful to compare equality two arbitary matrix expression results.</span> <a name="l00026"></a>00026 <span class="comment">// Since the actual expressions are unknown, we check for and arbitary error bound</span> <a name="l00027"></a>00027 <span class="comment">// on the relative error.</span> <a name="l00028"></a>00028 <span class="comment">// For a linear expression the infinity norm makes sense as we do not know how the elements will be</span> <a name="l00029"></a>00029 <span class="comment">// combined in the expression. False positive results are inevitable for arbirary expressions!</span> <a name="l00030"></a>00030 <span class="keyword">template</span>&lt;<span class="keyword">class</span> E1, <span class="keyword">class</span> E2, <span class="keyword">class</span> S&gt; <a name="l00031"></a>00031 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a> <a name="l00032"></a><a class="code" href="a00653.html#a1b4ae804e82da2f53176751b120b2005">00032</a> <span class="keywordtype">bool</span> <a class="code" href="a00653.html#a1b4ae804e82da2f53176751b120b2005">equals</a> (<span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E1&gt;</a> &amp;e1, <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E2&gt;</a> &amp;e2, S epsilon, S min_norm) { <a name="l00033"></a>00033 <span class="keywordflow">return</span> <a class="code" href="a00595.html#a4ec479acd5e441d5b61ce20c8d13e8ac">norm_inf</a> (e1 - e2) &lt; epsilon * <a name="l00034"></a>00034 std::max&lt;S&gt; (std::max&lt;S&gt; (<a class="code" href="a00595.html#a4ec479acd5e441d5b61ce20c8d13e8ac">norm_inf</a> (e1), <a class="code" href="a00595.html#a4ec479acd5e441d5b61ce20c8d13e8ac">norm_inf</a> (e2)), min_norm); <a name="l00035"></a>00035 } <a name="l00036"></a>00036 <a name="l00037"></a>00037 <span class="keyword">template</span>&lt;<span class="keyword">class</span> E1, <span class="keyword">class</span> E2&gt; <a name="l00038"></a>00038 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a> <a name="l00039"></a><a class="code" href="a00653.html#a43a1eab42456d66c868af16c340e8246">00039</a> <span class="keywordtype">bool</span> <a class="code" href="a00653.html#a43a1eab42456d66c868af16c340e8246">expression_type_check</a> (<span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E1&gt;</a> &amp;e1, <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E2&gt;</a> &amp;e2) { <a name="l00040"></a>00040 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="a00465.html">type_traits</a>&lt;<span class="keyword">typename</span> <a class="code" href="a00364.html">promote_traits</a>&lt;<span class="keyword">typename</span> E1::value_type, <a name="l00041"></a>00041 <span class="keyword">typename</span> E2::value_type&gt;::promote_type&gt;::real_type real_type; <a name="l00042"></a>00042 <span class="keywordflow">return</span> <a class="code" href="a00653.html#a1b4ae804e82da2f53176751b120b2005">equals</a> (e1, e2, <a class="code" href="a00603.html#afa88d2d3bb1c8ca6365f7d0953a067d8">BOOST_UBLAS_TYPE_CHECK_EPSILON</a>, <a class="code" href="a00603.html#ada9c3113ffcce841cb3d16e3cf8c60c9">BOOST_UBLAS_TYPE_CHECK_MIN</a>); <a name="l00043"></a>00043 } <a name="l00044"></a>00044 <a name="l00045"></a>00045 <a name="l00046"></a>00046 <span class="keyword">template</span>&lt;<span class="keyword">class</span> M, <span class="keyword">class</span> E, <span class="keyword">class</span> R&gt; <a name="l00047"></a>00047 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l00048"></a><a class="code" href="a00653.html#af86e444b5972e9b0ee8afbbcd533bd7a">00048</a> <span class="keywordtype">void</span> <a class="code" href="a00653.html#af86e444b5972e9b0ee8afbbcd533bd7a">make_conformant</a> (M &amp;m, <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E&gt;</a> &amp;e, <a class="code" href="a00369.html">row_major_tag</a>, R) { <a name="l00049"></a>00049 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (m.size1 () == e ().size1 (), <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00050"></a>00050 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (m.size2 () == e ().size2 (), <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00051"></a>00051 <span class="keyword">typedef</span> R conformant_restrict_type; <a name="l00052"></a>00052 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::size_type size_type; <a name="l00053"></a>00053 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::difference_type difference_type; <a name="l00054"></a>00054 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::value_type value_type; <a name="l00055"></a>00055 <span class="comment">// FIXME unbounded_array with push_back maybe better</span> <a name="l00056"></a>00056 std::vector&lt;std::pair&lt;size_type, size_type&gt; &gt; <a class="code" href="a00655.html#a483aef59b0403ecbfbcab4d0598907d2">index</a>; <a name="l00057"></a>00057 <span class="keyword">typename</span> M::iterator1 it1 (m.begin1 ()); <a name="l00058"></a>00058 <span class="keyword">typename</span> M::iterator1 it1_end (m.end1 ()); <a name="l00059"></a>00059 <span class="keyword">typename</span> E::const_iterator1 it1e (e ().<a class="code" href="a00595.html#a006ba58a3f4c88d8e8e76e44db481757" title="An object generator that returns a begin1 manipulator.">begin1</a> ()); <a name="l00060"></a>00060 <span class="keyword">typename</span> E::const_iterator1 it1e_end (e ().end1 ()); <a name="l00061"></a>00061 <span class="keywordflow">while</span> (it1 != it1_end &amp;&amp; it1e != it1e_end) { <a name="l00062"></a>00062 difference_type compare = it1.index1 () - it1e.index1 (); <a name="l00063"></a>00063 <span class="keywordflow">if</span> (compare == 0) { <a name="l00064"></a>00064 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l00065"></a>00065 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (it1.begin ()); <a name="l00066"></a>00066 <span class="keyword">typename</span> M::iterator2 it2_end (it1.end ()); <a name="l00067"></a>00067 <span class="keyword">typename</span> E::const_iterator2 it2e (it1e.begin ()); <a name="l00068"></a>00068 <span class="keyword">typename</span> E::const_iterator2 it2e_end (it1e.end ()); <a name="l00069"></a>00069 <span class="preprocessor">#else</span> <a name="l00070"></a>00070 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1, iterator1_tag ())); <a name="l00071"></a>00071 <span class="keyword">typename</span> M::iterator2 it2_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it1, iterator1_tag ())); <a name="l00072"></a>00072 <span class="keyword">typename</span> E::const_iterator2 it2e (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1e, iterator1_tag ())); <a name="l00073"></a>00073 <span class="keyword">typename</span> E::const_iterator2 it2e_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it1e, iterator1_tag ())); <a name="l00074"></a>00074 <span class="preprocessor">#endif</span> <a name="l00075"></a>00075 <span class="preprocessor"></span> <span class="keywordflow">if</span> (it2 != it2_end &amp;&amp; it2e != it2e_end) { <a name="l00076"></a>00076 size_type it2_index = it2.index2 (), it2e_index = it2e.index2 (); <a name="l00077"></a>00077 <span class="keywordflow">while</span> (<span class="keyword">true</span>) { <a name="l00078"></a>00078 difference_type compare = it2_index - it2e_index; <a name="l00079"></a>00079 <span class="keywordflow">if</span> (compare == 0) { <a name="l00080"></a>00080 ++ it2, ++ it2e; <a name="l00081"></a>00081 <span class="keywordflow">if</span> (it2 != it2_end &amp;&amp; it2e != it2e_end) { <a name="l00082"></a>00082 it2_index = it2.index2 (); <a name="l00083"></a>00083 it2e_index = it2e.index2 (); <a name="l00084"></a>00084 } <span class="keywordflow">else</span> <a name="l00085"></a>00085 <span class="keywordflow">break</span>; <a name="l00086"></a>00086 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (compare &lt; 0) { <a name="l00087"></a>00087 <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it2, it2_end, - compare); <a name="l00088"></a>00088 <span class="keywordflow">if</span> (it2 != it2_end) <a name="l00089"></a>00089 it2_index = it2.index2 (); <a name="l00090"></a>00090 <span class="keywordflow">else</span> <a name="l00091"></a>00091 <span class="keywordflow">break</span>; <a name="l00092"></a>00092 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (compare &gt; 0) { <a name="l00093"></a>00093 <span class="keywordflow">if</span> (conformant_restrict_type::other (it2e.index1 (), it2e.index2 ())) <a name="l00094"></a>00094 <span class="keywordflow">if</span> (static_cast&lt;value_type&gt;(*it2e) != value_type<span class="comment">/*zero*/</span>()) <a name="l00095"></a>00095 index.push_back (std::pair&lt;size_type, size_type&gt; (it2e.index1 (), it2e.index2 ())); <a name="l00096"></a>00096 ++ it2e; <a name="l00097"></a>00097 <span class="keywordflow">if</span> (it2e != it2e_end) <a name="l00098"></a>00098 it2e_index = it2e.index2 (); <a name="l00099"></a>00099 <span class="keywordflow">else</span> <a name="l00100"></a>00100 <span class="keywordflow">break</span>; <a name="l00101"></a>00101 } <a name="l00102"></a>00102 } <a name="l00103"></a>00103 } <a name="l00104"></a>00104 <span class="keywordflow">while</span> (it2e != it2e_end) { <a name="l00105"></a>00105 <span class="keywordflow">if</span> (conformant_restrict_type::other (it2e.index1 (), it2e.index2 ())) <a name="l00106"></a>00106 <span class="keywordflow">if</span> (static_cast&lt;value_type&gt;(*it2e) != value_type<span class="comment">/*zero*/</span>()) <a name="l00107"></a>00107 index.push_back (std::pair&lt;size_type, size_type&gt; (it2e.index1 (), it2e.index2 ())); <a name="l00108"></a>00108 ++ it2e; <a name="l00109"></a>00109 } <a name="l00110"></a>00110 ++ it1, ++ it1e; <a name="l00111"></a>00111 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (compare &lt; 0) { <a name="l00112"></a>00112 <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it1, it1_end, - compare); <a name="l00113"></a>00113 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (compare &gt; 0) { <a name="l00114"></a>00114 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l00115"></a>00115 <span class="preprocessor"></span> <span class="keyword">typename</span> E::const_iterator2 it2e (it1e.begin ()); <a name="l00116"></a>00116 <span class="keyword">typename</span> E::const_iterator2 it2e_end (it1e.end ()); <a name="l00117"></a>00117 <span class="preprocessor">#else</span> <a name="l00118"></a>00118 <span class="preprocessor"></span> <span class="keyword">typename</span> E::const_iterator2 it2e (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1e, iterator1_tag ())); <a name="l00119"></a>00119 <span class="keyword">typename</span> E::const_iterator2 it2e_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it1e, iterator1_tag ())); <a name="l00120"></a>00120 <span class="preprocessor">#endif</span> <a name="l00121"></a>00121 <span class="preprocessor"></span> <span class="keywordflow">while</span> (it2e != it2e_end) { <a name="l00122"></a>00122 <span class="keywordflow">if</span> (conformant_restrict_type::other (it2e.index1 (), it2e.index2 ())) <a name="l00123"></a>00123 <span class="keywordflow">if</span> (static_cast&lt;value_type&gt;(*it2e) != value_type<span class="comment">/*zero*/</span>()) <a name="l00124"></a>00124 index.push_back (std::pair&lt;size_type, size_type&gt; (it2e.index1 (), it2e.index2 ())); <a name="l00125"></a>00125 ++ it2e; <a name="l00126"></a>00126 } <a name="l00127"></a>00127 ++ it1e; <a name="l00128"></a>00128 } <a name="l00129"></a>00129 } <a name="l00130"></a>00130 <span class="keywordflow">while</span> (it1e != it1e_end) { <a name="l00131"></a>00131 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l00132"></a>00132 <span class="preprocessor"></span> <span class="keyword">typename</span> E::const_iterator2 it2e (it1e.begin ()); <a name="l00133"></a>00133 <span class="keyword">typename</span> E::const_iterator2 it2e_end (it1e.end ()); <a name="l00134"></a>00134 <span class="preprocessor">#else</span> <a name="l00135"></a>00135 <span class="preprocessor"></span> <span class="keyword">typename</span> E::const_iterator2 it2e (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1e, iterator1_tag ())); <a name="l00136"></a>00136 <span class="keyword">typename</span> E::const_iterator2 it2e_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it1e, iterator1_tag ())); <a name="l00137"></a>00137 <span class="preprocessor">#endif</span> <a name="l00138"></a>00138 <span class="preprocessor"></span> <span class="keywordflow">while</span> (it2e != it2e_end) { <a name="l00139"></a>00139 <span class="keywordflow">if</span> (conformant_restrict_type::other (it2e.index1 (), it2e.index2 ())) <a name="l00140"></a>00140 <span class="keywordflow">if</span> (static_cast&lt;value_type&gt;(*it2e) != value_type<span class="comment">/*zero*/</span>()) <a name="l00141"></a>00141 index.push_back (std::pair&lt;size_type, size_type&gt; (it2e.index1 (), it2e.index2 ())); <a name="l00142"></a>00142 ++ it2e; <a name="l00143"></a>00143 } <a name="l00144"></a>00144 ++ it1e; <a name="l00145"></a>00145 } <a name="l00146"></a>00146 <span class="comment">// ISSUE proxies require insert_element</span> <a name="l00147"></a>00147 <span class="keywordflow">for</span> (size_type k = 0; k &lt; index.size (); ++ k) <a name="l00148"></a>00148 m (index [k].first, index [k].second) = value_type<span class="comment">/*zero*/</span>(); <a name="l00149"></a>00149 } <a name="l00150"></a>00150 <span class="keyword">template</span>&lt;<span class="keyword">class</span> M, <span class="keyword">class</span> E, <span class="keyword">class</span> R&gt; <a name="l00151"></a>00151 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l00152"></a><a class="code" href="a00653.html#ab8433b8bfc781c9956121be220fde676">00152</a> <span class="keywordtype">void</span> <a class="code" href="a00653.html#af86e444b5972e9b0ee8afbbcd533bd7a">make_conformant</a> (M &amp;m, <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E&gt;</a> &amp;e, <a class="code" href="a00052.html">column_major_tag</a>, R) { <a name="l00153"></a>00153 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (m.size1 () == e ().size1 (), <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00154"></a>00154 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (m.size2 () == e ().size2 (), <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00155"></a>00155 <span class="keyword">typedef</span> R conformant_restrict_type; <a name="l00156"></a>00156 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::size_type size_type; <a name="l00157"></a>00157 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::difference_type difference_type; <a name="l00158"></a>00158 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::value_type value_type; <a name="l00159"></a>00159 std::vector&lt;std::pair&lt;size_type, size_type&gt; &gt; <a class="code" href="a00655.html#a483aef59b0403ecbfbcab4d0598907d2">index</a>; <a name="l00160"></a>00160 <span class="keyword">typename</span> M::iterator2 it2 (m.begin2 ()); <a name="l00161"></a>00161 <span class="keyword">typename</span> M::iterator2 it2_end (m.end2 ()); <a name="l00162"></a>00162 <span class="keyword">typename</span> E::const_iterator2 it2e (e ().<a class="code" href="a00595.html#a0a5c2ce4e11de4e7ea5ccd122073052c" title="An object generator that returns a begin2 manipulator to be used to traverse a matrix.">begin2</a> ()); <a name="l00163"></a>00163 <span class="keyword">typename</span> E::const_iterator2 it2e_end (e ().end2 ()); <a name="l00164"></a>00164 <span class="keywordflow">while</span> (it2 != it2_end &amp;&amp; it2e != it2e_end) { <a name="l00165"></a>00165 difference_type compare = it2.index2 () - it2e.index2 (); <a name="l00166"></a>00166 <span class="keywordflow">if</span> (compare == 0) { <a name="l00167"></a>00167 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l00168"></a>00168 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (it2.begin ()); <a name="l00169"></a>00169 <span class="keyword">typename</span> M::iterator1 it1_end (it2.end ()); <a name="l00170"></a>00170 <span class="keyword">typename</span> E::const_iterator1 it1e (it2e.begin ()); <a name="l00171"></a>00171 <span class="keyword">typename</span> E::const_iterator1 it1e_end (it2e.end ()); <a name="l00172"></a>00172 <span class="preprocessor">#else</span> <a name="l00173"></a>00173 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2, iterator2_tag ())); <a name="l00174"></a>00174 <span class="keyword">typename</span> M::iterator1 it1_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it2, iterator2_tag ())); <a name="l00175"></a>00175 <span class="keyword">typename</span> E::const_iterator1 it1e (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2e, iterator2_tag ())); <a name="l00176"></a>00176 <span class="keyword">typename</span> E::const_iterator1 it1e_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it2e, iterator2_tag ())); <a name="l00177"></a>00177 <span class="preprocessor">#endif</span> <a name="l00178"></a>00178 <span class="preprocessor"></span> <span class="keywordflow">if</span> (it1 != it1_end &amp;&amp; it1e != it1e_end) { <a name="l00179"></a>00179 size_type it1_index = it1.index1 (), it1e_index = it1e.index1 (); <a name="l00180"></a>00180 <span class="keywordflow">while</span> (<span class="keyword">true</span>) { <a name="l00181"></a>00181 difference_type compare = it1_index - it1e_index; <a name="l00182"></a>00182 <span class="keywordflow">if</span> (compare == 0) { <a name="l00183"></a>00183 ++ it1, ++ it1e; <a name="l00184"></a>00184 <span class="keywordflow">if</span> (it1 != it1_end &amp;&amp; it1e != it1e_end) { <a name="l00185"></a>00185 it1_index = it1.index1 (); <a name="l00186"></a>00186 it1e_index = it1e.index1 (); <a name="l00187"></a>00187 } <span class="keywordflow">else</span> <a name="l00188"></a>00188 <span class="keywordflow">break</span>; <a name="l00189"></a>00189 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (compare &lt; 0) { <a name="l00190"></a>00190 <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it1, it1_end, - compare); <a name="l00191"></a>00191 <span class="keywordflow">if</span> (it1 != it1_end) <a name="l00192"></a>00192 it1_index = it1.index1 (); <a name="l00193"></a>00193 <span class="keywordflow">else</span> <a name="l00194"></a>00194 <span class="keywordflow">break</span>; <a name="l00195"></a>00195 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (compare &gt; 0) { <a name="l00196"></a>00196 <span class="keywordflow">if</span> (conformant_restrict_type::other (it1e.index1 (), it1e.index2 ())) <a name="l00197"></a>00197 <span class="keywordflow">if</span> (static_cast&lt;value_type&gt;(*it1e) != value_type<span class="comment">/*zero*/</span>()) <a name="l00198"></a>00198 index.push_back (std::pair&lt;size_type, size_type&gt; (it1e.index1 (), it1e.index2 ())); <a name="l00199"></a>00199 ++ it1e; <a name="l00200"></a>00200 <span class="keywordflow">if</span> (it1e != it1e_end) <a name="l00201"></a>00201 it1e_index = it1e.index1 (); <a name="l00202"></a>00202 <span class="keywordflow">else</span> <a name="l00203"></a>00203 <span class="keywordflow">break</span>; <a name="l00204"></a>00204 } <a name="l00205"></a>00205 } <a name="l00206"></a>00206 } <a name="l00207"></a>00207 <span class="keywordflow">while</span> (it1e != it1e_end) { <a name="l00208"></a>00208 <span class="keywordflow">if</span> (conformant_restrict_type::other (it1e.index1 (), it1e.index2 ())) <a name="l00209"></a>00209 <span class="keywordflow">if</span> (static_cast&lt;value_type&gt;(*it1e) != value_type<span class="comment">/*zero*/</span>()) <a name="l00210"></a>00210 index.push_back (std::pair&lt;size_type, size_type&gt; (it1e.index1 (), it1e.index2 ())); <a name="l00211"></a>00211 ++ it1e; <a name="l00212"></a>00212 } <a name="l00213"></a>00213 ++ it2, ++ it2e; <a name="l00214"></a>00214 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (compare &lt; 0) { <a name="l00215"></a>00215 <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it2, it2_end, - compare); <a name="l00216"></a>00216 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (compare &gt; 0) { <a name="l00217"></a>00217 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l00218"></a>00218 <span class="preprocessor"></span> <span class="keyword">typename</span> E::const_iterator1 it1e (it2e.begin ()); <a name="l00219"></a>00219 <span class="keyword">typename</span> E::const_iterator1 it1e_end (it2e.end ()); <a name="l00220"></a>00220 <span class="preprocessor">#else</span> <a name="l00221"></a>00221 <span class="preprocessor"></span> <span class="keyword">typename</span> E::const_iterator1 it1e (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2e, iterator2_tag ())); <a name="l00222"></a>00222 <span class="keyword">typename</span> E::const_iterator1 it1e_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it2e, iterator2_tag ())); <a name="l00223"></a>00223 <span class="preprocessor">#endif</span> <a name="l00224"></a>00224 <span class="preprocessor"></span> <span class="keywordflow">while</span> (it1e != it1e_end) { <a name="l00225"></a>00225 <span class="keywordflow">if</span> (conformant_restrict_type::other (it1e.index1 (), it1e.index2 ())) <a name="l00226"></a>00226 <span class="keywordflow">if</span> (static_cast&lt;value_type&gt;(*it1e) != value_type<span class="comment">/*zero*/</span>()) <a name="l00227"></a>00227 index.push_back (std::pair&lt;size_type, size_type&gt; (it1e.index1 (), it1e.index2 ())); <a name="l00228"></a>00228 ++ it1e; <a name="l00229"></a>00229 } <a name="l00230"></a>00230 ++ it2e; <a name="l00231"></a>00231 } <a name="l00232"></a>00232 } <a name="l00233"></a>00233 <span class="keywordflow">while</span> (it2e != it2e_end) { <a name="l00234"></a>00234 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l00235"></a>00235 <span class="preprocessor"></span> <span class="keyword">typename</span> E::const_iterator1 it1e (it2e.begin ()); <a name="l00236"></a>00236 <span class="keyword">typename</span> E::const_iterator1 it1e_end (it2e.end ()); <a name="l00237"></a>00237 <span class="preprocessor">#else</span> <a name="l00238"></a>00238 <span class="preprocessor"></span> <span class="keyword">typename</span> E::const_iterator1 it1e (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2e, iterator2_tag ())); <a name="l00239"></a>00239 <span class="keyword">typename</span> E::const_iterator1 it1e_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it2e, iterator2_tag ())); <a name="l00240"></a>00240 <span class="preprocessor">#endif</span> <a name="l00241"></a>00241 <span class="preprocessor"></span> <span class="keywordflow">while</span> (it1e != it1e_end) { <a name="l00242"></a>00242 <span class="keywordflow">if</span> (conformant_restrict_type::other (it1e.index1 (), it1e.index2 ())) <a name="l00243"></a>00243 <span class="keywordflow">if</span> (static_cast&lt;value_type&gt;(*it1e) != value_type<span class="comment">/*zero*/</span>()) <a name="l00244"></a>00244 index.push_back (std::pair&lt;size_type, size_type&gt; (it1e.index1 (), it1e.index2 ())); <a name="l00245"></a>00245 ++ it1e; <a name="l00246"></a>00246 } <a name="l00247"></a>00247 ++ it2e; <a name="l00248"></a>00248 } <a name="l00249"></a>00249 <span class="comment">// ISSUE proxies require insert_element</span> <a name="l00250"></a>00250 <span class="keywordflow">for</span> (size_type k = 0; k &lt; index.size (); ++ k) <a name="l00251"></a>00251 m (index [k].first, index [k].second) = value_type<span class="comment">/*zero*/</span>(); <a name="l00252"></a>00252 } <a name="l00253"></a>00253 <a name="l00254"></a>00254 }<span class="comment">//namespace detail</span> <a name="l00255"></a>00255 <a name="l00256"></a>00256 <a name="l00257"></a>00257 <span class="comment">// Explicitly iterating row major</span> <a name="l00258"></a>00258 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>M, <span class="keyword">class </span>T&gt; <a name="l00259"></a>00259 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l00260"></a><a class="code" href="a00595.html#a00c86a0f3782fe711a8168d9f9f4c90c">00260</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#a00c86a0f3782fe711a8168d9f9f4c90c">iterating_matrix_assign_scalar</a> (M &amp;m, <span class="keyword">const</span> T &amp;t, <a class="code" href="a00369.html">row_major_tag</a>) { <a name="l00261"></a>00261 <span class="keyword">typedef</span> F&lt;typename M::iterator2::reference, T&gt; functor_type; <a name="l00262"></a>00262 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::difference_type difference_type; <a name="l00263"></a>00263 difference_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (m.size1 ()); <a name="l00264"></a>00264 difference_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (m.size2 ()); <a name="l00265"></a>00265 <span class="keyword">typename</span> M::iterator1 it1 (m.begin1 ()); <a name="l00266"></a>00266 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (<a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> == 0 || m.end1 () - it1 == <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>, <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00267"></a>00267 <span class="keywordflow">while</span> (-- <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> &gt;= 0) { <a name="l00268"></a>00268 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l00269"></a>00269 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (it1.begin ()); <a name="l00270"></a>00270 <span class="preprocessor">#else</span> <a name="l00271"></a>00271 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1, iterator1_tag ())); <a name="l00272"></a>00272 <span class="preprocessor">#endif</span> <a name="l00273"></a>00273 <span class="preprocessor"></span> <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (it1.end () - it2 == <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>, <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00274"></a>00274 difference_type temp_size2 (<a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>); <a name="l00275"></a>00275 <span class="preprocessor">#ifndef BOOST_UBLAS_USE_DUFF_DEVICE</span> <a name="l00276"></a>00276 <span class="preprocessor"></span> <span class="keywordflow">while</span> (-- temp_size2 &gt;= 0) <a name="l00277"></a>00277 functor_type::apply (*it2, t), ++ it2; <a name="l00278"></a>00278 <span class="preprocessor">#else</span> <a name="l00279"></a>00279 <span class="preprocessor"></span> <a class="code" href="a00608.html#acb571ebc7eb721ca2a32e3447a436e23">DD</a> (temp_size2, 4, r, (functor_type::apply (*it2, t), ++ it2)); <a name="l00280"></a>00280 <span class="preprocessor">#endif</span> <a name="l00281"></a>00281 <span class="preprocessor"></span> ++ it1; <a name="l00282"></a>00282 } <a name="l00283"></a>00283 } <a name="l00284"></a>00284 <span class="comment">// Explicitly iterating column major</span> <a name="l00285"></a>00285 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>M, <span class="keyword">class </span>T&gt; <a name="l00286"></a>00286 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l00287"></a><a class="code" href="a00595.html#a296d3fc860ba61c493550b4462d052f7">00287</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#a00c86a0f3782fe711a8168d9f9f4c90c">iterating_matrix_assign_scalar</a> (M &amp;m, <span class="keyword">const</span> T &amp;t, <a class="code" href="a00052.html">column_major_tag</a>) { <a name="l00288"></a>00288 <span class="keyword">typedef</span> F&lt;typename M::iterator1::reference, T&gt; functor_type; <a name="l00289"></a>00289 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::difference_type difference_type; <a name="l00290"></a>00290 difference_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (m.size2 ()); <a name="l00291"></a>00291 difference_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (m.size1 ()); <a name="l00292"></a>00292 <span class="keyword">typename</span> M::iterator2 it2 (m.begin2 ()); <a name="l00293"></a>00293 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (<a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> == 0 || m.end2 () - it2 == <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>, <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00294"></a>00294 <span class="keywordflow">while</span> (-- <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> &gt;= 0) { <a name="l00295"></a>00295 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l00296"></a>00296 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (it2.begin ()); <a name="l00297"></a>00297 <span class="preprocessor">#else</span> <a name="l00298"></a>00298 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2, iterator2_tag ())); <a name="l00299"></a>00299 <span class="preprocessor">#endif</span> <a name="l00300"></a>00300 <span class="preprocessor"></span> <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (it2.end () - it1 == <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>, <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00301"></a>00301 difference_type temp_size1 (<a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>); <a name="l00302"></a>00302 <span class="preprocessor">#ifndef BOOST_UBLAS_USE_DUFF_DEVICE</span> <a name="l00303"></a>00303 <span class="preprocessor"></span> <span class="keywordflow">while</span> (-- temp_size1 &gt;= 0) <a name="l00304"></a>00304 functor_type::apply (*it1, t), ++ it1; <a name="l00305"></a>00305 <span class="preprocessor">#else</span> <a name="l00306"></a>00306 <span class="preprocessor"></span> <a class="code" href="a00608.html#acb571ebc7eb721ca2a32e3447a436e23">DD</a> (temp_size1, 4, r, (functor_type::apply (*it1, t), ++ it1)); <a name="l00307"></a>00307 <span class="preprocessor">#endif</span> <a name="l00308"></a>00308 <span class="preprocessor"></span> ++ it2; <a name="l00309"></a>00309 } <a name="l00310"></a>00310 } <a name="l00311"></a>00311 <span class="comment">// Explicitly indexing row major</span> <a name="l00312"></a>00312 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>M, <span class="keyword">class </span>T&gt; <a name="l00313"></a>00313 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l00314"></a><a class="code" href="a00595.html#afcc157e7a3ec509bba09462a17b8b9b4">00314</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#afcc157e7a3ec509bba09462a17b8b9b4">indexing_matrix_assign_scalar</a> (M &amp;m, <span class="keyword">const</span> T &amp;t, <a class="code" href="a00369.html">row_major_tag</a>) { <a name="l00315"></a>00315 <span class="keyword">typedef</span> F&lt;typename M::reference, T&gt; functor_type; <a name="l00316"></a>00316 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::size_type size_type; <a name="l00317"></a>00317 size_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (m.size1 ()); <a name="l00318"></a>00318 size_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (m.size2 ()); <a name="l00319"></a>00319 <span class="keywordflow">for</span> (size_type i = 0; i &lt; <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>; ++ i) { <a name="l00320"></a>00320 <span class="preprocessor">#ifndef BOOST_UBLAS_USE_DUFF_DEVICE</span> <a name="l00321"></a>00321 <span class="preprocessor"></span> <span class="keywordflow">for</span> (size_type j = 0; j &lt; <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>; ++ j) <a name="l00322"></a>00322 functor_type::apply (m (i, j), t); <a name="l00323"></a>00323 <span class="preprocessor">#else</span> <a name="l00324"></a>00324 <span class="preprocessor"></span> size_type j (0); <a name="l00325"></a>00325 <a class="code" href="a00608.html#acb571ebc7eb721ca2a32e3447a436e23">DD</a> (size2, 4, r, (functor_type::apply (m (i, j), t), ++ j)); <a name="l00326"></a>00326 <span class="preprocessor">#endif</span> <a name="l00327"></a>00327 <span class="preprocessor"></span> } <a name="l00328"></a>00328 } <a name="l00329"></a>00329 <span class="comment">// Explicitly indexing column major</span> <a name="l00330"></a>00330 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>M, <span class="keyword">class </span>T&gt; <a name="l00331"></a>00331 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l00332"></a><a class="code" href="a00595.html#a49b4bd4127a552d897f0a0a4339b98da">00332</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#afcc157e7a3ec509bba09462a17b8b9b4">indexing_matrix_assign_scalar</a> (M &amp;m, <span class="keyword">const</span> T &amp;t, <a class="code" href="a00052.html">column_major_tag</a>) { <a name="l00333"></a>00333 <span class="keyword">typedef</span> F&lt;typename M::reference, T&gt; functor_type; <a name="l00334"></a>00334 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::size_type size_type; <a name="l00335"></a>00335 size_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (m.size2 ()); <a name="l00336"></a>00336 size_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (m.size1 ()); <a name="l00337"></a>00337 <span class="keywordflow">for</span> (size_type j = 0; j &lt; <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>; ++ j) { <a name="l00338"></a>00338 <span class="preprocessor">#ifndef BOOST_UBLAS_USE_DUFF_DEVICE</span> <a name="l00339"></a>00339 <span class="preprocessor"></span> <span class="keywordflow">for</span> (size_type i = 0; i &lt; <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>; ++ i) <a name="l00340"></a>00340 functor_type::apply (m (i, j), t); <a name="l00341"></a>00341 <span class="preprocessor">#else</span> <a name="l00342"></a>00342 <span class="preprocessor"></span> size_type i (0); <a name="l00343"></a>00343 <a class="code" href="a00608.html#acb571ebc7eb721ca2a32e3447a436e23">DD</a> (size1, 4, r, (functor_type::apply (m (i, j), t), ++ i)); <a name="l00344"></a>00344 <span class="preprocessor">#endif</span> <a name="l00345"></a>00345 <span class="preprocessor"></span> } <a name="l00346"></a>00346 } <a name="l00347"></a>00347 <a name="l00348"></a>00348 <span class="comment">// Dense (proxy) case</span> <a name="l00349"></a>00349 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>M, <span class="keyword">class </span>T, <span class="keyword">class </span>C&gt; <a name="l00350"></a>00350 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l00351"></a><a class="code" href="a00595.html#a668a03047a98314e0bf6a8d3e4f79bc1">00351</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#a668a03047a98314e0bf6a8d3e4f79bc1">matrix_assign_scalar</a> (M &amp;m, <span class="keyword">const</span> T &amp;t, <a class="code" href="a00081.html">dense_proxy_tag</a>, C) { <a name="l00352"></a>00352 <span class="keyword">typedef</span> C orientation_category; <a name="l00353"></a>00353 <span class="preprocessor">#ifdef BOOST_UBLAS_USE_INDEXING</span> <a name="l00354"></a>00354 <span class="preprocessor"></span> indexing_matrix_assign_scalar&lt;F&gt; (m, t, orientation_category ()); <a name="l00355"></a>00355 <span class="preprocessor">#elif BOOST_UBLAS_USE_ITERATING</span> <a name="l00356"></a>00356 <span class="preprocessor"></span> iterating_matrix_assign_scalar&lt;F&gt; (m, t, orientation_category ()); <a name="l00357"></a>00357 <span class="preprocessor">#else</span> <a name="l00358"></a>00358 <span class="preprocessor"></span> <span class="keyword">typedef</span> <span class="keyword">typename</span> M::size_type size_type; <a name="l00359"></a>00359 size_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (m.size1 ()); <a name="l00360"></a>00360 size_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (m.size2 ()); <a name="l00361"></a>00361 <span class="keywordflow">if</span> (<a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> &gt;= BOOST_UBLAS_ITERATOR_THRESHOLD &amp;&amp; <a name="l00362"></a>00362 <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> &gt;= BOOST_UBLAS_ITERATOR_THRESHOLD) <a name="l00363"></a>00363 iterating_matrix_assign_scalar&lt;F&gt; (m, t, orientation_category ()); <a name="l00364"></a>00364 <span class="keywordflow">else</span> <a name="l00365"></a>00365 indexing_matrix_assign_scalar&lt;F&gt; (m, t, orientation_category ()); <a name="l00366"></a>00366 <span class="preprocessor">#endif</span> <a name="l00367"></a>00367 <span class="preprocessor"></span> } <a name="l00368"></a>00368 <span class="comment">// Packed (proxy) row major case</span> <a name="l00369"></a>00369 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>M, <span class="keyword">class </span>T&gt; <a name="l00370"></a>00370 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l00371"></a><a class="code" href="a00595.html#ac0a11fcd037b488e3b77c880ed908d97">00371</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#a668a03047a98314e0bf6a8d3e4f79bc1">matrix_assign_scalar</a> (M &amp;m, <span class="keyword">const</span> T &amp;t, <a class="code" href="a00360.html">packed_proxy_tag</a>, <a class="code" href="a00369.html">row_major_tag</a>) { <a name="l00372"></a>00372 <span class="keyword">typedef</span> F&lt;typename M::iterator2::reference, T&gt; functor_type; <a name="l00373"></a>00373 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::difference_type difference_type; <a name="l00374"></a>00374 <span class="keyword">typename</span> M::iterator1 it1 (m.begin1 ()); <a name="l00375"></a>00375 difference_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (m.end1 () - it1); <a name="l00376"></a>00376 <span class="keywordflow">while</span> (-- <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> &gt;= 0) { <a name="l00377"></a>00377 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l00378"></a>00378 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (it1.begin ()); <a name="l00379"></a>00379 difference_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (it1.end () - it2); <a name="l00380"></a>00380 <span class="preprocessor">#else</span> <a name="l00381"></a>00381 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1, iterator1_tag ())); <a name="l00382"></a>00382 difference_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it1, iterator1_tag ()) - it2); <a name="l00383"></a>00383 <span class="preprocessor">#endif</span> <a name="l00384"></a>00384 <span class="preprocessor"></span> <span class="keywordflow">while</span> (-- size2 &gt;= 0) <a name="l00385"></a>00385 functor_type::apply (*it2, t), ++ it2; <a name="l00386"></a>00386 ++ it1; <a name="l00387"></a>00387 } <a name="l00388"></a>00388 } <a name="l00389"></a>00389 <span class="comment">// Packed (proxy) column major case</span> <a name="l00390"></a>00390 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>M, <span class="keyword">class </span>T&gt; <a name="l00391"></a>00391 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l00392"></a><a class="code" href="a00595.html#ac602da785aa3fadbc2519c6984fb7321">00392</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#a668a03047a98314e0bf6a8d3e4f79bc1">matrix_assign_scalar</a> (M &amp;m, <span class="keyword">const</span> T &amp;t, <a class="code" href="a00360.html">packed_proxy_tag</a>, <a class="code" href="a00052.html">column_major_tag</a>) { <a name="l00393"></a>00393 <span class="keyword">typedef</span> F&lt;typename M::iterator1::reference, T&gt; functor_type; <a name="l00394"></a>00394 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::difference_type difference_type; <a name="l00395"></a>00395 <span class="keyword">typename</span> M::iterator2 it2 (m.begin2 ()); <a name="l00396"></a>00396 difference_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (m.end2 () - it2); <a name="l00397"></a>00397 <span class="keywordflow">while</span> (-- <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> &gt;= 0) { <a name="l00398"></a>00398 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l00399"></a>00399 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (it2.begin ()); <a name="l00400"></a>00400 difference_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (it2.end () - it1); <a name="l00401"></a>00401 <span class="preprocessor">#else</span> <a name="l00402"></a>00402 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2, iterator2_tag ())); <a name="l00403"></a>00403 difference_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it2, iterator2_tag ()) - it1); <a name="l00404"></a>00404 <span class="preprocessor">#endif</span> <a name="l00405"></a>00405 <span class="preprocessor"></span> <span class="keywordflow">while</span> (-- size1 &gt;= 0) <a name="l00406"></a>00406 functor_type::apply (*it1, t), ++ it1; <a name="l00407"></a>00407 ++ it2; <a name="l00408"></a>00408 } <a name="l00409"></a>00409 } <a name="l00410"></a>00410 <span class="comment">// Sparse (proxy) row major case</span> <a name="l00411"></a>00411 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>M, <span class="keyword">class </span>T&gt; <a name="l00412"></a>00412 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l00413"></a><a class="code" href="a00595.html#a23eed6414bcbc80e6689719ecf51e605">00413</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#a668a03047a98314e0bf6a8d3e4f79bc1">matrix_assign_scalar</a> (M &amp;m, <span class="keyword">const</span> T &amp;t, <a class="code" href="a00409.html">sparse_proxy_tag</a>, <a class="code" href="a00369.html">row_major_tag</a>) { <a name="l00414"></a>00414 <span class="keyword">typedef</span> F&lt;typename M::iterator2::reference, T&gt; functor_type; <a name="l00415"></a>00415 <span class="keyword">typename</span> M::iterator1 it1 (m.begin1 ()); <a name="l00416"></a>00416 <span class="keyword">typename</span> M::iterator1 it1_end (m.end1 ()); <a name="l00417"></a>00417 <span class="keywordflow">while</span> (it1 != it1_end) { <a name="l00418"></a>00418 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l00419"></a>00419 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (it1.begin ()); <a name="l00420"></a>00420 <span class="keyword">typename</span> M::iterator2 it2_end (it1.end ()); <a name="l00421"></a>00421 <span class="preprocessor">#else</span> <a name="l00422"></a>00422 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1, iterator1_tag ())); <a name="l00423"></a>00423 <span class="keyword">typename</span> M::iterator2 it2_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it1, iterator1_tag ())); <a name="l00424"></a>00424 <span class="preprocessor">#endif</span> <a name="l00425"></a>00425 <span class="preprocessor"></span> <span class="keywordflow">while</span> (it2 != it2_end) <a name="l00426"></a>00426 functor_type::apply (*it2, t), ++ it2; <a name="l00427"></a>00427 ++ it1; <a name="l00428"></a>00428 } <a name="l00429"></a>00429 } <a name="l00430"></a>00430 <span class="comment">// Sparse (proxy) column major case</span> <a name="l00431"></a>00431 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>M, <span class="keyword">class </span>T&gt; <a name="l00432"></a>00432 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l00433"></a><a class="code" href="a00595.html#a6ede5aad745cf9d7d368fcad19270830">00433</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#a668a03047a98314e0bf6a8d3e4f79bc1">matrix_assign_scalar</a> (M &amp;m, <span class="keyword">const</span> T &amp;t, <a class="code" href="a00409.html">sparse_proxy_tag</a>, <a class="code" href="a00052.html">column_major_tag</a>) { <a name="l00434"></a>00434 <span class="keyword">typedef</span> F&lt;typename M::iterator1::reference, T&gt; functor_type; <a name="l00435"></a>00435 <span class="keyword">typename</span> M::iterator2 it2 (m.begin2 ()); <a name="l00436"></a>00436 <span class="keyword">typename</span> M::iterator2 it2_end (m.end2 ()); <a name="l00437"></a>00437 <span class="keywordflow">while</span> (it2 != it2_end) { <a name="l00438"></a>00438 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l00439"></a>00439 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (it2.begin ()); <a name="l00440"></a>00440 <span class="keyword">typename</span> M::iterator1 it1_end (it2.end ()); <a name="l00441"></a>00441 <span class="preprocessor">#else</span> <a name="l00442"></a>00442 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2, iterator2_tag ())); <a name="l00443"></a>00443 <span class="keyword">typename</span> M::iterator1 it1_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it2, iterator2_tag ())); <a name="l00444"></a>00444 <span class="preprocessor">#endif</span> <a name="l00445"></a>00445 <span class="preprocessor"></span> <span class="keywordflow">while</span> (it1 != it1_end) <a name="l00446"></a>00446 functor_type::apply (*it1, t), ++ it1; <a name="l00447"></a>00447 ++ it2; <a name="l00448"></a>00448 } <a name="l00449"></a>00449 } <a name="l00450"></a>00450 <a name="l00451"></a>00451 <span class="comment">// Dispatcher</span> <a name="l00452"></a>00452 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>M, <span class="keyword">class </span>T&gt; <a name="l00453"></a>00453 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a> <a name="l00454"></a><a class="code" href="a00595.html#ab509dafc541d1ccf4fc79d991fe951ab">00454</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#a668a03047a98314e0bf6a8d3e4f79bc1">matrix_assign_scalar</a> (M &amp;m, <span class="keyword">const</span> T &amp;t) { <a name="l00455"></a>00455 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::storage_category storage_category; <a name="l00456"></a>00456 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::orientation_category orientation_category; <a name="l00457"></a>00457 matrix_assign_scalar&lt;F&gt; (m, t, storage_category (), orientation_category ()); <a name="l00458"></a>00458 } <a name="l00459"></a>00459 <a name="l00460"></a>00460 <span class="keyword">template</span>&lt;<span class="keyword">class</span> SC, <span class="keywordtype">bool</span> COMPUTED, <span class="keyword">class</span> RI1, <span class="keyword">class</span> RI2&gt; <a name="l00461"></a><a class="code" href="a00223.html">00461</a> <span class="keyword">struct </span><a class="code" href="a00223.html">matrix_assign_traits</a> { <a name="l00462"></a><a class="code" href="a00223.html#a2c7f4f521fc18190f93556d26352130d">00462</a> <span class="keyword">typedef</span> SC <a class="code" href="a00223.html#a2c7f4f521fc18190f93556d26352130d">storage_category</a>; <a name="l00463"></a>00463 }; <a name="l00464"></a>00464 <a name="l00465"></a>00465 <span class="keyword">template</span>&lt;<span class="keywordtype">bool</span> COMPUTED&gt; <a name="l00466"></a><a class="code" href="a00226.html">00466</a> <span class="keyword">struct </span><a class="code" href="a00223.html">matrix_assign_traits</a>&lt;<a class="code" href="a00083.html">dense_tag</a>, COMPUTED, <a class="code" href="a00361.html">packed_random_access_iterator_tag</a>, <a class="code" href="a00361.html">packed_random_access_iterator_tag</a>&gt; { <a name="l00467"></a><a class="code" href="a00226.html#a97833ff5930361d44330b4930eac5a7c">00467</a> <span class="keyword">typedef</span> <a class="code" href="a00362.html">packed_tag</a> <a class="code" href="a00226.html#a97833ff5930361d44330b4930eac5a7c">storage_category</a>; <a name="l00468"></a>00468 }; <a name="l00469"></a>00469 <span class="keyword">template</span>&lt;&gt; <a name="l00470"></a><a class="code" href="a00227.html">00470</a> <span class="keyword">struct </span><a class="code" href="a00223.html">matrix_assign_traits</a>&lt;<a class="code" href="a00083.html">dense_tag</a>, false, <a class="code" href="a00408.html">sparse_bidirectional_iterator_tag</a>, <a class="code" href="a00408.html">sparse_bidirectional_iterator_tag</a>&gt; { <a name="l00471"></a><a class="code" href="a00227.html#a732860da85ee30d97973e782a2ffee69">00471</a> <span class="keyword">typedef</span> <a class="code" href="a00410.html">sparse_tag</a> <a class="code" href="a00227.html#a732860da85ee30d97973e782a2ffee69">storage_category</a>; <a name="l00472"></a>00472 }; <a name="l00473"></a>00473 <span class="keyword">template</span>&lt;&gt; <a name="l00474"></a><a class="code" href="a00228.html">00474</a> <span class="keyword">struct </span><a class="code" href="a00223.html">matrix_assign_traits</a>&lt;<a class="code" href="a00083.html">dense_tag</a>, true, <a class="code" href="a00408.html">sparse_bidirectional_iterator_tag</a>, <a class="code" href="a00408.html">sparse_bidirectional_iterator_tag</a>&gt; { <a name="l00475"></a><a class="code" href="a00228.html#aa41b9675d311417e3878f4ed9c649e03">00475</a> <span class="keyword">typedef</span> <a class="code" href="a00409.html">sparse_proxy_tag</a> <a class="code" href="a00228.html#aa41b9675d311417e3878f4ed9c649e03">storage_category</a>; <a name="l00476"></a>00476 }; <a name="l00477"></a>00477 <a name="l00478"></a>00478 <span class="keyword">template</span>&lt;<span class="keywordtype">bool</span> COMPUTED&gt; <a name="l00479"></a><a class="code" href="a00224.html">00479</a> <span class="keyword">struct </span><a class="code" href="a00223.html">matrix_assign_traits</a>&lt;<a class="code" href="a00081.html">dense_proxy_tag</a>, COMPUTED, <a class="code" href="a00361.html">packed_random_access_iterator_tag</a>, <a class="code" href="a00361.html">packed_random_access_iterator_tag</a>&gt; { <a name="l00480"></a><a class="code" href="a00224.html#aeff1751e1853df73adbb41b7e81e3c14">00480</a> <span class="keyword">typedef</span> <a class="code" href="a00360.html">packed_proxy_tag</a> <a class="code" href="a00224.html#aeff1751e1853df73adbb41b7e81e3c14">storage_category</a>; <a name="l00481"></a>00481 }; <a name="l00482"></a>00482 <span class="keyword">template</span>&lt;<span class="keywordtype">bool</span> COMPUTED&gt; <a name="l00483"></a><a class="code" href="a00225.html">00483</a> <span class="keyword">struct </span><a class="code" href="a00223.html">matrix_assign_traits</a>&lt;<a class="code" href="a00081.html">dense_proxy_tag</a>, COMPUTED, <a class="code" href="a00408.html">sparse_bidirectional_iterator_tag</a>, <a class="code" href="a00408.html">sparse_bidirectional_iterator_tag</a>&gt; { <a name="l00484"></a><a class="code" href="a00225.html#aa1d6fcd4640c8a49667b78e461faa2a1">00484</a> <span class="keyword">typedef</span> <a class="code" href="a00409.html">sparse_proxy_tag</a> <a class="code" href="a00225.html#aa1d6fcd4640c8a49667b78e461faa2a1">storage_category</a>; <a name="l00485"></a>00485 }; <a name="l00486"></a>00486 <a name="l00487"></a>00487 <span class="keyword">template</span>&lt;&gt; <a name="l00488"></a><a class="code" href="a00230.html">00488</a> <span class="keyword">struct </span><a class="code" href="a00223.html">matrix_assign_traits</a>&lt;<a class="code" href="a00362.html">packed_tag</a>, false, <a class="code" href="a00408.html">sparse_bidirectional_iterator_tag</a>, <a class="code" href="a00408.html">sparse_bidirectional_iterator_tag</a>&gt; { <a name="l00489"></a><a class="code" href="a00230.html#a191eb35f9505a863ee35af173c63b56e">00489</a> <span class="keyword">typedef</span> <a class="code" href="a00410.html">sparse_tag</a> <a class="code" href="a00230.html#a191eb35f9505a863ee35af173c63b56e">storage_category</a>; <a name="l00490"></a>00490 }; <a name="l00491"></a>00491 <span class="keyword">template</span>&lt;&gt; <a name="l00492"></a><a class="code" href="a00231.html">00492</a> <span class="keyword">struct </span><a class="code" href="a00223.html">matrix_assign_traits</a>&lt;<a class="code" href="a00362.html">packed_tag</a>, true, <a class="code" href="a00408.html">sparse_bidirectional_iterator_tag</a>, <a class="code" href="a00408.html">sparse_bidirectional_iterator_tag</a>&gt; { <a name="l00493"></a><a class="code" href="a00231.html#ab0c616e6afe390368f18afedefa28b5d">00493</a> <span class="keyword">typedef</span> <a class="code" href="a00409.html">sparse_proxy_tag</a> <a class="code" href="a00231.html#ab0c616e6afe390368f18afedefa28b5d">storage_category</a>; <a name="l00494"></a>00494 }; <a name="l00495"></a>00495 <a name="l00496"></a>00496 <span class="keyword">template</span>&lt;<span class="keywordtype">bool</span> COMPUTED&gt; <a name="l00497"></a><a class="code" href="a00229.html">00497</a> <span class="keyword">struct </span><a class="code" href="a00223.html">matrix_assign_traits</a>&lt;<a class="code" href="a00360.html">packed_proxy_tag</a>, COMPUTED, <a class="code" href="a00408.html">sparse_bidirectional_iterator_tag</a>, <a class="code" href="a00408.html">sparse_bidirectional_iterator_tag</a>&gt; { <a name="l00498"></a><a class="code" href="a00229.html#a389f550e5b150adcf31e8c8f26d58b94">00498</a> <span class="keyword">typedef</span> <a class="code" href="a00409.html">sparse_proxy_tag</a> <a class="code" href="a00229.html#a389f550e5b150adcf31e8c8f26d58b94">storage_category</a>; <a name="l00499"></a>00499 }; <a name="l00500"></a>00500 <a name="l00501"></a>00501 <span class="keyword">template</span>&lt;&gt; <a name="l00502"></a><a class="code" href="a00232.html">00502</a> <span class="keyword">struct </span><a class="code" href="a00223.html">matrix_assign_traits</a>&lt;<a class="code" href="a00410.html">sparse_tag</a>, true, <a class="code" href="a00082.html">dense_random_access_iterator_tag</a>, <a class="code" href="a00082.html">dense_random_access_iterator_tag</a>&gt; { <a name="l00503"></a><a class="code" href="a00232.html#af4ef3b94e636b1fe90711947b8a99d72">00503</a> <span class="keyword">typedef</span> <a class="code" href="a00409.html">sparse_proxy_tag</a> <a class="code" href="a00232.html#af4ef3b94e636b1fe90711947b8a99d72">storage_category</a>; <a name="l00504"></a>00504 }; <a name="l00505"></a>00505 <span class="keyword">template</span>&lt;&gt; <a name="l00506"></a><a class="code" href="a00233.html">00506</a> <span class="keyword">struct </span><a class="code" href="a00223.html">matrix_assign_traits</a>&lt;<a class="code" href="a00410.html">sparse_tag</a>, true, <a class="code" href="a00361.html">packed_random_access_iterator_tag</a>, <a class="code" href="a00361.html">packed_random_access_iterator_tag</a>&gt; { <a name="l00507"></a><a class="code" href="a00233.html#a9df336ff9611de233b592c86c217bc47">00507</a> <span class="keyword">typedef</span> <a class="code" href="a00409.html">sparse_proxy_tag</a> <a class="code" href="a00233.html#a9df336ff9611de233b592c86c217bc47">storage_category</a>; <a name="l00508"></a>00508 }; <a name="l00509"></a>00509 <span class="keyword">template</span>&lt;&gt; <a name="l00510"></a><a class="code" href="a00234.html">00510</a> <span class="keyword">struct </span><a class="code" href="a00223.html">matrix_assign_traits</a>&lt;<a class="code" href="a00410.html">sparse_tag</a>, true, <a class="code" href="a00408.html">sparse_bidirectional_iterator_tag</a>, <a class="code" href="a00408.html">sparse_bidirectional_iterator_tag</a>&gt; { <a name="l00511"></a><a class="code" href="a00234.html#a20a9ee61011e9de7585b96f12ce4fcbb">00511</a> <span class="keyword">typedef</span> <a class="code" href="a00409.html">sparse_proxy_tag</a> <a class="code" href="a00234.html#a20a9ee61011e9de7585b96f12ce4fcbb">storage_category</a>; <a name="l00512"></a>00512 }; <a name="l00513"></a>00513 <a name="l00514"></a>00514 <span class="comment">// Explicitly iterating row major</span> <a name="l00515"></a>00515 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>M, <span class="keyword">class </span>E&gt; <a name="l00516"></a>00516 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l00517"></a><a class="code" href="a00595.html#adfd7b4b82de990841314e474418ace57">00517</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#adfd7b4b82de990841314e474418ace57">iterating_matrix_assign</a> (M &amp;m, <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E&gt;</a> &amp;e, <a class="code" href="a00369.html">row_major_tag</a>) { <a name="l00518"></a>00518 <span class="keyword">typedef</span> F&lt;typename M::iterator2::reference, typename E::value_type&gt; functor_type; <a name="l00519"></a>00519 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::difference_type difference_type; <a name="l00520"></a>00520 difference_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (<a class="code" href="a00610.html#ad7bb3e64acf4cd355a9985bdf879cf2a">BOOST_UBLAS_SAME</a> (m.size1 (), e ().size1 ())); <a name="l00521"></a>00521 difference_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (<a class="code" href="a00610.html#ad7bb3e64acf4cd355a9985bdf879cf2a">BOOST_UBLAS_SAME</a> (m.size2 (), e ().size2 ())); <a name="l00522"></a>00522 <span class="keyword">typename</span> M::iterator1 it1 (m.begin1 ()); <a name="l00523"></a>00523 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (size2 == 0 || m.end1 () - it1 == <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>, <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00524"></a>00524 <span class="keyword">typename</span> E::const_iterator1 it1e (e ().<a class="code" href="a00595.html#a006ba58a3f4c88d8e8e76e44db481757" title="An object generator that returns a begin1 manipulator.">begin1</a> ()); <a name="l00525"></a>00525 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (size2 == 0 || e ().end1 () - it1e == size1, <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00526"></a>00526 <span class="keywordflow">while</span> (-- size1 &gt;= 0) { <a name="l00527"></a>00527 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l00528"></a>00528 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (it1.begin ()); <a name="l00529"></a>00529 <span class="keyword">typename</span> E::const_iterator2 it2e (it1e.begin ()); <a name="l00530"></a>00530 <span class="preprocessor">#else</span> <a name="l00531"></a>00531 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1, iterator1_tag ())); <a name="l00532"></a>00532 <span class="keyword">typename</span> E::const_iterator2 it2e (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1e, iterator1_tag ())); <a name="l00533"></a>00533 <span class="preprocessor">#endif</span> <a name="l00534"></a>00534 <span class="preprocessor"></span> <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (it1.end () - it2 == <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>, <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00535"></a>00535 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (it1e.end () - it2e == <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>, <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00536"></a>00536 difference_type temp_size2 (size2); <a name="l00537"></a>00537 <span class="preprocessor">#ifndef BOOST_UBLAS_USE_DUFF_DEVICE</span> <a name="l00538"></a>00538 <span class="preprocessor"></span> <span class="keywordflow">while</span> (-- temp_size2 &gt;= 0) <a name="l00539"></a>00539 functor_type::apply (*it2, *it2e), ++ it2, ++ it2e; <a name="l00540"></a>00540 <span class="preprocessor">#else</span> <a name="l00541"></a>00541 <span class="preprocessor"></span> <a class="code" href="a00608.html#acb571ebc7eb721ca2a32e3447a436e23">DD</a> (temp_size2, 2, r, (functor_type::apply (*it2, *it2e), ++ it2, ++ it2e)); <a name="l00542"></a>00542 <span class="preprocessor">#endif</span> <a name="l00543"></a>00543 <span class="preprocessor"></span> ++ it1, ++ it1e; <a name="l00544"></a>00544 } <a name="l00545"></a>00545 } <a name="l00546"></a>00546 <span class="comment">// Explicitly iterating column major</span> <a name="l00547"></a>00547 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>M, <span class="keyword">class </span>E&gt; <a name="l00548"></a>00548 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l00549"></a><a class="code" href="a00595.html#ab658993146fb41ed33c51d01ddfaeff9">00549</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#adfd7b4b82de990841314e474418ace57">iterating_matrix_assign</a> (M &amp;m, <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E&gt;</a> &amp;e, <a class="code" href="a00052.html">column_major_tag</a>) { <a name="l00550"></a>00550 <span class="keyword">typedef</span> F&lt;typename M::iterator1::reference, typename E::value_type&gt; functor_type; <a name="l00551"></a>00551 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::difference_type difference_type; <a name="l00552"></a>00552 difference_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (<a class="code" href="a00610.html#ad7bb3e64acf4cd355a9985bdf879cf2a">BOOST_UBLAS_SAME</a> (m.size2 (), e ().size2 ())); <a name="l00553"></a>00553 difference_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (<a class="code" href="a00610.html#ad7bb3e64acf4cd355a9985bdf879cf2a">BOOST_UBLAS_SAME</a> (m.size1 (), e ().size1 ())); <a name="l00554"></a>00554 <span class="keyword">typename</span> M::iterator2 it2 (m.begin2 ()); <a name="l00555"></a>00555 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (size1 == 0 || m.end2 () - it2 == <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>, <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00556"></a>00556 <span class="keyword">typename</span> E::const_iterator2 it2e (e ().<a class="code" href="a00595.html#a0a5c2ce4e11de4e7ea5ccd122073052c" title="An object generator that returns a begin2 manipulator to be used to traverse a matrix.">begin2</a> ()); <a name="l00557"></a>00557 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (size1 == 0 || e ().end2 () - it2e == size2, <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00558"></a>00558 <span class="keywordflow">while</span> (-- size2 &gt;= 0) { <a name="l00559"></a>00559 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l00560"></a>00560 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (it2.begin ()); <a name="l00561"></a>00561 <span class="keyword">typename</span> E::const_iterator1 it1e (it2e.begin ()); <a name="l00562"></a>00562 <span class="preprocessor">#else</span> <a name="l00563"></a>00563 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2, iterator2_tag ())); <a name="l00564"></a>00564 <span class="keyword">typename</span> E::const_iterator1 it1e (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2e, iterator2_tag ())); <a name="l00565"></a>00565 <span class="preprocessor">#endif</span> <a name="l00566"></a>00566 <span class="preprocessor"></span> <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (it2.end () - it1 == <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>, <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00567"></a>00567 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (it2e.end () - it1e == <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>, <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00568"></a>00568 difference_type temp_size1 (size1); <a name="l00569"></a>00569 <span class="preprocessor">#ifndef BOOST_UBLAS_USE_DUFF_DEVICE</span> <a name="l00570"></a>00570 <span class="preprocessor"></span> <span class="keywordflow">while</span> (-- temp_size1 &gt;= 0) <a name="l00571"></a>00571 functor_type::apply (*it1, *it1e), ++ it1, ++ it1e; <a name="l00572"></a>00572 <span class="preprocessor">#else</span> <a name="l00573"></a>00573 <span class="preprocessor"></span> <a class="code" href="a00608.html#acb571ebc7eb721ca2a32e3447a436e23">DD</a> (temp_size1, 2, r, (functor_type::apply (*it1, *it1e), ++ it1, ++ it1e)); <a name="l00574"></a>00574 <span class="preprocessor">#endif</span> <a name="l00575"></a>00575 <span class="preprocessor"></span> ++ it2, ++ it2e; <a name="l00576"></a>00576 } <a name="l00577"></a>00577 } <a name="l00578"></a>00578 <span class="comment">// Explicitly indexing row major</span> <a name="l00579"></a>00579 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>M, <span class="keyword">class </span>E&gt; <a name="l00580"></a>00580 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l00581"></a><a class="code" href="a00595.html#a407bf2b5cca2ef0ccd2f5af353e119ab">00581</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#a407bf2b5cca2ef0ccd2f5af353e119ab">indexing_matrix_assign</a> (M &amp;m, <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E&gt;</a> &amp;e, <a class="code" href="a00369.html">row_major_tag</a>) { <a name="l00582"></a>00582 <span class="keyword">typedef</span> F&lt;typename M::reference, typename E::value_type&gt; functor_type; <a name="l00583"></a>00583 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::size_type size_type; <a name="l00584"></a>00584 size_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (<a class="code" href="a00610.html#ad7bb3e64acf4cd355a9985bdf879cf2a">BOOST_UBLAS_SAME</a> (m.size1 (), e ().size1 ())); <a name="l00585"></a>00585 size_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (<a class="code" href="a00610.html#ad7bb3e64acf4cd355a9985bdf879cf2a">BOOST_UBLAS_SAME</a> (m.size2 (), e ().size2 ())); <a name="l00586"></a>00586 <span class="keywordflow">for</span> (size_type i = 0; i &lt; <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>; ++ i) { <a name="l00587"></a>00587 <span class="preprocessor">#ifndef BOOST_UBLAS_USE_DUFF_DEVICE</span> <a name="l00588"></a>00588 <span class="preprocessor"></span> <span class="keywordflow">for</span> (size_type j = 0; j &lt; <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>; ++ j) <a name="l00589"></a>00589 functor_type::apply (m (i, j), e () (i, j)); <a name="l00590"></a>00590 <span class="preprocessor">#else</span> <a name="l00591"></a>00591 <span class="preprocessor"></span> size_type j (0); <a name="l00592"></a>00592 <a class="code" href="a00608.html#acb571ebc7eb721ca2a32e3447a436e23">DD</a> (size2, 2, r, (functor_type::apply (m (i, j), e () (i, j)), ++ j)); <a name="l00593"></a>00593 <span class="preprocessor">#endif</span> <a name="l00594"></a>00594 <span class="preprocessor"></span> } <a name="l00595"></a>00595 } <a name="l00596"></a>00596 <span class="comment">// Explicitly indexing column major</span> <a name="l00597"></a>00597 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>M, <span class="keyword">class </span>E&gt; <a name="l00598"></a>00598 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l00599"></a><a class="code" href="a00595.html#a2f5c940cabbcea62dbaab8c5e2c9fb25">00599</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#a407bf2b5cca2ef0ccd2f5af353e119ab">indexing_matrix_assign</a> (M &amp;m, <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E&gt;</a> &amp;e, <a class="code" href="a00052.html">column_major_tag</a>) { <a name="l00600"></a>00600 <span class="keyword">typedef</span> F&lt;typename M::reference, typename E::value_type&gt; functor_type; <a name="l00601"></a>00601 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::size_type size_type; <a name="l00602"></a>00602 size_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (<a class="code" href="a00610.html#ad7bb3e64acf4cd355a9985bdf879cf2a">BOOST_UBLAS_SAME</a> (m.size2 (), e ().size2 ())); <a name="l00603"></a>00603 size_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (<a class="code" href="a00610.html#ad7bb3e64acf4cd355a9985bdf879cf2a">BOOST_UBLAS_SAME</a> (m.size1 (), e ().size1 ())); <a name="l00604"></a>00604 <span class="keywordflow">for</span> (size_type j = 0; j &lt; <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>; ++ j) { <a name="l00605"></a>00605 <span class="preprocessor">#ifndef BOOST_UBLAS_USE_DUFF_DEVICE</span> <a name="l00606"></a>00606 <span class="preprocessor"></span> <span class="keywordflow">for</span> (size_type i = 0; i &lt; <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>; ++ i) <a name="l00607"></a>00607 functor_type::apply (m (i, j), e () (i, j)); <a name="l00608"></a>00608 <span class="preprocessor">#else</span> <a name="l00609"></a>00609 <span class="preprocessor"></span> size_type i (0); <a name="l00610"></a>00610 <a class="code" href="a00608.html#acb571ebc7eb721ca2a32e3447a436e23">DD</a> (size1, 2, r, (functor_type::apply (m (i, j), e () (i, j)), ++ i)); <a name="l00611"></a>00611 <span class="preprocessor">#endif</span> <a name="l00612"></a>00612 <span class="preprocessor"></span> } <a name="l00613"></a>00613 } <a name="l00614"></a>00614 <a name="l00615"></a>00615 <span class="comment">// Dense (proxy) case</span> <a name="l00616"></a>00616 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>R, <span class="keyword">class </span>M, <span class="keyword">class </span>E, <span class="keyword">class </span>C&gt; <a name="l00617"></a>00617 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l00618"></a><a class="code" href="a00595.html#ae1827b7ef118df5f5d498ccd2b34676c">00618</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#ae1827b7ef118df5f5d498ccd2b34676c">matrix_assign</a> (M &amp;m, <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E&gt;</a> &amp;e, <a class="code" href="a00081.html">dense_proxy_tag</a>, C) { <a name="l00619"></a>00619 <span class="comment">// R unnecessary, make_conformant not required</span> <a name="l00620"></a>00620 <span class="keyword">typedef</span> C orientation_category; <a name="l00621"></a>00621 <span class="preprocessor">#ifdef BOOST_UBLAS_USE_INDEXING</span> <a name="l00622"></a>00622 <span class="preprocessor"></span> indexing_matrix_assign&lt;F&gt; (m, e, orientation_category ()); <a name="l00623"></a>00623 <span class="preprocessor">#elif BOOST_UBLAS_USE_ITERATING</span> <a name="l00624"></a>00624 <span class="preprocessor"></span> iterating_matrix_assign&lt;F&gt; (m, e, orientation_category ()); <a name="l00625"></a>00625 <span class="preprocessor">#else</span> <a name="l00626"></a>00626 <span class="preprocessor"></span> <span class="keyword">typedef</span> <span class="keyword">typename</span> M::difference_type difference_type; <a name="l00627"></a>00627 size_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (<a class="code" href="a00610.html#ad7bb3e64acf4cd355a9985bdf879cf2a">BOOST_UBLAS_SAME</a> (m.size1 (), e ().size1 ())); <a name="l00628"></a>00628 size_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (<a class="code" href="a00610.html#ad7bb3e64acf4cd355a9985bdf879cf2a">BOOST_UBLAS_SAME</a> (m.size2 (), e ().size2 ())); <a name="l00629"></a>00629 <span class="keywordflow">if</span> (size1 &gt;= BOOST_UBLAS_ITERATOR_THRESHOLD &amp;&amp; <a name="l00630"></a>00630 size2 &gt;= BOOST_UBLAS_ITERATOR_THRESHOLD) <a name="l00631"></a>00631 iterating_matrix_assign&lt;F&gt; (m, e, orientation_category ()); <a name="l00632"></a>00632 <span class="keywordflow">else</span> <a name="l00633"></a>00633 indexing_matrix_assign&lt;F&gt; (m, e, orientation_category ()); <a name="l00634"></a>00634 <span class="preprocessor">#endif</span> <a name="l00635"></a>00635 <span class="preprocessor"></span> } <a name="l00636"></a>00636 <span class="comment">// Packed (proxy) row major case</span> <a name="l00637"></a>00637 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>R, <span class="keyword">class </span>M, <span class="keyword">class </span>E&gt; <a name="l00638"></a>00638 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l00639"></a><a class="code" href="a00595.html#aaedca6d25cd63bcf5d02a121e8281d9e">00639</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#ae1827b7ef118df5f5d498ccd2b34676c">matrix_assign</a> (M &amp;m, <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E&gt;</a> &amp;e, <a class="code" href="a00360.html">packed_proxy_tag</a>, <a class="code" href="a00369.html">row_major_tag</a>) { <a name="l00640"></a>00640 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="a00072.html#a4ea7126fbacb0e0932fde071006121a2" title="type of elements">matrix_traits&lt;E&gt;::value_type</a> expr_value_type; <a name="l00641"></a>00641 <span class="keyword">typedef</span> F&lt;typename M::iterator2::reference, expr_value_type&gt; functor_type; <a name="l00642"></a>00642 <span class="comment">// R unnecessary, make_conformant not required</span> <a name="l00643"></a>00643 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::difference_type difference_type; <a name="l00644"></a>00644 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::value_type value_type; <a name="l00645"></a>00645 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (m.size1 () == e ().size1 (), <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00646"></a>00646 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (m.size2 () == e ().size2 (), <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00647"></a>00647 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span> <a name="l00648"></a>00648 <span class="preprocessor"></span> <a class="code" href="a00218.html" title="A dense matrix of values of type T.">matrix&lt;value_type, row_major&gt;</a> cm (m.size1 (), m.size2 ()); <a name="l00649"></a>00649 indexing_matrix_assign&lt;scalar_assign&gt; (cm, m, <a class="code" href="a00369.html">row_major_tag</a> ()); <a name="l00650"></a>00650 indexing_matrix_assign&lt;F&gt; (cm, e, <a class="code" href="a00369.html">row_major_tag</a> ()); <a name="l00651"></a>00651 <span class="preprocessor">#endif</span> <a name="l00652"></a>00652 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (m.begin1 ()); <a name="l00653"></a>00653 <span class="keyword">typename</span> M::iterator1 it1_end (m.end1 ()); <a name="l00654"></a>00654 <span class="keyword">typename</span> E::const_iterator1 it1e (e ().<a class="code" href="a00595.html#a006ba58a3f4c88d8e8e76e44db481757" title="An object generator that returns a begin1 manipulator.">begin1</a> ()); <a name="l00655"></a>00655 <span class="keyword">typename</span> E::const_iterator1 it1e_end (e ().end1 ()); <a name="l00656"></a>00656 difference_type it1_size (it1_end - it1); <a name="l00657"></a>00657 difference_type it1e_size (it1e_end - it1e); <a name="l00658"></a>00658 difference_type diff1 (0); <a name="l00659"></a>00659 <span class="keywordflow">if</span> (it1_size &gt; 0 &amp;&amp; it1e_size &gt; 0) <a name="l00660"></a>00660 diff1 = it1.index1 () - it1e.index1 (); <a name="l00661"></a>00661 <span class="keywordflow">if</span> (diff1 != 0) { <a name="l00662"></a>00662 difference_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> = (std::min) (diff1, it1e_size); <a name="l00663"></a>00663 <span class="keywordflow">if</span> (size1 &gt; 0) { <a name="l00664"></a>00664 it1e += <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>; <a name="l00665"></a>00665 it1e_size -= <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>; <a name="l00666"></a>00666 diff1 -= <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>; <a name="l00667"></a>00667 } <a name="l00668"></a>00668 size1 = (std::min) (- diff1, it1_size); <a name="l00669"></a>00669 <span class="keywordflow">if</span> (size1 &gt; 0) { <a name="l00670"></a>00670 it1_size -= <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>; <a name="l00671"></a>00671 <span class="keywordflow">if</span> (!functor_type::computed) { <a name="l00672"></a>00672 <span class="keywordflow">while</span> (-- size1 &gt;= 0) { <span class="comment">// zeroing</span> <a name="l00673"></a>00673 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l00674"></a>00674 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (it1.begin ()); <a name="l00675"></a>00675 <span class="keyword">typename</span> M::iterator2 it2_end (it1.end ()); <a name="l00676"></a>00676 <span class="preprocessor">#else</span> <a name="l00677"></a>00677 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1, iterator1_tag ())); <a name="l00678"></a>00678 <span class="keyword">typename</span> M::iterator2 it2_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it1, iterator1_tag ())); <a name="l00679"></a>00679 <span class="preprocessor">#endif</span> <a name="l00680"></a>00680 <span class="preprocessor"></span> difference_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (it2_end - it2); <a name="l00681"></a>00681 <span class="keywordflow">while</span> (-- size2 &gt;= 0) <a name="l00682"></a>00682 functor_type::apply (*it2, expr_value_type<span class="comment">/*zero*/</span>()), ++ it2; <a name="l00683"></a>00683 ++ it1; <a name="l00684"></a>00684 } <a name="l00685"></a>00685 } <span class="keywordflow">else</span> { <a name="l00686"></a>00686 it1 += <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>; <a name="l00687"></a>00687 } <a name="l00688"></a>00688 diff1 += <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>; <a name="l00689"></a>00689 } <a name="l00690"></a>00690 } <a name="l00691"></a>00691 difference_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> ((std::min) (it1_size, it1e_size)); <a name="l00692"></a>00692 it1_size -= <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>; <a name="l00693"></a>00693 it1e_size -= <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>; <a name="l00694"></a>00694 <span class="keywordflow">while</span> (-- size1 &gt;= 0) { <a name="l00695"></a>00695 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l00696"></a>00696 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (it1.begin ()); <a name="l00697"></a>00697 <span class="keyword">typename</span> M::iterator2 it2_end (it1.end ()); <a name="l00698"></a>00698 <span class="keyword">typename</span> E::const_iterator2 it2e (it1e.begin ()); <a name="l00699"></a>00699 <span class="keyword">typename</span> E::const_iterator2 it2e_end (it1e.end ()); <a name="l00700"></a>00700 <span class="preprocessor">#else</span> <a name="l00701"></a>00701 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1, iterator1_tag ())); <a name="l00702"></a>00702 <span class="keyword">typename</span> M::iterator2 it2_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it1, iterator1_tag ())); <a name="l00703"></a>00703 <span class="keyword">typename</span> E::const_iterator2 it2e (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1e, iterator1_tag ())); <a name="l00704"></a>00704 <span class="keyword">typename</span> E::const_iterator2 it2e_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it1e, iterator1_tag ())); <a name="l00705"></a>00705 <span class="preprocessor">#endif</span> <a name="l00706"></a>00706 <span class="preprocessor"></span> difference_type it2_size (it2_end - it2); <a name="l00707"></a>00707 difference_type it2e_size (it2e_end - it2e); <a name="l00708"></a>00708 difference_type diff2 (0); <a name="l00709"></a>00709 <span class="keywordflow">if</span> (it2_size &gt; 0 &amp;&amp; it2e_size &gt; 0) { <a name="l00710"></a>00710 diff2 = it2.index2 () - it2e.index2 (); <a name="l00711"></a>00711 difference_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> = (std::min) (diff2, it2e_size); <a name="l00712"></a>00712 <span class="keywordflow">if</span> (size2 &gt; 0) { <a name="l00713"></a>00713 it2e += <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>; <a name="l00714"></a>00714 it2e_size -= <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>; <a name="l00715"></a>00715 diff2 -= <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>; <a name="l00716"></a>00716 } <a name="l00717"></a>00717 size2 = (std::min) (- diff2, it2_size); <a name="l00718"></a>00718 <span class="keywordflow">if</span> (size2 &gt; 0) { <a name="l00719"></a>00719 it2_size -= <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>; <a name="l00720"></a>00720 <span class="keywordflow">if</span> (!functor_type::computed) { <a name="l00721"></a>00721 <span class="keywordflow">while</span> (-- size2 &gt;= 0) <span class="comment">// zeroing</span> <a name="l00722"></a>00722 functor_type::apply (*it2, expr_value_type<span class="comment">/*zero*/</span>()), ++ it2; <a name="l00723"></a>00723 } <span class="keywordflow">else</span> { <a name="l00724"></a>00724 it2 += <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>; <a name="l00725"></a>00725 } <a name="l00726"></a>00726 diff2 += <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>; <a name="l00727"></a>00727 } <a name="l00728"></a>00728 } <a name="l00729"></a>00729 difference_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> ((std::min) (it2_size, it2e_size)); <a name="l00730"></a>00730 it2_size -= <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>; <a name="l00731"></a>00731 it2e_size -= <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>; <a name="l00732"></a>00732 <span class="keywordflow">while</span> (-- size2 &gt;= 0) <a name="l00733"></a>00733 functor_type::apply (*it2, *it2e), ++ it2, ++ it2e; <a name="l00734"></a>00734 size2 = it2_size; <a name="l00735"></a>00735 <span class="keywordflow">if</span> (!functor_type::computed) { <a name="l00736"></a>00736 <span class="keywordflow">while</span> (-- size2 &gt;= 0) <span class="comment">// zeroing</span> <a name="l00737"></a>00737 functor_type::apply (*it2, expr_value_type<span class="comment">/*zero*/</span>()), ++ it2; <a name="l00738"></a>00738 } <span class="keywordflow">else</span> { <a name="l00739"></a>00739 it2 += <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>; <a name="l00740"></a>00740 } <a name="l00741"></a>00741 ++ it1, ++ it1e; <a name="l00742"></a>00742 } <a name="l00743"></a>00743 size1 = it1_size; <a name="l00744"></a>00744 <span class="keywordflow">if</span> (!functor_type::computed) { <a name="l00745"></a>00745 <span class="keywordflow">while</span> (-- size1 &gt;= 0) { <span class="comment">// zeroing</span> <a name="l00746"></a>00746 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l00747"></a>00747 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (it1.begin ()); <a name="l00748"></a>00748 <span class="keyword">typename</span> M::iterator2 it2_end (it1.end ()); <a name="l00749"></a>00749 <span class="preprocessor">#else</span> <a name="l00750"></a>00750 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1, iterator1_tag ())); <a name="l00751"></a>00751 <span class="keyword">typename</span> M::iterator2 it2_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it1, iterator1_tag ())); <a name="l00752"></a>00752 <span class="preprocessor">#endif</span> <a name="l00753"></a>00753 <span class="preprocessor"></span> difference_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (it2_end - it2); <a name="l00754"></a>00754 <span class="keywordflow">while</span> (-- size2 &gt;= 0) <a name="l00755"></a>00755 functor_type::apply (*it2, expr_value_type<span class="comment">/*zero*/</span>()), ++ it2; <a name="l00756"></a>00756 ++ it1; <a name="l00757"></a>00757 } <a name="l00758"></a>00758 } <span class="keywordflow">else</span> { <a name="l00759"></a>00759 it1 += <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>; <a name="l00760"></a>00760 } <a name="l00761"></a>00761 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span> <a name="l00762"></a>00762 <span class="preprocessor"></span> <span class="keywordflow">if</span> (! <a class="code" href="a00592.html">disable_type_check&lt;bool&gt;::value</a>) <a name="l00763"></a>00763 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (<a class="code" href="a00653.html#a43a1eab42456d66c868af16c340e8246">detail::expression_type_check</a> (m, cm), <a class="code" href="a00132.html">external_logic</a> ()); <a name="l00764"></a>00764 <span class="preprocessor">#endif</span> <a name="l00765"></a>00765 <span class="preprocessor"></span> } <a name="l00766"></a>00766 <span class="comment">// Packed (proxy) column major case</span> <a name="l00767"></a>00767 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>R, <span class="keyword">class </span>M, <span class="keyword">class </span>E&gt; <a name="l00768"></a>00768 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l00769"></a><a class="code" href="a00595.html#a845793bc005fc378a9f95b17f2673f8d">00769</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#ae1827b7ef118df5f5d498ccd2b34676c">matrix_assign</a> (M &amp;m, <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E&gt;</a> &amp;e, <a class="code" href="a00360.html">packed_proxy_tag</a>, <a class="code" href="a00052.html">column_major_tag</a>) { <a name="l00770"></a>00770 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="a00072.html#a4ea7126fbacb0e0932fde071006121a2" title="type of elements">matrix_traits&lt;E&gt;::value_type</a> expr_value_type; <a name="l00771"></a>00771 <span class="keyword">typedef</span> F&lt;typename M::iterator1::reference, expr_value_type&gt; functor_type; <a name="l00772"></a>00772 <span class="comment">// R unnecessary, make_conformant not required</span> <a name="l00773"></a>00773 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::difference_type difference_type; <a name="l00774"></a>00774 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::value_type value_type; <a name="l00775"></a>00775 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (m.size2 () == e ().size2 (), <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00776"></a>00776 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (m.size1 () == e ().size1 (), <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00777"></a>00777 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span> <a name="l00778"></a>00778 <span class="preprocessor"></span> <a class="code" href="a00218.html" title="A dense matrix of values of type T.">matrix&lt;value_type, column_major&gt;</a> cm (m.size1 (), m.size2 ()); <a name="l00779"></a>00779 indexing_matrix_assign&lt;scalar_assign&gt; (cm, m, <a class="code" href="a00052.html">column_major_tag</a> ()); <a name="l00780"></a>00780 indexing_matrix_assign&lt;F&gt; (cm, e, <a class="code" href="a00052.html">column_major_tag</a> ()); <a name="l00781"></a>00781 <span class="preprocessor">#endif</span> <a name="l00782"></a>00782 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (m.begin2 ()); <a name="l00783"></a>00783 <span class="keyword">typename</span> M::iterator2 it2_end (m.end2 ()); <a name="l00784"></a>00784 <span class="keyword">typename</span> E::const_iterator2 it2e (e ().<a class="code" href="a00595.html#a0a5c2ce4e11de4e7ea5ccd122073052c" title="An object generator that returns a begin2 manipulator to be used to traverse a matrix.">begin2</a> ()); <a name="l00785"></a>00785 <span class="keyword">typename</span> E::const_iterator2 it2e_end (e ().end2 ()); <a name="l00786"></a>00786 difference_type it2_size (it2_end - it2); <a name="l00787"></a>00787 difference_type it2e_size (it2e_end - it2e); <a name="l00788"></a>00788 difference_type diff2 (0); <a name="l00789"></a>00789 <span class="keywordflow">if</span> (it2_size &gt; 0 &amp;&amp; it2e_size &gt; 0) <a name="l00790"></a>00790 diff2 = it2.index2 () - it2e.index2 (); <a name="l00791"></a>00791 <span class="keywordflow">if</span> (diff2 != 0) { <a name="l00792"></a>00792 difference_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> = (std::min) (diff2, it2e_size); <a name="l00793"></a>00793 <span class="keywordflow">if</span> (size2 &gt; 0) { <a name="l00794"></a>00794 it2e += <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>; <a name="l00795"></a>00795 it2e_size -= <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>; <a name="l00796"></a>00796 diff2 -= <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>; <a name="l00797"></a>00797 } <a name="l00798"></a>00798 size2 = (std::min) (- diff2, it2_size); <a name="l00799"></a>00799 <span class="keywordflow">if</span> (size2 &gt; 0) { <a name="l00800"></a>00800 it2_size -= <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>; <a name="l00801"></a>00801 <span class="keywordflow">if</span> (!functor_type::computed) { <a name="l00802"></a>00802 <span class="keywordflow">while</span> (-- size2 &gt;= 0) { <span class="comment">// zeroing</span> <a name="l00803"></a>00803 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l00804"></a>00804 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (it2.begin ()); <a name="l00805"></a>00805 <span class="keyword">typename</span> M::iterator1 it1_end (it2.end ()); <a name="l00806"></a>00806 <span class="preprocessor">#else</span> <a name="l00807"></a>00807 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2, iterator2_tag ())); <a name="l00808"></a>00808 <span class="keyword">typename</span> M::iterator1 it1_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it2, iterator2_tag ())); <a name="l00809"></a>00809 <span class="preprocessor">#endif</span> <a name="l00810"></a>00810 <span class="preprocessor"></span> difference_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (it1_end - it1); <a name="l00811"></a>00811 <span class="keywordflow">while</span> (-- size1 &gt;= 0) <a name="l00812"></a>00812 functor_type::apply (*it1, expr_value_type<span class="comment">/*zero*/</span>()), ++ it1; <a name="l00813"></a>00813 ++ it2; <a name="l00814"></a>00814 } <a name="l00815"></a>00815 } <span class="keywordflow">else</span> { <a name="l00816"></a>00816 it2 += <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>; <a name="l00817"></a>00817 } <a name="l00818"></a>00818 diff2 += <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>; <a name="l00819"></a>00819 } <a name="l00820"></a>00820 } <a name="l00821"></a>00821 difference_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> ((std::min) (it2_size, it2e_size)); <a name="l00822"></a>00822 it2_size -= <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>; <a name="l00823"></a>00823 it2e_size -= <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>; <a name="l00824"></a>00824 <span class="keywordflow">while</span> (-- size2 &gt;= 0) { <a name="l00825"></a>00825 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l00826"></a>00826 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (it2.begin ()); <a name="l00827"></a>00827 <span class="keyword">typename</span> M::iterator1 it1_end (it2.end ()); <a name="l00828"></a>00828 <span class="keyword">typename</span> E::const_iterator1 it1e (it2e.begin ()); <a name="l00829"></a>00829 <span class="keyword">typename</span> E::const_iterator1 it1e_end (it2e.end ()); <a name="l00830"></a>00830 <span class="preprocessor">#else</span> <a name="l00831"></a>00831 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2, iterator2_tag ())); <a name="l00832"></a>00832 <span class="keyword">typename</span> M::iterator1 it1_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it2, iterator2_tag ())); <a name="l00833"></a>00833 <span class="keyword">typename</span> E::const_iterator1 it1e (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2e, iterator2_tag ())); <a name="l00834"></a>00834 <span class="keyword">typename</span> E::const_iterator1 it1e_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it2e, iterator2_tag ())); <a name="l00835"></a>00835 <span class="preprocessor">#endif</span> <a name="l00836"></a>00836 <span class="preprocessor"></span> difference_type it1_size (it1_end - it1); <a name="l00837"></a>00837 difference_type it1e_size (it1e_end - it1e); <a name="l00838"></a>00838 difference_type diff1 (0); <a name="l00839"></a>00839 <span class="keywordflow">if</span> (it1_size &gt; 0 &amp;&amp; it1e_size &gt; 0) { <a name="l00840"></a>00840 diff1 = it1.index1 () - it1e.index1 (); <a name="l00841"></a>00841 difference_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> = (std::min) (diff1, it1e_size); <a name="l00842"></a>00842 <span class="keywordflow">if</span> (size1 &gt; 0) { <a name="l00843"></a>00843 it1e += <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>; <a name="l00844"></a>00844 it1e_size -= <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>; <a name="l00845"></a>00845 diff1 -= <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>; <a name="l00846"></a>00846 } <a name="l00847"></a>00847 size1 = (std::min) (- diff1, it1_size); <a name="l00848"></a>00848 <span class="keywordflow">if</span> (size1 &gt; 0) { <a name="l00849"></a>00849 it1_size -= <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>; <a name="l00850"></a>00850 <span class="keywordflow">if</span> (!functor_type::computed) { <a name="l00851"></a>00851 <span class="keywordflow">while</span> (-- size1 &gt;= 0) <span class="comment">// zeroing</span> <a name="l00852"></a>00852 functor_type::apply (*it1, expr_value_type<span class="comment">/*zero*/</span>()), ++ it1; <a name="l00853"></a>00853 } <span class="keywordflow">else</span> { <a name="l00854"></a>00854 it1 += <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>; <a name="l00855"></a>00855 } <a name="l00856"></a>00856 diff1 += <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>; <a name="l00857"></a>00857 } <a name="l00858"></a>00858 } <a name="l00859"></a>00859 difference_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> ((std::min) (it1_size, it1e_size)); <a name="l00860"></a>00860 it1_size -= <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>; <a name="l00861"></a>00861 it1e_size -= <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>; <a name="l00862"></a>00862 <span class="keywordflow">while</span> (-- size1 &gt;= 0) <a name="l00863"></a>00863 functor_type::apply (*it1, *it1e), ++ it1, ++ it1e; <a name="l00864"></a>00864 size1 = it1_size; <a name="l00865"></a>00865 <span class="keywordflow">if</span> (!functor_type::computed) { <a name="l00866"></a>00866 <span class="keywordflow">while</span> (-- size1 &gt;= 0) <span class="comment">// zeroing</span> <a name="l00867"></a>00867 functor_type::apply (*it1, expr_value_type<span class="comment">/*zero*/</span>()), ++ it1; <a name="l00868"></a>00868 } <span class="keywordflow">else</span> { <a name="l00869"></a>00869 it1 += <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>; <a name="l00870"></a>00870 } <a name="l00871"></a>00871 ++ it2, ++ it2e; <a name="l00872"></a>00872 } <a name="l00873"></a>00873 size2 = it2_size; <a name="l00874"></a>00874 <span class="keywordflow">if</span> (!functor_type::computed) { <a name="l00875"></a>00875 <span class="keywordflow">while</span> (-- size2 &gt;= 0) { <span class="comment">// zeroing</span> <a name="l00876"></a>00876 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l00877"></a>00877 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (it2.begin ()); <a name="l00878"></a>00878 <span class="keyword">typename</span> M::iterator1 it1_end (it2.end ()); <a name="l00879"></a>00879 <span class="preprocessor">#else</span> <a name="l00880"></a>00880 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2, iterator2_tag ())); <a name="l00881"></a>00881 <span class="keyword">typename</span> M::iterator1 it1_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it2, iterator2_tag ())); <a name="l00882"></a>00882 <span class="preprocessor">#endif</span> <a name="l00883"></a>00883 <span class="preprocessor"></span> difference_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (it1_end - it1); <a name="l00884"></a>00884 <span class="keywordflow">while</span> (-- size1 &gt;= 0) <a name="l00885"></a>00885 functor_type::apply (*it1, expr_value_type<span class="comment">/*zero*/</span>()), ++ it1; <a name="l00886"></a>00886 ++ it2; <a name="l00887"></a>00887 } <a name="l00888"></a>00888 } <span class="keywordflow">else</span> { <a name="l00889"></a>00889 it2 += <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>; <a name="l00890"></a>00890 } <a name="l00891"></a>00891 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span> <a name="l00892"></a>00892 <span class="preprocessor"></span> <span class="keywordflow">if</span> (! <a class="code" href="a00592.html">disable_type_check&lt;bool&gt;::value</a>) <a name="l00893"></a>00893 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (<a class="code" href="a00653.html#a43a1eab42456d66c868af16c340e8246">detail::expression_type_check</a> (m, cm), <a class="code" href="a00132.html">external_logic</a> ()); <a name="l00894"></a>00894 <span class="preprocessor">#endif</span> <a name="l00895"></a>00895 <span class="preprocessor"></span> } <a name="l00896"></a>00896 <span class="comment">// Sparse row major case</span> <a name="l00897"></a>00897 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>R, <span class="keyword">class </span>M, <span class="keyword">class </span>E&gt; <a name="l00898"></a>00898 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l00899"></a><a class="code" href="a00595.html#af6f908c67a325348bb4527367dbefb57">00899</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#ae1827b7ef118df5f5d498ccd2b34676c">matrix_assign</a> (M &amp;m, <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E&gt;</a> &amp;e, <a class="code" href="a00410.html">sparse_tag</a>, <a class="code" href="a00369.html">row_major_tag</a>) { <a name="l00900"></a>00900 <span class="keyword">typedef</span> F&lt;typename M::iterator2::reference, typename E::value_type&gt; functor_type; <a name="l00901"></a>00901 <span class="comment">// R unnecessary, make_conformant not required</span> <a name="l00902"></a>00902 BOOST_STATIC_ASSERT ((!functor_type::computed)); <a name="l00903"></a>00903 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (m.size1 () == e ().size1 (), <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00904"></a>00904 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (m.size2 () == e ().size2 (), <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00905"></a>00905 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::value_type value_type; <a name="l00906"></a>00906 <span class="comment">// Sparse type has no numeric constraints to check</span> <a name="l00907"></a>00907 <a name="l00908"></a>00908 m.clear (); <a name="l00909"></a>00909 <span class="keyword">typename</span> E::const_iterator1 it1e (e ().<a class="code" href="a00595.html#a006ba58a3f4c88d8e8e76e44db481757" title="An object generator that returns a begin1 manipulator.">begin1</a> ()); <a name="l00910"></a>00910 <span class="keyword">typename</span> E::const_iterator1 it1e_end (e ().end1 ()); <a name="l00911"></a>00911 <span class="keywordflow">while</span> (it1e != it1e_end) { <a name="l00912"></a>00912 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l00913"></a>00913 <span class="preprocessor"></span> <span class="keyword">typename</span> E::const_iterator2 it2e (it1e.begin ()); <a name="l00914"></a>00914 <span class="keyword">typename</span> E::const_iterator2 it2e_end (it1e.end ()); <a name="l00915"></a>00915 <span class="preprocessor">#else</span> <a name="l00916"></a>00916 <span class="preprocessor"></span> <span class="keyword">typename</span> E::const_iterator2 it2e (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1e, iterator1_tag ())); <a name="l00917"></a>00917 <span class="keyword">typename</span> E::const_iterator2 it2e_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it1e, iterator1_tag ())); <a name="l00918"></a>00918 <span class="preprocessor">#endif</span> <a name="l00919"></a>00919 <span class="preprocessor"></span> <span class="keywordflow">while</span> (it2e != it2e_end) { <a name="l00920"></a>00920 value_type t (*it2e); <a name="l00921"></a>00921 <span class="keywordflow">if</span> (t != value_type<span class="comment">/*zero*/</span>()) <a name="l00922"></a>00922 m.insert_element (it2e.index1 (), it2e.index2 (), t); <a name="l00923"></a>00923 ++ it2e; <a name="l00924"></a>00924 } <a name="l00925"></a>00925 ++ it1e; <a name="l00926"></a>00926 } <a name="l00927"></a>00927 } <a name="l00928"></a>00928 <span class="comment">// Sparse column major case</span> <a name="l00929"></a>00929 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>R, <span class="keyword">class </span>M, <span class="keyword">class </span>E&gt; <a name="l00930"></a>00930 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l00931"></a><a class="code" href="a00595.html#ab2c95028930c9b4c24c6525390536df4">00931</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#ae1827b7ef118df5f5d498ccd2b34676c">matrix_assign</a> (M &amp;m, <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E&gt;</a> &amp;e, <a class="code" href="a00410.html">sparse_tag</a>, <a class="code" href="a00052.html">column_major_tag</a>) { <a name="l00932"></a>00932 <span class="keyword">typedef</span> F&lt;typename M::iterator1::reference, typename E::value_type&gt; functor_type; <a name="l00933"></a>00933 <span class="comment">// R unnecessary, make_conformant not required</span> <a name="l00934"></a>00934 BOOST_STATIC_ASSERT ((!functor_type::computed)); <a name="l00935"></a>00935 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (m.size1 () == e ().size1 (), <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00936"></a>00936 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (m.size2 () == e ().size2 (), <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00937"></a>00937 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::value_type value_type; <a name="l00938"></a>00938 <span class="comment">// Sparse type has no numeric constraints to check</span> <a name="l00939"></a>00939 <a name="l00940"></a>00940 m.clear (); <a name="l00941"></a>00941 <span class="keyword">typename</span> E::const_iterator2 it2e (e ().<a class="code" href="a00595.html#a0a5c2ce4e11de4e7ea5ccd122073052c" title="An object generator that returns a begin2 manipulator to be used to traverse a matrix.">begin2</a> ()); <a name="l00942"></a>00942 <span class="keyword">typename</span> E::const_iterator2 it2e_end (e ().end2 ()); <a name="l00943"></a>00943 <span class="keywordflow">while</span> (it2e != it2e_end) { <a name="l00944"></a>00944 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l00945"></a>00945 <span class="preprocessor"></span> <span class="keyword">typename</span> E::const_iterator1 it1e (it2e.begin ()); <a name="l00946"></a>00946 <span class="keyword">typename</span> E::const_iterator1 it1e_end (it2e.end ()); <a name="l00947"></a>00947 <span class="preprocessor">#else</span> <a name="l00948"></a>00948 <span class="preprocessor"></span> <span class="keyword">typename</span> E::const_iterator1 it1e (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2e, iterator2_tag ())); <a name="l00949"></a>00949 <span class="keyword">typename</span> E::const_iterator1 it1e_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it2e, iterator2_tag ())); <a name="l00950"></a>00950 <span class="preprocessor">#endif</span> <a name="l00951"></a>00951 <span class="preprocessor"></span> <span class="keywordflow">while</span> (it1e != it1e_end) { <a name="l00952"></a>00952 value_type t (*it1e); <a name="l00953"></a>00953 <span class="keywordflow">if</span> (t != value_type<span class="comment">/*zero*/</span>()) <a name="l00954"></a>00954 m.insert_element (it1e.index1 (), it1e.index2 (), t); <a name="l00955"></a>00955 ++ it1e; <a name="l00956"></a>00956 } <a name="l00957"></a>00957 ++ it2e; <a name="l00958"></a>00958 } <a name="l00959"></a>00959 } <a name="l00960"></a>00960 <span class="comment">// Sparse proxy or functional row major case</span> <a name="l00961"></a>00961 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>R, <span class="keyword">class </span>M, <span class="keyword">class </span>E&gt; <a name="l00962"></a>00962 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l00963"></a><a class="code" href="a00595.html#ae6f6037932c15f327a2936d06fe42c4c">00963</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#ae1827b7ef118df5f5d498ccd2b34676c">matrix_assign</a> (M &amp;m, <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E&gt;</a> &amp;e, <a class="code" href="a00409.html">sparse_proxy_tag</a>, <a class="code" href="a00369.html">row_major_tag</a>) { <a name="l00964"></a>00964 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="a00072.html#a4ea7126fbacb0e0932fde071006121a2" title="type of elements">matrix_traits&lt;E&gt;::value_type</a> expr_value_type; <a name="l00965"></a>00965 <span class="keyword">typedef</span> F&lt;typename M::iterator2::reference, expr_value_type&gt; functor_type; <a name="l00966"></a>00966 <span class="keyword">typedef</span> R conformant_restrict_type; <a name="l00967"></a>00967 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::size_type size_type; <a name="l00968"></a>00968 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::difference_type difference_type; <a name="l00969"></a>00969 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::value_type value_type; <a name="l00970"></a>00970 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (m.size1 () == e ().size1 (), <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00971"></a>00971 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (m.size2 () == e ().size2 (), <a class="code" href="a00016.html">bad_size</a> ()); <a name="l00972"></a>00972 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span> <a name="l00973"></a>00973 <span class="preprocessor"></span> <a class="code" href="a00218.html" title="A dense matrix of values of type T.">matrix&lt;value_type, row_major&gt;</a> cm (m.size1 (), m.size2 ()); <a name="l00974"></a>00974 indexing_matrix_assign&lt;scalar_assign&gt; (cm, m, <a class="code" href="a00369.html">row_major_tag</a> ()); <a name="l00975"></a>00975 indexing_matrix_assign&lt;F&gt; (cm, e, <a class="code" href="a00369.html">row_major_tag</a> ()); <a name="l00976"></a>00976 <span class="preprocessor">#endif</span> <a name="l00977"></a>00977 <span class="preprocessor"></span> <a class="code" href="a00653.html#af86e444b5972e9b0ee8afbbcd533bd7a">detail::make_conformant</a> (m, e, <a class="code" href="a00369.html">row_major_tag</a> (), conformant_restrict_type ()); <a name="l00978"></a>00978 <a name="l00979"></a>00979 <span class="keyword">typename</span> M::iterator1 it1 (m.begin1 ()); <a name="l00980"></a>00980 <span class="keyword">typename</span> M::iterator1 it1_end (m.end1 ()); <a name="l00981"></a>00981 <span class="keyword">typename</span> E::const_iterator1 it1e (e ().<a class="code" href="a00595.html#a006ba58a3f4c88d8e8e76e44db481757" title="An object generator that returns a begin1 manipulator.">begin1</a> ()); <a name="l00982"></a>00982 <span class="keyword">typename</span> E::const_iterator1 it1e_end (e ().end1 ()); <a name="l00983"></a>00983 <span class="keywordflow">while</span> (it1 != it1_end &amp;&amp; it1e != it1e_end) { <a name="l00984"></a>00984 difference_type compare = it1.index1 () - it1e.index1 (); <a name="l00985"></a>00985 <span class="keywordflow">if</span> (compare == 0) { <a name="l00986"></a>00986 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l00987"></a>00987 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (it1.begin ()); <a name="l00988"></a>00988 <span class="keyword">typename</span> M::iterator2 it2_end (it1.end ()); <a name="l00989"></a>00989 <span class="keyword">typename</span> E::const_iterator2 it2e (it1e.begin ()); <a name="l00990"></a>00990 <span class="keyword">typename</span> E::const_iterator2 it2e_end (it1e.end ()); <a name="l00991"></a>00991 <span class="preprocessor">#else</span> <a name="l00992"></a>00992 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1, iterator1_tag ())); <a name="l00993"></a>00993 <span class="keyword">typename</span> M::iterator2 it2_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it1, iterator1_tag ())); <a name="l00994"></a>00994 <span class="keyword">typename</span> E::const_iterator2 it2e (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1e, iterator1_tag ())); <a name="l00995"></a>00995 <span class="keyword">typename</span> E::const_iterator2 it2e_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it1e, iterator1_tag ())); <a name="l00996"></a>00996 <span class="preprocessor">#endif</span> <a name="l00997"></a>00997 <span class="preprocessor"></span> <span class="keywordflow">if</span> (it2 != it2_end &amp;&amp; it2e != it2e_end) { <a name="l00998"></a>00998 size_type it2_index = it2.index2 (), it2e_index = it2e.index2 (); <a name="l00999"></a>00999 <span class="keywordflow">while</span> (<span class="keyword">true</span>) { <a name="l01000"></a>01000 difference_type compare = it2_index - it2e_index; <a name="l01001"></a>01001 <span class="keywordflow">if</span> (compare == 0) { <a name="l01002"></a>01002 functor_type::apply (*it2, *it2e); <a name="l01003"></a>01003 ++ it2, ++ it2e; <a name="l01004"></a>01004 <span class="keywordflow">if</span> (it2 != it2_end &amp;&amp; it2e != it2e_end) { <a name="l01005"></a>01005 it2_index = it2.index2 (); <a name="l01006"></a>01006 it2e_index = it2e.index2 (); <a name="l01007"></a>01007 } <span class="keywordflow">else</span> <a name="l01008"></a>01008 <span class="keywordflow">break</span>; <a name="l01009"></a>01009 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (compare &lt; 0) { <a name="l01010"></a>01010 <span class="keywordflow">if</span> (!functor_type::computed) { <a name="l01011"></a>01011 functor_type::apply (*it2, expr_value_type<span class="comment">/*zero*/</span>()); <a name="l01012"></a>01012 ++ it2; <a name="l01013"></a>01013 } <span class="keywordflow">else</span> <a name="l01014"></a>01014 <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it2, it2_end, - compare); <a name="l01015"></a>01015 <span class="keywordflow">if</span> (it2 != it2_end) <a name="l01016"></a>01016 it2_index = it2.index2 (); <a name="l01017"></a>01017 <span class="keywordflow">else</span> <a name="l01018"></a>01018 <span class="keywordflow">break</span>; <a name="l01019"></a>01019 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (compare &gt; 0) { <a name="l01020"></a>01020 <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it2e, it2e_end, compare); <a name="l01021"></a>01021 <span class="keywordflow">if</span> (it2e != it2e_end) <a name="l01022"></a>01022 it2e_index = it2e.index2 (); <a name="l01023"></a>01023 <span class="keywordflow">else</span> <a name="l01024"></a>01024 <span class="keywordflow">break</span>; <a name="l01025"></a>01025 } <a name="l01026"></a>01026 } <a name="l01027"></a>01027 } <a name="l01028"></a>01028 <span class="keywordflow">if</span> (!functor_type::computed) { <a name="l01029"></a>01029 <span class="keywordflow">while</span> (it2 != it2_end) { <span class="comment">// zeroing</span> <a name="l01030"></a>01030 functor_type::apply (*it2, expr_value_type<span class="comment">/*zero*/</span>()); <a name="l01031"></a>01031 ++ it2; <a name="l01032"></a>01032 } <a name="l01033"></a>01033 } <span class="keywordflow">else</span> { <a name="l01034"></a>01034 it2 = it2_end; <a name="l01035"></a>01035 } <a name="l01036"></a>01036 ++ it1, ++ it1e; <a name="l01037"></a>01037 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (compare &lt; 0) { <a name="l01038"></a>01038 <span class="keywordflow">if</span> (!functor_type::computed) { <a name="l01039"></a>01039 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l01040"></a>01040 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (it1.begin ()); <a name="l01041"></a>01041 <span class="keyword">typename</span> M::iterator2 it2_end (it1.end ()); <a name="l01042"></a>01042 <span class="preprocessor">#else</span> <a name="l01043"></a>01043 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1, iterator1_tag ())); <a name="l01044"></a>01044 <span class="keyword">typename</span> M::iterator2 it2_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it1, iterator1_tag ())); <a name="l01045"></a>01045 <span class="preprocessor">#endif</span> <a name="l01046"></a>01046 <span class="preprocessor"></span> <span class="keywordflow">while</span> (it2 != it2_end) { <span class="comment">// zeroing</span> <a name="l01047"></a>01047 functor_type::apply (*it2, expr_value_type<span class="comment">/*zero*/</span>()); <a name="l01048"></a>01048 ++ it2; <a name="l01049"></a>01049 } <a name="l01050"></a>01050 ++ it1; <a name="l01051"></a>01051 } <span class="keywordflow">else</span> { <a name="l01052"></a>01052 <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it1, it1_end, - compare); <a name="l01053"></a>01053 } <a name="l01054"></a>01054 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (compare &gt; 0) { <a name="l01055"></a>01055 <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it1e, it1e_end, compare); <a name="l01056"></a>01056 } <a name="l01057"></a>01057 } <a name="l01058"></a>01058 <span class="keywordflow">if</span> (!functor_type::computed) { <a name="l01059"></a>01059 <span class="keywordflow">while</span> (it1 != it1_end) { <a name="l01060"></a>01060 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l01061"></a>01061 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (it1.begin ()); <a name="l01062"></a>01062 <span class="keyword">typename</span> M::iterator2 it2_end (it1.end ()); <a name="l01063"></a>01063 <span class="preprocessor">#else</span> <a name="l01064"></a>01064 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1, iterator1_tag ())); <a name="l01065"></a>01065 <span class="keyword">typename</span> M::iterator2 it2_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it1, iterator1_tag ())); <a name="l01066"></a>01066 <span class="preprocessor">#endif</span> <a name="l01067"></a>01067 <span class="preprocessor"></span> <span class="keywordflow">while</span> (it2 != it2_end) { <span class="comment">// zeroing</span> <a name="l01068"></a>01068 functor_type::apply (*it2, expr_value_type<span class="comment">/*zero*/</span>()); <a name="l01069"></a>01069 ++ it2; <a name="l01070"></a>01070 } <a name="l01071"></a>01071 ++ it1; <a name="l01072"></a>01072 } <a name="l01073"></a>01073 } <span class="keywordflow">else</span> { <a name="l01074"></a>01074 it1 = it1_end; <a name="l01075"></a>01075 } <a name="l01076"></a>01076 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span> <a name="l01077"></a>01077 <span class="preprocessor"></span> <span class="keywordflow">if</span> (! <a class="code" href="a00592.html">disable_type_check&lt;bool&gt;::value</a>) <a name="l01078"></a>01078 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (<a class="code" href="a00653.html#a43a1eab42456d66c868af16c340e8246">detail::expression_type_check</a> (m, cm), <a class="code" href="a00132.html">external_logic</a> ()); <a name="l01079"></a>01079 <span class="preprocessor">#endif</span> <a name="l01080"></a>01080 <span class="preprocessor"></span> } <a name="l01081"></a>01081 <span class="comment">// Sparse proxy or functional column major case</span> <a name="l01082"></a>01082 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>R, <span class="keyword">class </span>M, <span class="keyword">class </span>E&gt; <a name="l01083"></a>01083 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l01084"></a><a class="code" href="a00595.html#a759e1a866a0fd9910013b8f612c9d89b">01084</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#ae1827b7ef118df5f5d498ccd2b34676c">matrix_assign</a> (M &amp;m, <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E&gt;</a> &amp;e, <a class="code" href="a00409.html">sparse_proxy_tag</a>, <a class="code" href="a00052.html">column_major_tag</a>) { <a name="l01085"></a>01085 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="a00072.html#a4ea7126fbacb0e0932fde071006121a2" title="type of elements">matrix_traits&lt;E&gt;::value_type</a> expr_value_type; <a name="l01086"></a>01086 <span class="keyword">typedef</span> F&lt;typename M::iterator1::reference, expr_value_type&gt; functor_type; <a name="l01087"></a>01087 <span class="keyword">typedef</span> R conformant_restrict_type; <a name="l01088"></a>01088 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::size_type size_type; <a name="l01089"></a>01089 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::difference_type difference_type; <a name="l01090"></a>01090 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::value_type value_type; <a name="l01091"></a>01091 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (m.size1 () == e ().size1 (), <a class="code" href="a00016.html">bad_size</a> ()); <a name="l01092"></a>01092 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (m.size2 () == e ().size2 (), <a class="code" href="a00016.html">bad_size</a> ()); <a name="l01093"></a>01093 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span> <a name="l01094"></a>01094 <span class="preprocessor"></span> <a class="code" href="a00218.html" title="A dense matrix of values of type T.">matrix&lt;value_type, column_major&gt;</a> cm (m.size1 (), m.size2 ()); <a name="l01095"></a>01095 indexing_matrix_assign&lt;scalar_assign&gt; (cm, m, <a class="code" href="a00052.html">column_major_tag</a> ()); <a name="l01096"></a>01096 indexing_matrix_assign&lt;F&gt; (cm, e, <a class="code" href="a00052.html">column_major_tag</a> ()); <a name="l01097"></a>01097 <span class="preprocessor">#endif</span> <a name="l01098"></a>01098 <span class="preprocessor"></span> <a class="code" href="a00653.html#af86e444b5972e9b0ee8afbbcd533bd7a">detail::make_conformant</a> (m, e, <a class="code" href="a00052.html">column_major_tag</a> (), conformant_restrict_type ()); <a name="l01099"></a>01099 <a name="l01100"></a>01100 <span class="keyword">typename</span> M::iterator2 it2 (m.begin2 ()); <a name="l01101"></a>01101 <span class="keyword">typename</span> M::iterator2 it2_end (m.end2 ()); <a name="l01102"></a>01102 <span class="keyword">typename</span> E::const_iterator2 it2e (e ().<a class="code" href="a00595.html#a0a5c2ce4e11de4e7ea5ccd122073052c" title="An object generator that returns a begin2 manipulator to be used to traverse a matrix.">begin2</a> ()); <a name="l01103"></a>01103 <span class="keyword">typename</span> E::const_iterator2 it2e_end (e ().end2 ()); <a name="l01104"></a>01104 <span class="keywordflow">while</span> (it2 != it2_end &amp;&amp; it2e != it2e_end) { <a name="l01105"></a>01105 difference_type compare = it2.index2 () - it2e.index2 (); <a name="l01106"></a>01106 <span class="keywordflow">if</span> (compare == 0) { <a name="l01107"></a>01107 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l01108"></a>01108 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (it2.begin ()); <a name="l01109"></a>01109 <span class="keyword">typename</span> M::iterator1 it1_end (it2.end ()); <a name="l01110"></a>01110 <span class="keyword">typename</span> E::const_iterator1 it1e (it2e.begin ()); <a name="l01111"></a>01111 <span class="keyword">typename</span> E::const_iterator1 it1e_end (it2e.end ()); <a name="l01112"></a>01112 <span class="preprocessor">#else</span> <a name="l01113"></a>01113 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2, iterator2_tag ())); <a name="l01114"></a>01114 <span class="keyword">typename</span> M::iterator1 it1_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it2, iterator2_tag ())); <a name="l01115"></a>01115 <span class="keyword">typename</span> E::const_iterator1 it1e (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2e, iterator2_tag ())); <a name="l01116"></a>01116 <span class="keyword">typename</span> E::const_iterator1 it1e_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it2e, iterator2_tag ())); <a name="l01117"></a>01117 <span class="preprocessor">#endif</span> <a name="l01118"></a>01118 <span class="preprocessor"></span> <span class="keywordflow">if</span> (it1 != it1_end &amp;&amp; it1e != it1e_end) { <a name="l01119"></a>01119 size_type it1_index = it1.index1 (), it1e_index = it1e.index1 (); <a name="l01120"></a>01120 <span class="keywordflow">while</span> (<span class="keyword">true</span>) { <a name="l01121"></a>01121 difference_type compare = it1_index - it1e_index; <a name="l01122"></a>01122 <span class="keywordflow">if</span> (compare == 0) { <a name="l01123"></a>01123 functor_type::apply (*it1, *it1e); <a name="l01124"></a>01124 ++ it1, ++ it1e; <a name="l01125"></a>01125 <span class="keywordflow">if</span> (it1 != it1_end &amp;&amp; it1e != it1e_end) { <a name="l01126"></a>01126 it1_index = it1.index1 (); <a name="l01127"></a>01127 it1e_index = it1e.index1 (); <a name="l01128"></a>01128 } <span class="keywordflow">else</span> <a name="l01129"></a>01129 <span class="keywordflow">break</span>; <a name="l01130"></a>01130 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (compare &lt; 0) { <a name="l01131"></a>01131 <span class="keywordflow">if</span> (!functor_type::computed) { <a name="l01132"></a>01132 functor_type::apply (*it1, expr_value_type<span class="comment">/*zero*/</span>()); <span class="comment">// zeroing</span> <a name="l01133"></a>01133 ++ it1; <a name="l01134"></a>01134 } <span class="keywordflow">else</span> <a name="l01135"></a>01135 <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it1, it1_end, - compare); <a name="l01136"></a>01136 <span class="keywordflow">if</span> (it1 != it1_end) <a name="l01137"></a>01137 it1_index = it1.index1 (); <a name="l01138"></a>01138 <span class="keywordflow">else</span> <a name="l01139"></a>01139 <span class="keywordflow">break</span>; <a name="l01140"></a>01140 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (compare &gt; 0) { <a name="l01141"></a>01141 <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it1e, it1e_end, compare); <a name="l01142"></a>01142 <span class="keywordflow">if</span> (it1e != it1e_end) <a name="l01143"></a>01143 it1e_index = it1e.index1 (); <a name="l01144"></a>01144 <span class="keywordflow">else</span> <a name="l01145"></a>01145 <span class="keywordflow">break</span>; <a name="l01146"></a>01146 } <a name="l01147"></a>01147 } <a name="l01148"></a>01148 } <a name="l01149"></a>01149 <span class="keywordflow">if</span> (!functor_type::computed) { <a name="l01150"></a>01150 <span class="keywordflow">while</span> (it1 != it1_end) { <span class="comment">// zeroing</span> <a name="l01151"></a>01151 functor_type::apply (*it1, expr_value_type<span class="comment">/*zero*/</span>()); <a name="l01152"></a>01152 ++ it1; <a name="l01153"></a>01153 } <a name="l01154"></a>01154 } <span class="keywordflow">else</span> { <a name="l01155"></a>01155 it1 = it1_end; <a name="l01156"></a>01156 } <a name="l01157"></a>01157 ++ it2, ++ it2e; <a name="l01158"></a>01158 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (compare &lt; 0) { <a name="l01159"></a>01159 <span class="keywordflow">if</span> (!functor_type::computed) { <a name="l01160"></a>01160 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l01161"></a>01161 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (it2.begin ()); <a name="l01162"></a>01162 <span class="keyword">typename</span> M::iterator1 it1_end (it2.end ()); <a name="l01163"></a>01163 <span class="preprocessor">#else</span> <a name="l01164"></a>01164 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2, iterator2_tag ())); <a name="l01165"></a>01165 <span class="keyword">typename</span> M::iterator1 it1_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it2, iterator2_tag ())); <a name="l01166"></a>01166 <span class="preprocessor">#endif</span> <a name="l01167"></a>01167 <span class="preprocessor"></span> <span class="keywordflow">while</span> (it1 != it1_end) { <span class="comment">// zeroing</span> <a name="l01168"></a>01168 functor_type::apply (*it1, expr_value_type<span class="comment">/*zero*/</span>()); <a name="l01169"></a>01169 ++ it1; <a name="l01170"></a>01170 } <a name="l01171"></a>01171 ++ it2; <a name="l01172"></a>01172 } <span class="keywordflow">else</span> { <a name="l01173"></a>01173 <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it2, it2_end, - compare); <a name="l01174"></a>01174 } <a name="l01175"></a>01175 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (compare &gt; 0) { <a name="l01176"></a>01176 <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it2e, it2e_end, compare); <a name="l01177"></a>01177 } <a name="l01178"></a>01178 } <a name="l01179"></a>01179 <span class="keywordflow">if</span> (!functor_type::computed) { <a name="l01180"></a>01180 <span class="keywordflow">while</span> (it2 != it2_end) { <a name="l01181"></a>01181 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l01182"></a>01182 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (it2.begin ()); <a name="l01183"></a>01183 <span class="keyword">typename</span> M::iterator1 it1_end (it2.end ()); <a name="l01184"></a>01184 <span class="preprocessor">#else</span> <a name="l01185"></a>01185 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2, iterator2_tag ())); <a name="l01186"></a>01186 <span class="keyword">typename</span> M::iterator1 it1_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it2, iterator2_tag ())); <a name="l01187"></a>01187 <span class="preprocessor">#endif</span> <a name="l01188"></a>01188 <span class="preprocessor"></span> <span class="keywordflow">while</span> (it1 != it1_end) { <span class="comment">// zeroing</span> <a name="l01189"></a>01189 functor_type::apply (*it1, expr_value_type<span class="comment">/*zero*/</span>()); <a name="l01190"></a>01190 ++ it1; <a name="l01191"></a>01191 } <a name="l01192"></a>01192 ++ it2; <a name="l01193"></a>01193 } <a name="l01194"></a>01194 } <span class="keywordflow">else</span> { <a name="l01195"></a>01195 it2 = it2_end; <a name="l01196"></a>01196 } <a name="l01197"></a>01197 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span> <a name="l01198"></a>01198 <span class="preprocessor"></span> <span class="keywordflow">if</span> (! <a class="code" href="a00592.html">disable_type_check&lt;bool&gt;::value</a>) <a name="l01199"></a>01199 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (<a class="code" href="a00653.html#a43a1eab42456d66c868af16c340e8246">detail::expression_type_check</a> (m, cm), <a class="code" href="a00132.html">external_logic</a> ()); <a name="l01200"></a>01200 <span class="preprocessor">#endif</span> <a name="l01201"></a>01201 <span class="preprocessor"></span> } <a name="l01202"></a>01202 <a name="l01203"></a>01203 <span class="comment">// Dispatcher</span> <a name="l01204"></a>01204 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>M, <span class="keyword">class </span>E&gt; <a name="l01205"></a>01205 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a> <a name="l01206"></a><a class="code" href="a00595.html#a90f1ae21a9fe72438fc69b6f06accad1">01206</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#ae1827b7ef118df5f5d498ccd2b34676c">matrix_assign</a> (M &amp;m, <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E&gt;</a> &amp;e) { <a name="l01207"></a>01207 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="a00223.html">matrix_assign_traits</a>&lt;<span class="keyword">typename</span> M::storage_category, <a name="l01208"></a>01208 F&lt;typename M::reference, typename E::value_type&gt;::computed, <a name="l01209"></a>01209 <span class="keyword">typename</span> E::const_iterator1::iterator_category, <a name="l01210"></a>01210 <span class="keyword">typename</span> E::const_iterator2::iterator_category&gt;::storage_category storage_category; <a name="l01211"></a>01211 <span class="comment">// give preference to matrix M&#39;s orientation if known</span> <a name="l01212"></a>01212 <span class="keyword">typedef</span> <span class="keyword">typename</span> boost::mpl::if_&lt;boost::is_same&lt;typename M::orientation_category, unknown_orientation_tag&gt;, <a name="l01213"></a>01213 <span class="keyword">typename</span> E::orientation_category , <a name="l01214"></a>01214 <span class="keyword">typename</span> M::orientation_category &gt;::type orientation_category; <a name="l01215"></a>01215 <span class="keyword">typedef</span> <a class="code" href="a00028.html">basic_full&lt;typename M::size_type&gt;</a> unrestricted; <a name="l01216"></a>01216 matrix_assign&lt;F, unrestricted&gt; (m, e, storage_category (), orientation_category ()); <a name="l01217"></a>01217 } <a name="l01218"></a>01218 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>R, <span class="keyword">class </span>M, <span class="keyword">class </span>E&gt; <a name="l01219"></a>01219 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a> <a name="l01220"></a><a class="code" href="a00595.html#a90f1ae21a9fe72438fc69b6f06accad1">01220</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#ae1827b7ef118df5f5d498ccd2b34676c">matrix_assign</a> (M &amp;m, <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E&gt;</a> &amp;e) { <a name="l01221"></a>01221 <span class="keyword">typedef</span> R conformant_restrict_type; <a name="l01222"></a>01222 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="a00223.html">matrix_assign_traits</a>&lt;<span class="keyword">typename</span> M::storage_category, <a name="l01223"></a>01223 F&lt;typename M::reference, typename E::value_type&gt;::computed, <a name="l01224"></a>01224 <span class="keyword">typename</span> E::const_iterator1::iterator_category, <a name="l01225"></a>01225 <span class="keyword">typename</span> E::const_iterator2::iterator_category&gt;::storage_category storage_category; <a name="l01226"></a>01226 <span class="comment">// give preference to matrix M&#39;s orientation if known</span> <a name="l01227"></a>01227 <span class="keyword">typedef</span> <span class="keyword">typename</span> boost::mpl::if_&lt;boost::is_same&lt;typename M::orientation_category, unknown_orientation_tag&gt;, <a name="l01228"></a>01228 <span class="keyword">typename</span> E::orientation_category , <a name="l01229"></a>01229 <span class="keyword">typename</span> M::orientation_category &gt;::type orientation_category; <a name="l01230"></a>01230 matrix_assign&lt;F, conformant_restrict_type&gt; (m, e, storage_category (), orientation_category ()); <a name="l01231"></a>01231 } <a name="l01232"></a>01232 <a name="l01233"></a>01233 <span class="keyword">template</span>&lt;<span class="keyword">class</span> SC, <span class="keyword">class</span> RI1, <span class="keyword">class</span> RI2&gt; <a name="l01234"></a><a class="code" href="a00287.html">01234</a> <span class="keyword">struct </span><a class="code" href="a00287.html">matrix_swap_traits</a> { <a name="l01235"></a><a class="code" href="a00287.html#a5e1ce8ad8d6b6f1bec4de92f91eeeea9">01235</a> <span class="keyword">typedef</span> SC <a class="code" href="a00287.html#a5e1ce8ad8d6b6f1bec4de92f91eeeea9">storage_category</a>; <a name="l01236"></a>01236 }; <a name="l01237"></a>01237 <a name="l01238"></a>01238 <span class="keyword">template</span>&lt;&gt; <a name="l01239"></a><a class="code" href="a00288.html">01239</a> <span class="keyword">struct </span><a class="code" href="a00287.html">matrix_swap_traits</a>&lt;<a class="code" href="a00081.html">dense_proxy_tag</a>, <a class="code" href="a00408.html">sparse_bidirectional_iterator_tag</a>, <a class="code" href="a00408.html">sparse_bidirectional_iterator_tag</a>&gt; { <a name="l01240"></a><a class="code" href="a00288.html#ae5be1f865a9709fd540ec7b7226d52f2">01240</a> <span class="keyword">typedef</span> <a class="code" href="a00409.html">sparse_proxy_tag</a> <a class="code" href="a00288.html#ae5be1f865a9709fd540ec7b7226d52f2">storage_category</a>; <a name="l01241"></a>01241 }; <a name="l01242"></a>01242 <a name="l01243"></a>01243 <span class="keyword">template</span>&lt;&gt; <a name="l01244"></a><a class="code" href="a00289.html">01244</a> <span class="keyword">struct </span><a class="code" href="a00287.html">matrix_swap_traits</a>&lt;<a class="code" href="a00360.html">packed_proxy_tag</a>, <a class="code" href="a00408.html">sparse_bidirectional_iterator_tag</a>, <a class="code" href="a00408.html">sparse_bidirectional_iterator_tag</a>&gt; { <a name="l01245"></a><a class="code" href="a00289.html#a6b4e31ec72f6c44e9844439ace334dea">01245</a> <span class="keyword">typedef</span> <a class="code" href="a00409.html">sparse_proxy_tag</a> <a class="code" href="a00289.html#a6b4e31ec72f6c44e9844439ace334dea">storage_category</a>; <a name="l01246"></a>01246 }; <a name="l01247"></a>01247 <a name="l01248"></a>01248 <span class="comment">// Dense (proxy) row major case</span> <a name="l01249"></a>01249 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>R, <span class="keyword">class </span>M, <span class="keyword">class </span>E&gt; <a name="l01250"></a>01250 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l01251"></a><a class="code" href="a00595.html#acfa7853b977150410af654cc6c89c969">01251</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#acfa7853b977150410af654cc6c89c969">matrix_swap</a> (M &amp;m, <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E&gt;</a> &amp;e, <a class="code" href="a00081.html">dense_proxy_tag</a>, <a class="code" href="a00369.html">row_major_tag</a>) { <a name="l01252"></a>01252 <span class="keyword">typedef</span> F&lt;typename M::iterator2::reference, typename E::reference&gt; functor_type; <a name="l01253"></a>01253 <span class="comment">// R unnecessary, make_conformant not required</span> <a name="l01254"></a>01254 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::size_type size_type; <a name="l01255"></a>01255 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::difference_type difference_type; <a name="l01256"></a>01256 <span class="keyword">typename</span> M::iterator1 it1 (m.begin1 ()); <a name="l01257"></a>01257 <span class="keyword">typename</span> E::iterator1 it1e (e ().<a class="code" href="a00595.html#a006ba58a3f4c88d8e8e76e44db481757" title="An object generator that returns a begin1 manipulator.">begin1</a> ()); <a name="l01258"></a>01258 difference_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (<a class="code" href="a00610.html#ad7bb3e64acf4cd355a9985bdf879cf2a">BOOST_UBLAS_SAME</a> (m.size1 (), size_type (e ().end1 () - it1e))); <a name="l01259"></a>01259 <span class="keywordflow">while</span> (-- size1 &gt;= 0) { <a name="l01260"></a>01260 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l01261"></a>01261 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (it1.begin ()); <a name="l01262"></a>01262 <span class="keyword">typename</span> E::iterator2 it2e (it1e.begin ()); <a name="l01263"></a>01263 difference_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (<a class="code" href="a00610.html#ad7bb3e64acf4cd355a9985bdf879cf2a">BOOST_UBLAS_SAME</a> (m.size2 (), size_type (it1e.end () - it2e))); <a name="l01264"></a>01264 <span class="preprocessor">#else</span> <a name="l01265"></a>01265 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1, iterator1_tag ())); <a name="l01266"></a>01266 <span class="keyword">typename</span> E::iterator2 it2e (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1e, iterator1_tag ())); <a name="l01267"></a>01267 difference_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (<a class="code" href="a00610.html#ad7bb3e64acf4cd355a9985bdf879cf2a">BOOST_UBLAS_SAME</a> (m.size2 (), size_type (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it1e, iterator1_tag ()) - it2e))); <a name="l01268"></a>01268 <span class="preprocessor">#endif</span> <a name="l01269"></a>01269 <span class="preprocessor"></span> <span class="keywordflow">while</span> (-- size2 &gt;= 0) <a name="l01270"></a>01270 functor_type::apply (*it2, *it2e), ++ it2, ++ it2e; <a name="l01271"></a>01271 ++ it1, ++ it1e; <a name="l01272"></a>01272 } <a name="l01273"></a>01273 } <a name="l01274"></a>01274 <span class="comment">// Dense (proxy) column major case</span> <a name="l01275"></a>01275 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>R, <span class="keyword">class </span>M, <span class="keyword">class </span>E&gt; <a name="l01276"></a>01276 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l01277"></a><a class="code" href="a00595.html#a55092e769f2a575fab43e63dfa1e6208">01277</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#acfa7853b977150410af654cc6c89c969">matrix_swap</a> (M &amp;m, <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E&gt;</a> &amp;e, <a class="code" href="a00081.html">dense_proxy_tag</a>, <a class="code" href="a00052.html">column_major_tag</a>) { <a name="l01278"></a>01278 <span class="keyword">typedef</span> F&lt;typename M::iterator1::reference, typename E::reference&gt; functor_type; <a name="l01279"></a>01279 <span class="comment">// R unnecessary, make_conformant not required</span> <a name="l01280"></a>01280 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::size_type size_type; <a name="l01281"></a>01281 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::difference_type difference_type; <a name="l01282"></a>01282 <span class="keyword">typename</span> M::iterator2 it2 (m.begin2 ()); <a name="l01283"></a>01283 <span class="keyword">typename</span> E::iterator2 it2e (e ().<a class="code" href="a00595.html#a0a5c2ce4e11de4e7ea5ccd122073052c" title="An object generator that returns a begin2 manipulator to be used to traverse a matrix.">begin2</a> ()); <a name="l01284"></a>01284 difference_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (<a class="code" href="a00610.html#ad7bb3e64acf4cd355a9985bdf879cf2a">BOOST_UBLAS_SAME</a> (m.size2 (), size_type (e ().end2 () - it2e))); <a name="l01285"></a>01285 <span class="keywordflow">while</span> (-- size2 &gt;= 0) { <a name="l01286"></a>01286 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l01287"></a>01287 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (it2.begin ()); <a name="l01288"></a>01288 <span class="keyword">typename</span> E::iterator1 it1e (it2e.begin ()); <a name="l01289"></a>01289 difference_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (<a class="code" href="a00610.html#ad7bb3e64acf4cd355a9985bdf879cf2a">BOOST_UBLAS_SAME</a> (m.size1 (), size_type (it2e.end () - it1e))); <a name="l01290"></a>01290 <span class="preprocessor">#else</span> <a name="l01291"></a>01291 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2, iterator2_tag ())); <a name="l01292"></a>01292 <span class="keyword">typename</span> E::iterator1 it1e (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2e, iterator2_tag ())); <a name="l01293"></a>01293 difference_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (<a class="code" href="a00610.html#ad7bb3e64acf4cd355a9985bdf879cf2a">BOOST_UBLAS_SAME</a> (m.size1 (), size_type (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it2e, iterator2_tag ()) - it1e))); <a name="l01294"></a>01294 <span class="preprocessor">#endif</span> <a name="l01295"></a>01295 <span class="preprocessor"></span> <span class="keywordflow">while</span> (-- size1 &gt;= 0) <a name="l01296"></a>01296 functor_type::apply (*it1, *it1e), ++ it1, ++ it1e; <a name="l01297"></a>01297 ++ it2, ++ it2e; <a name="l01298"></a>01298 } <a name="l01299"></a>01299 } <a name="l01300"></a>01300 <span class="comment">// Packed (proxy) row major case</span> <a name="l01301"></a>01301 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>R, <span class="keyword">class </span>M, <span class="keyword">class </span>E&gt; <a name="l01302"></a>01302 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l01303"></a><a class="code" href="a00595.html#ae6f349f5886b8395b2dd8f124fa26b96">01303</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#acfa7853b977150410af654cc6c89c969">matrix_swap</a> (M &amp;m, <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E&gt;</a> &amp;e, <a class="code" href="a00360.html">packed_proxy_tag</a>, <a class="code" href="a00369.html">row_major_tag</a>) { <a name="l01304"></a>01304 <span class="keyword">typedef</span> F&lt;typename M::iterator2::reference, typename E::reference&gt; functor_type; <a name="l01305"></a>01305 <span class="comment">// R unnecessary, make_conformant not required</span> <a name="l01306"></a>01306 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::size_type size_type; <a name="l01307"></a>01307 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::difference_type difference_type; <a name="l01308"></a>01308 <span class="keyword">typename</span> M::iterator1 it1 (m.begin1 ()); <a name="l01309"></a>01309 <span class="keyword">typename</span> E::iterator1 it1e (e ().<a class="code" href="a00595.html#a006ba58a3f4c88d8e8e76e44db481757" title="An object generator that returns a begin1 manipulator.">begin1</a> ()); <a name="l01310"></a>01310 difference_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (<a class="code" href="a00610.html#ad7bb3e64acf4cd355a9985bdf879cf2a">BOOST_UBLAS_SAME</a> (m.end1 () - it1, e ().end1 () - it1e)); <a name="l01311"></a>01311 <span class="keywordflow">while</span> (-- size1 &gt;= 0) { <a name="l01312"></a>01312 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l01313"></a>01313 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (it1.begin ()); <a name="l01314"></a>01314 <span class="keyword">typename</span> E::iterator2 it2e (it1e.begin ()); <a name="l01315"></a>01315 difference_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (<a class="code" href="a00610.html#ad7bb3e64acf4cd355a9985bdf879cf2a">BOOST_UBLAS_SAME</a> (it1.end () - it2, it1e.end () - it2e)); <a name="l01316"></a>01316 <span class="preprocessor">#else</span> <a name="l01317"></a>01317 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1, iterator1_tag ())); <a name="l01318"></a>01318 <span class="keyword">typename</span> E::iterator2 it2e (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1e, iterator1_tag ())); <a name="l01319"></a>01319 difference_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (<a class="code" href="a00610.html#ad7bb3e64acf4cd355a9985bdf879cf2a">BOOST_UBLAS_SAME</a> (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it1, iterator1_tag ()) - it2, <a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it1e, iterator1_tag ()) - it2e)); <a name="l01320"></a>01320 <span class="preprocessor">#endif</span> <a name="l01321"></a>01321 <span class="preprocessor"></span> <span class="keywordflow">while</span> (-- size2 &gt;= 0) <a name="l01322"></a>01322 functor_type::apply (*it2, *it2e), ++ it2, ++ it2e; <a name="l01323"></a>01323 ++ it1, ++ it1e; <a name="l01324"></a>01324 } <a name="l01325"></a>01325 } <a name="l01326"></a>01326 <span class="comment">// Packed (proxy) column major case</span> <a name="l01327"></a>01327 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>R, <span class="keyword">class </span>M, <span class="keyword">class </span>E&gt; <a name="l01328"></a>01328 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l01329"></a><a class="code" href="a00595.html#aa90431ca978625dc8255f95af1c3055d">01329</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#acfa7853b977150410af654cc6c89c969">matrix_swap</a> (M &amp;m, <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E&gt;</a> &amp;e, <a class="code" href="a00360.html">packed_proxy_tag</a>, <a class="code" href="a00052.html">column_major_tag</a>) { <a name="l01330"></a>01330 <span class="keyword">typedef</span> F&lt;typename M::iterator1::reference, typename E::reference&gt; functor_type; <a name="l01331"></a>01331 <span class="comment">// R unnecessary, make_conformant not required</span> <a name="l01332"></a>01332 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::size_type size_type; <a name="l01333"></a>01333 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::difference_type difference_type; <a name="l01334"></a>01334 <span class="keyword">typename</span> M::iterator2 it2 (m.begin2 ()); <a name="l01335"></a>01335 <span class="keyword">typename</span> E::iterator2 it2e (e ().<a class="code" href="a00595.html#a0a5c2ce4e11de4e7ea5ccd122073052c" title="An object generator that returns a begin2 manipulator to be used to traverse a matrix.">begin2</a> ()); <a name="l01336"></a>01336 difference_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (<a class="code" href="a00610.html#ad7bb3e64acf4cd355a9985bdf879cf2a">BOOST_UBLAS_SAME</a> (m.end2 () - it2, e ().end2 () - it2e)); <a name="l01337"></a>01337 <span class="keywordflow">while</span> (-- size2 &gt;= 0) { <a name="l01338"></a>01338 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l01339"></a>01339 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (it2.begin ()); <a name="l01340"></a>01340 <span class="keyword">typename</span> E::iterator1 it1e (it2e.begin ()); <a name="l01341"></a>01341 difference_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (<a class="code" href="a00610.html#ad7bb3e64acf4cd355a9985bdf879cf2a">BOOST_UBLAS_SAME</a> (it2.end () - it1, it2e.end () - it1e)); <a name="l01342"></a>01342 <span class="preprocessor">#else</span> <a name="l01343"></a>01343 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2, iterator2_tag ())); <a name="l01344"></a>01344 <span class="keyword">typename</span> E::iterator1 it1e (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2e, iterator2_tag ())); <a name="l01345"></a>01345 difference_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (<a class="code" href="a00610.html#ad7bb3e64acf4cd355a9985bdf879cf2a">BOOST_UBLAS_SAME</a> (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it2, iterator2_tag ()) - it1, <a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it2e, iterator2_tag ()) - it1e)); <a name="l01346"></a>01346 <span class="preprocessor">#endif</span> <a name="l01347"></a>01347 <span class="preprocessor"></span> <span class="keywordflow">while</span> (-- size1 &gt;= 0) <a name="l01348"></a>01348 functor_type::apply (*it1, *it1e), ++ it1, ++ it1e; <a name="l01349"></a>01349 ++ it2, ++ it2e; <a name="l01350"></a>01350 } <a name="l01351"></a>01351 } <a name="l01352"></a>01352 <span class="comment">// Sparse (proxy) row major case</span> <a name="l01353"></a>01353 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>R, <span class="keyword">class </span>M, <span class="keyword">class </span>E&gt; <a name="l01354"></a>01354 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l01355"></a><a class="code" href="a00595.html#acd6f815bcfd67bc35a530af6ecdfabcf">01355</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#acfa7853b977150410af654cc6c89c969">matrix_swap</a> (M &amp;m, <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E&gt;</a> &amp;e, <a class="code" href="a00409.html">sparse_proxy_tag</a>, <a class="code" href="a00369.html">row_major_tag</a>) { <a name="l01356"></a>01356 <span class="keyword">typedef</span> F&lt;typename M::iterator2::reference, typename E::reference&gt; functor_type; <a name="l01357"></a>01357 <span class="keyword">typedef</span> R conformant_restrict_type; <a name="l01358"></a>01358 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::size_type size_type; <a name="l01359"></a>01359 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::difference_type difference_type; <a name="l01360"></a>01360 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::value_type value_type; <a name="l01361"></a>01361 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (m.size1 () == e ().size1 (), <a class="code" href="a00016.html">bad_size</a> ()); <a name="l01362"></a>01362 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (m.size2 () == e ().size2 (), <a class="code" href="a00016.html">bad_size</a> ()); <a name="l01363"></a>01363 <a name="l01364"></a>01364 <a class="code" href="a00653.html#af86e444b5972e9b0ee8afbbcd533bd7a">detail::make_conformant</a> (m, e, <a class="code" href="a00369.html">row_major_tag</a> (), conformant_restrict_type ()); <a name="l01365"></a>01365 <span class="comment">// FIXME should be a seperate restriction for E</span> <a name="l01366"></a>01366 <a class="code" href="a00653.html#af86e444b5972e9b0ee8afbbcd533bd7a">detail::make_conformant</a> (e (), m, <a class="code" href="a00369.html">row_major_tag</a> (), conformant_restrict_type ()); <a name="l01367"></a>01367 <a name="l01368"></a>01368 <span class="keyword">typename</span> M::iterator1 it1 (m.begin1 ()); <a name="l01369"></a>01369 <span class="keyword">typename</span> M::iterator1 it1_end (m.end1 ()); <a name="l01370"></a>01370 <span class="keyword">typename</span> E::iterator1 it1e (e ().<a class="code" href="a00595.html#a006ba58a3f4c88d8e8e76e44db481757" title="An object generator that returns a begin1 manipulator.">begin1</a> ()); <a name="l01371"></a>01371 <span class="keyword">typename</span> E::iterator1 it1e_end (e ().end1 ()); <a name="l01372"></a>01372 <span class="keywordflow">while</span> (it1 != it1_end &amp;&amp; it1e != it1e_end) { <a name="l01373"></a>01373 difference_type compare = it1.index1 () - it1e.index1 (); <a name="l01374"></a>01374 <span class="keywordflow">if</span> (compare == 0) { <a name="l01375"></a>01375 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l01376"></a>01376 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (it1.begin ()); <a name="l01377"></a>01377 <span class="keyword">typename</span> M::iterator2 it2_end (it1.end ()); <a name="l01378"></a>01378 <span class="keyword">typename</span> E::iterator2 it2e (it1e.begin ()); <a name="l01379"></a>01379 <span class="keyword">typename</span> E::iterator2 it2e_end (it1e.end ()); <a name="l01380"></a>01380 <span class="preprocessor">#else</span> <a name="l01381"></a>01381 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1, iterator1_tag ())); <a name="l01382"></a>01382 <span class="keyword">typename</span> M::iterator2 it2_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it1, iterator1_tag ())); <a name="l01383"></a>01383 <span class="keyword">typename</span> E::iterator2 it2e (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1e, iterator1_tag ())); <a name="l01384"></a>01384 <span class="keyword">typename</span> E::iterator2 it2e_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it1e, iterator1_tag ())); <a name="l01385"></a>01385 <span class="preprocessor">#endif</span> <a name="l01386"></a>01386 <span class="preprocessor"></span> <span class="keywordflow">if</span> (it2 != it2_end &amp;&amp; it2e != it2e_end) { <a name="l01387"></a>01387 size_type it2_index = it2.index2 (), it2e_index = it2e.index2 (); <a name="l01388"></a>01388 <span class="keywordflow">while</span> (<span class="keyword">true</span>) { <a name="l01389"></a>01389 difference_type compare = it2_index - it2e_index; <a name="l01390"></a>01390 <span class="keywordflow">if</span> (compare == 0) { <a name="l01391"></a>01391 functor_type::apply (*it2, *it2e); <a name="l01392"></a>01392 ++ it2, ++ it2e; <a name="l01393"></a>01393 <span class="keywordflow">if</span> (it2 != it2_end &amp;&amp; it2e != it2e_end) { <a name="l01394"></a>01394 it2_index = it2.index2 (); <a name="l01395"></a>01395 it2e_index = it2e.index2 (); <a name="l01396"></a>01396 } <span class="keywordflow">else</span> <a name="l01397"></a>01397 <span class="keywordflow">break</span>; <a name="l01398"></a>01398 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (compare &lt; 0) { <a name="l01399"></a>01399 <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it2, it2_end, - compare); <a name="l01400"></a>01400 <span class="keywordflow">if</span> (it2 != it2_end) <a name="l01401"></a>01401 it2_index = it2.index2 (); <a name="l01402"></a>01402 <span class="keywordflow">else</span> <a name="l01403"></a>01403 <span class="keywordflow">break</span>; <a name="l01404"></a>01404 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (compare &gt; 0) { <a name="l01405"></a>01405 <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it2e, it2e_end, compare); <a name="l01406"></a>01406 <span class="keywordflow">if</span> (it2e != it2e_end) <a name="l01407"></a>01407 it2e_index = it2e.index2 (); <a name="l01408"></a>01408 <span class="keywordflow">else</span> <a name="l01409"></a>01409 <span class="keywordflow">break</span>; <a name="l01410"></a>01410 } <a name="l01411"></a>01411 } <a name="l01412"></a>01412 } <a name="l01413"></a>01413 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span> <a name="l01414"></a>01414 <span class="preprocessor"></span> <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it2e, it2e_end); <a name="l01415"></a>01415 <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it2, it2_end); <a name="l01416"></a>01416 <span class="preprocessor">#endif</span> <a name="l01417"></a>01417 <span class="preprocessor"></span> ++ it1, ++ it1e; <a name="l01418"></a>01418 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (compare &lt; 0) { <a name="l01419"></a>01419 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span> <a name="l01420"></a>01420 <span class="preprocessor"></span> <span class="keywordflow">while</span> (it1.index1 () &lt; it1e.index1 ()) { <a name="l01421"></a>01421 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l01422"></a>01422 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (it1.begin ()); <a name="l01423"></a>01423 <span class="keyword">typename</span> M::iterator2 it2_end (it1.end ()); <a name="l01424"></a>01424 <span class="preprocessor">#else</span> <a name="l01425"></a>01425 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1, iterator1_tag ())); <a name="l01426"></a>01426 <span class="keyword">typename</span> M::iterator2 it2_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it1, iterator1_tag ())); <a name="l01427"></a>01427 <span class="preprocessor">#endif</span> <a name="l01428"></a>01428 <span class="preprocessor"></span> <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it2, it2_end); <a name="l01429"></a>01429 ++ it1; <a name="l01430"></a>01430 } <a name="l01431"></a>01431 <span class="preprocessor">#else</span> <a name="l01432"></a>01432 <span class="preprocessor"></span> <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it1, it1_end, - compare); <a name="l01433"></a>01433 <span class="preprocessor">#endif</span> <a name="l01434"></a>01434 <span class="preprocessor"></span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (compare &gt; 0) { <a name="l01435"></a>01435 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span> <a name="l01436"></a>01436 <span class="preprocessor"></span> <span class="keywordflow">while</span> (it1e.index1 () &lt; it1.index1 ()) { <a name="l01437"></a>01437 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l01438"></a>01438 <span class="preprocessor"></span> <span class="keyword">typename</span> E::iterator2 it2e (it1e.begin ()); <a name="l01439"></a>01439 <span class="keyword">typename</span> E::iterator2 it2e_end (it1e.end ()); <a name="l01440"></a>01440 <span class="preprocessor">#else</span> <a name="l01441"></a>01441 <span class="preprocessor"></span> <span class="keyword">typename</span> E::iterator2 it2e (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1e, iterator1_tag ())); <a name="l01442"></a>01442 <span class="keyword">typename</span> E::iterator2 it2e_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it1e, iterator1_tag ())); <a name="l01443"></a>01443 <span class="preprocessor">#endif</span> <a name="l01444"></a>01444 <span class="preprocessor"></span> <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it2e, it2e_end); <a name="l01445"></a>01445 ++ it1e; <a name="l01446"></a>01446 } <a name="l01447"></a>01447 <span class="preprocessor">#else</span> <a name="l01448"></a>01448 <span class="preprocessor"></span> <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it1e, it1e_end, compare); <a name="l01449"></a>01449 <span class="preprocessor">#endif</span> <a name="l01450"></a>01450 <span class="preprocessor"></span> } <a name="l01451"></a>01451 } <a name="l01452"></a>01452 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span> <a name="l01453"></a>01453 <span class="preprocessor"></span> <span class="keywordflow">while</span> (it1e != it1e_end) { <a name="l01454"></a>01454 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l01455"></a>01455 <span class="preprocessor"></span> <span class="keyword">typename</span> E::iterator2 it2e (it1e.begin ()); <a name="l01456"></a>01456 <span class="keyword">typename</span> E::iterator2 it2e_end (it1e.end ()); <a name="l01457"></a>01457 <span class="preprocessor">#else</span> <a name="l01458"></a>01458 <span class="preprocessor"></span> <span class="keyword">typename</span> E::iterator2 it2e (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1e, iterator1_tag ())); <a name="l01459"></a>01459 <span class="keyword">typename</span> E::iterator2 it2e_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it1e, iterator1_tag ())); <a name="l01460"></a>01460 <span class="preprocessor">#endif</span> <a name="l01461"></a>01461 <span class="preprocessor"></span> <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it2e, it2e_end); <a name="l01462"></a>01462 ++ it1e; <a name="l01463"></a>01463 } <a name="l01464"></a>01464 <span class="keywordflow">while</span> (it1 != it1_end) { <a name="l01465"></a>01465 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l01466"></a>01466 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (it1.begin ()); <a name="l01467"></a>01467 <span class="keyword">typename</span> M::iterator2 it2_end (it1.end ()); <a name="l01468"></a>01468 <span class="preprocessor">#else</span> <a name="l01469"></a>01469 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator2 it2 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it1, iterator1_tag ())); <a name="l01470"></a>01470 <span class="keyword">typename</span> M::iterator2 it2_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it1, iterator1_tag ())); <a name="l01471"></a>01471 <span class="preprocessor">#endif</span> <a name="l01472"></a>01472 <span class="preprocessor"></span> <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it2, it2_end); <a name="l01473"></a>01473 ++ it1; <a name="l01474"></a>01474 } <a name="l01475"></a>01475 <span class="preprocessor">#endif</span> <a name="l01476"></a>01476 <span class="preprocessor"></span> } <a name="l01477"></a>01477 <span class="comment">// Sparse (proxy) column major case</span> <a name="l01478"></a>01478 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>R, <span class="keyword">class </span>M, <span class="keyword">class </span>E&gt; <a name="l01479"></a>01479 <span class="comment">// BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it.</span> <a name="l01480"></a><a class="code" href="a00595.html#ad5956d5a550fb1700a7b783fe16abb48">01480</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#acfa7853b977150410af654cc6c89c969">matrix_swap</a> (M &amp;m, <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E&gt;</a> &amp;e, <a class="code" href="a00409.html">sparse_proxy_tag</a>, <a class="code" href="a00052.html">column_major_tag</a>) { <a name="l01481"></a>01481 <span class="keyword">typedef</span> F&lt;typename M::iterator1::reference, typename E::reference&gt; functor_type; <a name="l01482"></a>01482 <span class="keyword">typedef</span> R conformant_restrict_type; <a name="l01483"></a>01483 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::size_type size_type; <a name="l01484"></a>01484 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::difference_type difference_type; <a name="l01485"></a>01485 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::value_type value_type; <a name="l01486"></a>01486 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (m.size1 () == e ().size1 (), <a class="code" href="a00016.html">bad_size</a> ()); <a name="l01487"></a>01487 <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (m.size2 () == e ().size2 (), <a class="code" href="a00016.html">bad_size</a> ()); <a name="l01488"></a>01488 <a name="l01489"></a>01489 <a class="code" href="a00653.html#af86e444b5972e9b0ee8afbbcd533bd7a">detail::make_conformant</a> (m, e, <a class="code" href="a00052.html">column_major_tag</a> (), conformant_restrict_type ()); <a name="l01490"></a>01490 <span class="comment">// FIXME should be a seperate restriction for E</span> <a name="l01491"></a>01491 <a class="code" href="a00653.html#af86e444b5972e9b0ee8afbbcd533bd7a">detail::make_conformant</a> (e (), m, <a class="code" href="a00052.html">column_major_tag</a> (), conformant_restrict_type ()); <a name="l01492"></a>01492 <a name="l01493"></a>01493 <span class="keyword">typename</span> M::iterator2 it2 (m.begin2 ()); <a name="l01494"></a>01494 <span class="keyword">typename</span> M::iterator2 it2_end (m.end2 ()); <a name="l01495"></a>01495 <span class="keyword">typename</span> E::iterator2 it2e (e ().<a class="code" href="a00595.html#a0a5c2ce4e11de4e7ea5ccd122073052c" title="An object generator that returns a begin2 manipulator to be used to traverse a matrix.">begin2</a> ()); <a name="l01496"></a>01496 <span class="keyword">typename</span> E::iterator2 it2e_end (e ().end2 ()); <a name="l01497"></a>01497 <span class="keywordflow">while</span> (it2 != it2_end &amp;&amp; it2e != it2e_end) { <a name="l01498"></a>01498 difference_type compare = it2.index2 () - it2e.index2 (); <a name="l01499"></a>01499 <span class="keywordflow">if</span> (compare == 0) { <a name="l01500"></a>01500 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l01501"></a>01501 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (it2.begin ()); <a name="l01502"></a>01502 <span class="keyword">typename</span> M::iterator1 it1_end (it2.end ()); <a name="l01503"></a>01503 <span class="keyword">typename</span> E::iterator1 it1e (it2e.begin ()); <a name="l01504"></a>01504 <span class="keyword">typename</span> E::iterator1 it1e_end (it2e.end ()); <a name="l01505"></a>01505 <span class="preprocessor">#else</span> <a name="l01506"></a>01506 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2, iterator2_tag ())); <a name="l01507"></a>01507 <span class="keyword">typename</span> M::iterator1 it1_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it2, iterator2_tag ())); <a name="l01508"></a>01508 <span class="keyword">typename</span> E::iterator1 it1e (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2e, iterator2_tag ())); <a name="l01509"></a>01509 <span class="keyword">typename</span> E::iterator1 it1e_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it2e, iterator2_tag ())); <a name="l01510"></a>01510 <span class="preprocessor">#endif</span> <a name="l01511"></a>01511 <span class="preprocessor"></span> <span class="keywordflow">if</span> (it1 != it1_end &amp;&amp; it1e != it1e_end) { <a name="l01512"></a>01512 size_type it1_index = it1.index1 (), it1e_index = it1e.index1 (); <a name="l01513"></a>01513 <span class="keywordflow">while</span> (<span class="keyword">true</span>) { <a name="l01514"></a>01514 difference_type compare = it1_index - it1e_index; <a name="l01515"></a>01515 <span class="keywordflow">if</span> (compare == 0) { <a name="l01516"></a>01516 functor_type::apply (*it1, *it1e); <a name="l01517"></a>01517 ++ it1, ++ it1e; <a name="l01518"></a>01518 <span class="keywordflow">if</span> (it1 != it1_end &amp;&amp; it1e != it1e_end) { <a name="l01519"></a>01519 it1_index = it1.index1 (); <a name="l01520"></a>01520 it1e_index = it1e.index1 (); <a name="l01521"></a>01521 } <span class="keywordflow">else</span> <a name="l01522"></a>01522 <span class="keywordflow">break</span>; <a name="l01523"></a>01523 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (compare &lt; 0) { <a name="l01524"></a>01524 <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it1, it1_end, - compare); <a name="l01525"></a>01525 <span class="keywordflow">if</span> (it1 != it1_end) <a name="l01526"></a>01526 it1_index = it1.index1 (); <a name="l01527"></a>01527 <span class="keywordflow">else</span> <a name="l01528"></a>01528 <span class="keywordflow">break</span>; <a name="l01529"></a>01529 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (compare &gt; 0) { <a name="l01530"></a>01530 <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it1e, it1e_end, compare); <a name="l01531"></a>01531 <span class="keywordflow">if</span> (it1e != it1e_end) <a name="l01532"></a>01532 it1e_index = it1e.index1 (); <a name="l01533"></a>01533 <span class="keywordflow">else</span> <a name="l01534"></a>01534 <span class="keywordflow">break</span>; <a name="l01535"></a>01535 } <a name="l01536"></a>01536 } <a name="l01537"></a>01537 } <a name="l01538"></a>01538 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span> <a name="l01539"></a>01539 <span class="preprocessor"></span> <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it1e, it1e_end); <a name="l01540"></a>01540 <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it1, it1_end); <a name="l01541"></a>01541 <span class="preprocessor">#endif</span> <a name="l01542"></a>01542 <span class="preprocessor"></span> ++ it2, ++ it2e; <a name="l01543"></a>01543 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (compare &lt; 0) { <a name="l01544"></a>01544 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span> <a name="l01545"></a>01545 <span class="preprocessor"></span> <span class="keywordflow">while</span> (it2.index2 () &lt; it2e.index2 ()) { <a name="l01546"></a>01546 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l01547"></a>01547 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (it2.begin ()); <a name="l01548"></a>01548 <span class="keyword">typename</span> M::iterator1 it1_end (it2.end ()); <a name="l01549"></a>01549 <span class="preprocessor">#else</span> <a name="l01550"></a>01550 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2, iterator2_tag ())); <a name="l01551"></a>01551 <span class="keyword">typename</span> M::iterator1 it1_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it2, iterator2_tag ())); <a name="l01552"></a>01552 <span class="preprocessor">#endif</span> <a name="l01553"></a>01553 <span class="preprocessor"></span> <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it1, it1_end); <a name="l01554"></a>01554 ++ it2; <a name="l01555"></a>01555 } <a name="l01556"></a>01556 <span class="preprocessor">#else</span> <a name="l01557"></a>01557 <span class="preprocessor"></span> <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it2, it2_end, - compare); <a name="l01558"></a>01558 <span class="preprocessor">#endif</span> <a name="l01559"></a>01559 <span class="preprocessor"></span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (compare &gt; 0) { <a name="l01560"></a>01560 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span> <a name="l01561"></a>01561 <span class="preprocessor"></span> <span class="keywordflow">while</span> (it2e.index2 () &lt; it2.index2 ()) { <a name="l01562"></a>01562 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l01563"></a>01563 <span class="preprocessor"></span> <span class="keyword">typename</span> E::iterator1 it1e (it2e.begin ()); <a name="l01564"></a>01564 <span class="keyword">typename</span> E::iterator1 it1e_end (it2e.end ()); <a name="l01565"></a>01565 <span class="preprocessor">#else</span> <a name="l01566"></a>01566 <span class="preprocessor"></span> <span class="keyword">typename</span> E::iterator1 it1e (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2e, iterator2_tag ())); <a name="l01567"></a>01567 <span class="keyword">typename</span> E::iterator1 it1e_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it2e, iterator2_tag ())); <a name="l01568"></a>01568 <span class="preprocessor">#endif</span> <a name="l01569"></a>01569 <span class="preprocessor"></span> <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it1e, it1e_end); <a name="l01570"></a>01570 ++ it2e; <a name="l01571"></a>01571 } <a name="l01572"></a>01572 <span class="preprocessor">#else</span> <a name="l01573"></a>01573 <span class="preprocessor"></span> <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it2e, it2e_end, compare); <a name="l01574"></a>01574 <span class="preprocessor">#endif</span> <a name="l01575"></a>01575 <span class="preprocessor"></span> } <a name="l01576"></a>01576 } <a name="l01577"></a>01577 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span> <a name="l01578"></a>01578 <span class="preprocessor"></span> <span class="keywordflow">while</span> (it2e != it2e_end) { <a name="l01579"></a>01579 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l01580"></a>01580 <span class="preprocessor"></span> <span class="keyword">typename</span> E::iterator1 it1e (it2e.begin ()); <a name="l01581"></a>01581 <span class="keyword">typename</span> E::iterator1 it1e_end (it2e.end ()); <a name="l01582"></a>01582 <span class="preprocessor">#else</span> <a name="l01583"></a>01583 <span class="preprocessor"></span> <span class="keyword">typename</span> E::iterator1 it1e (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2e, iterator2_tag ())); <a name="l01584"></a>01584 <span class="keyword">typename</span> E::iterator1 it1e_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it2e, iterator2_tag ())); <a name="l01585"></a>01585 <span class="preprocessor">#endif</span> <a name="l01586"></a>01586 <span class="preprocessor"></span> <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it1e, it1e_end); <a name="l01587"></a>01587 ++ it2e; <a name="l01588"></a>01588 } <a name="l01589"></a>01589 <span class="keywordflow">while</span> (it2 != it2_end) { <a name="l01590"></a>01590 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span> <a name="l01591"></a>01591 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (it2.begin ()); <a name="l01592"></a>01592 <span class="keyword">typename</span> M::iterator1 it1_end (it2.end ()); <a name="l01593"></a>01593 <span class="preprocessor">#else</span> <a name="l01594"></a>01594 <span class="preprocessor"></span> <span class="keyword">typename</span> M::iterator1 it1 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> (it2, iterator2_tag ())); <a name="l01595"></a>01595 <span class="keyword">typename</span> M::iterator1 it1_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> (it2, iterator2_tag ())); <a name="l01596"></a>01596 <span class="preprocessor">#endif</span> <a name="l01597"></a>01597 <span class="preprocessor"></span> <a class="code" href="a00595.html#a00e524ed262cdf2bef30737b1ad05b3e">increment</a> (it1, it1_end); <a name="l01598"></a>01598 ++ it2; <a name="l01599"></a>01599 } <a name="l01600"></a>01600 <span class="preprocessor">#endif</span> <a name="l01601"></a>01601 <span class="preprocessor"></span> } <a name="l01602"></a>01602 <a name="l01603"></a>01603 <span class="comment">// Dispatcher</span> <a name="l01604"></a>01604 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>M, <span class="keyword">class </span>E&gt; <a name="l01605"></a>01605 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a> <a name="l01606"></a><a class="code" href="a00595.html#a40fe4321f0703b2cd85b462087c95b91">01606</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#acfa7853b977150410af654cc6c89c969">matrix_swap</a> (M &amp;m, <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E&gt;</a> &amp;e) { <a name="l01607"></a>01607 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="a00287.html">matrix_swap_traits</a>&lt;<span class="keyword">typename</span> M::storage_category, <a name="l01608"></a>01608 <span class="keyword">typename</span> E::const_iterator1::iterator_category, <a name="l01609"></a>01609 <span class="keyword">typename</span> E::const_iterator2::iterator_category&gt;::storage_category storage_category; <a name="l01610"></a>01610 <span class="comment">// give preference to matrix M&#39;s orientation if known</span> <a name="l01611"></a>01611 <span class="keyword">typedef</span> <span class="keyword">typename</span> boost::mpl::if_&lt;boost::is_same&lt;typename M::orientation_category, unknown_orientation_tag&gt;, <a name="l01612"></a>01612 <span class="keyword">typename</span> E::orientation_category , <a name="l01613"></a>01613 <span class="keyword">typename</span> M::orientation_category &gt;::type orientation_category; <a name="l01614"></a>01614 <span class="keyword">typedef</span> <a class="code" href="a00028.html">basic_full&lt;typename M::size_type&gt;</a> unrestricted; <a name="l01615"></a>01615 matrix_swap&lt;F, unrestricted&gt; (m, e, storage_category (), orientation_category ()); <a name="l01616"></a>01616 } <a name="l01617"></a>01617 <span class="keyword">template</span>&lt;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T1, <span class="keyword">class</span> T2&gt; <span class="keyword">class </span>F, <span class="keyword">class </span>R, <span class="keyword">class </span>M, <span class="keyword">class </span>E&gt; <a name="l01618"></a>01618 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a> <a name="l01619"></a><a class="code" href="a00595.html#a40fe4321f0703b2cd85b462087c95b91">01619</a> <span class="keywordtype">void</span> <a class="code" href="a00595.html#acfa7853b977150410af654cc6c89c969">matrix_swap</a> (M &amp;m, <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E&gt;</a> &amp;e) { <a name="l01620"></a>01620 <span class="keyword">typedef</span> R conformant_restrict_type; <a name="l01621"></a>01621 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="a00287.html">matrix_swap_traits</a>&lt;<span class="keyword">typename</span> M::storage_category, <a name="l01622"></a>01622 <span class="keyword">typename</span> E::const_iterator1::iterator_category, <a name="l01623"></a>01623 <span class="keyword">typename</span> E::const_iterator2::iterator_category&gt;::storage_category storage_category; <a name="l01624"></a>01624 <span class="comment">// give preference to matrix M&#39;s orientation if known</span> <a name="l01625"></a>01625 <span class="keyword">typedef</span> <span class="keyword">typename</span> boost::mpl::if_&lt;boost::is_same&lt;typename M::orientation_category, unknown_orientation_tag&gt;, <a name="l01626"></a>01626 <span class="keyword">typename</span> E::orientation_category , <a name="l01627"></a>01627 <span class="keyword">typename</span> M::orientation_category &gt;::type orientation_category; <a name="l01628"></a>01628 matrix_swap&lt;F, conformant_restrict_type&gt; (m, e, storage_category (), orientation_category ()); <a name="l01629"></a>01629 } <a name="l01630"></a>01630 <a name="l01631"></a>01631 }}} <a name="l01632"></a>01632 <a name="l01633"></a>01633 <span class="preprocessor">#endif</span> </pre></div></div> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="a00620.html">matrix_assign.hpp</a> </li> <!--- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <small> <small> <small> <table width="100%"> <tr> <td align="right"> Copyright &#169; 2010-2011 David Bellot - Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">Boost Software License, Version 1.0.</a> </td> </tr> </table> </small> </small> </small>
PatidarWeb/poedit
deps/boost/libs/numeric/ublas/doc/doxyfiles/html/a00620_source.html
HTML
mit
234,460
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ur_PK" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Neutron</source> <translation type="unfinished"/> </message> <message> <location line="+39"/> <source>&lt;b&gt;Neutron&lt;/b&gt; version</source> <translation type="unfinished"/> </message> <message> <location line="+41"/> <source>Copyright © 2009-2014 The Bitcoin developers Copyright © 2012-2014 The NovaCoin developers Copyright © 2014 The Neutron developers</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source> This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>Double-click to edit address or label</source> <translation>ایڈریس یا لیبل میں ترمیم کرنے پر ڈبل کلک کریں</translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation>نیا ایڈریس بنائیں</translation> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation type="unfinished"/> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation type="unfinished"/> </message> <message> <location line="-46"/> <source>These are your Neutron addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source> <translation type="unfinished"/> </message> <message> <location line="+60"/> <source>&amp;Copy Address</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a Neutron address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Delete the currently selected address from the list</source> <translation type="unfinished"/> </message> <message> <location line="-14"/> <source>Verify a message to ensure it was signed with a specified Neutron address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation type="unfinished"/> </message> <message> <location filename="../addressbookpage.cpp" line="+65"/> <source>Copy &amp;Label</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>&amp;Edit</source> <translation type="unfinished"/> </message> <message> <location line="+250"/> <source>Export Address Book Data</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation>چٹ</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation> پتہ</translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>چٹ کے بغیر</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>پاس فریز داخل کریں</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>نیا پاس فریز</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>نیا پاس فریز دہرائیں</translation> </message> <message> <location line="+33"/> <source>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>For staking only</source> <translation type="unfinished"/> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+35"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>بٹوا ان لاک</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>خفیہ کشائی کر یںبٹوے کے</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>پاس فریز تبدیل کریں</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR COINS&lt;/b&gt;!</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+103"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation type="unfinished"/> </message> <message> <location line="-133"/> <location line="+60"/> <source>Wallet encrypted</source> <translation type="unfinished"/> </message> <message> <location line="-58"/> <source>Neutron will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your coins from being stolen by malware infecting your computer.</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+44"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation type="unfinished"/> </message> <message> <location line="-56"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <location line="+50"/> <source>The supplied passphrases do not match.</source> <translation type="unfinished"/> </message> <message> <location line="-38"/> <source>Wallet unlock failed</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <location line="+12"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation type="unfinished"/> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation type="unfinished"/> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+280"/> <source>Sign &amp;message...</source> <translation type="unfinished"/> </message> <message> <location line="+242"/> <source>Synchronizing with network...</source> <translation type="unfinished"/> </message> <message> <location line="-308"/> <source>&amp;Overview</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>&amp;Transactions</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>&amp;Address Book</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Edit the list of stored addresses and labels</source> <translation type="unfinished"/> </message> <message> <location line="-13"/> <source>&amp;Receive coins</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show the list of addresses for receiving payments</source> <translation type="unfinished"/> </message> <message> <location line="-7"/> <source>&amp;Send coins</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>E&amp;xit</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Quit application</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Show information about Neutron</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>&amp;Encrypt Wallet...</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+250"/> <source>~%n block(s) remaining</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+6"/> <source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source> <translation type="unfinished"/> </message> <message> <location line="-247"/> <source>&amp;Export...</source> <translation type="unfinished"/> </message> <message> <location line="-62"/> <source>Send coins to a Neutron address</source> <translation type="unfinished"/> </message> <message> <location line="+45"/> <source>Modify configuration options for Neutron</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>Export the data in the current tab to a file</source> <translation type="unfinished"/> </message> <message> <location line="-14"/> <source>Encrypt or decrypt wallet</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Backup wallet to another location</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>&amp;Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation type="unfinished"/> </message> <message> <location line="-5"/> <source>&amp;Verify message...</source> <translation type="unfinished"/> </message> <message> <location line="-200"/> <source>Neutron</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+178"/> <source>&amp;About Neutron</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Unlock wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>&amp;Lock Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Lock wallet</source> <translation type="unfinished"/> </message> <message> <location line="+34"/> <source>&amp;File</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>&amp;Settings</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>&amp;Help</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Tabs toolbar</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Actions toolbar</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <location line="+9"/> <source>[testnet]</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <location line="+60"/> <source>Neutron client</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+70"/> <source>%n active connection(s) to Neutron network</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+40"/> <source>Downloaded %1 blocks of transaction history.</source> <translation type="unfinished"/> </message> <message> <location line="+413"/> <source>Staking.&lt;br&gt;Your weight is %1&lt;br&gt;Network weight is %2&lt;br&gt;Expected time to earn reward is %3</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Not staking because wallet is locked</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Not staking because wallet is offline</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Not staking because wallet is syncing</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Not staking because you don&apos;t have mature coins</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="-403"/> <source>%n second(s) ago</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="-284"/> <source>&amp;Unlock Wallet...</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+288"/> <source>%n minute(s) ago</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n hour(s) ago</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s) ago</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+6"/> <source>Up to date</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Catching up...</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Last received block was generated %1.</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Confirm transaction fee</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Sent transaction</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Incoming transaction</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation type="unfinished"/> </message> <message> <location line="+100"/> <location line="+15"/> <source>URI handling</source> <translation type="unfinished"/> </message> <message> <location line="-15"/> <location line="+15"/> <source>URI can not be parsed! This can be caused by an invalid Neutron address or malformed URI parameters.</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Backup Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Wallet Data (*.dat)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Backup Failed</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+76"/> <source>%n second(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n minute(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n hour(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+18"/> <source>Not staking</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoin.cpp" line="+109"/> <source>A fatal error occurred. Neutron can no longer continue safely and will quit.</source> <translation type="unfinished"/> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+90"/> <source>Network Alert</source> <translation type="unfinished"/> </message> </context> <context> <name>CoinControlDialog</name> <message> <location filename="../forms/coincontroldialog.ui" line="+14"/> <source>Coin Control</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Quantity:</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>Bytes:</source> <translation type="unfinished"/> </message> <message> <location line="+48"/> <source>Amount:</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>Priority:</source> <translation type="unfinished"/> </message> <message> <location line="+48"/> <source>Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Low Output:</source> <translation type="unfinished"/> </message> <message> <location filename="../coincontroldialog.cpp" line="+551"/> <source>no</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/coincontroldialog.ui" line="+51"/> <source>After Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Change:</source> <translation type="unfinished"/> </message> <message> <location line="+69"/> <source>(un)select all</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Tree mode</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>List mode</source> <translation type="unfinished"/> </message> <message> <location line="+45"/> <source>Amount</source> <translation>رقم</translation> </message> <message> <location line="+5"/> <source>Label</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Address</source> <translation> پتہ</translation> </message> <message> <location line="+5"/> <source>Date</source> <translation>تاریخ</translation> </message> <message> <location line="+5"/> <source>Confirmations</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Confirmed</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Priority</source> <translation type="unfinished"/> </message> <message> <location filename="../coincontroldialog.cpp" line="-515"/> <source>Copy address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <location line="+26"/> <source>Copy amount</source> <translation type="unfinished"/> </message> <message> <location line="-25"/> <source>Copy transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>Copy quantity</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Copy fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy after fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy bytes</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy priority</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy low output</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy change</source> <translation type="unfinished"/> </message> <message> <location line="+317"/> <source>highest</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>high</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>medium-high</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>medium</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>low-medium</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>low</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>lowest</source> <translation type="unfinished"/> </message> <message> <location line="+155"/> <source>DUST</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>yes</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>This label turns red, if the transaction size is bigger than 10000 bytes. This means a fee of at least %1 per kb is required. Can vary +/- 1 Byte per input.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transactions with higher priority get more likely into a block. This label turns red, if the priority is smaller than &quot;medium&quot;. This means a fee of at least %1 per kb is required.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This label turns red, if any recipient receives an amount smaller than %1. This means a fee of at least %2 is required. Amounts below 0.546 times the minimum relay fee are shown as DUST.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This label turns red, if the change is smaller than %1. This means a fee of at least %2 is required.</source> <translation type="unfinished"/> </message> <message> <location line="+37"/> <location line="+66"/> <source>(no label)</source> <translation>چٹ کے بغیر</translation> </message> <message> <location line="-9"/> <source>change from %1 (%2)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>(change)</source> <translation type="unfinished"/> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>The label associated with this address book entry</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Address</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>The address associated with this address book entry. This can only be modified for sending addresses.</source> <translation type="unfinished"/> </message> <message> <location filename="../editaddressdialog.cpp" line="+20"/> <source>New receiving address</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>New sending address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation type="unfinished"/> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation type="unfinished"/> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid Neutron address.</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation type="unfinished"/> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+420"/> <location line="+12"/> <source>Neutron-Qt</source> <translation type="unfinished"/> </message> <message> <location line="-12"/> <source>version</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Usage:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>UI options</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation type="unfinished"/> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB. Fee 5.00 recommended.</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Reserved amount does not participate in staking and is therefore spendable at any time.</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Reserve</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Automatically start Neutron after logging in to the system.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Start Neutron on system login</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Detach block and address databases at shutdown. This means they can be moved to another data directory, but it slows down shutdown. The wallet is always detached.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Detach databases at shutdown</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>&amp;Network</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Automatically open the Neutron client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Map port using &amp;UPnP</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Connect to the Neutron network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Proxy &amp;IP:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Port:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation type="unfinished"/> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting Neutron.</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Whether to show Neutron addresses in the transaction list or not.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Whether to show coin control features or not.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Display coin &amp;control features (experts only!)</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="+55"/> <source>default</source> <translation type="unfinished"/> </message> <message> <location line="+149"/> <location line="+9"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="-9"/> <location line="+9"/> <source>This setting will take effect after restarting Neutron.</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation type="unfinished"/> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation type="unfinished"/> </message> <message> <location line="+33"/> <location line="+231"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the Neutron network after a connection is established, but this process has not completed yet.</source> <translation type="unfinished"/> </message> <message> <location line="-160"/> <source>Stake:</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Unconfirmed:</source> <translation type="unfinished"/> </message> <message> <location line="-107"/> <source>Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+49"/> <source>Spendable:</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Your current spendable balance</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>Immature:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation type="unfinished"/> </message> <message> <location line="+20"/> <source>Total:</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Your current total balance</source> <translation type="unfinished"/> </message> <message> <location line="+46"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation type="unfinished"/> </message> <message> <location line="-108"/> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source> <translation type="unfinished"/> </message> <message> <location line="-29"/> <source>Total of coins that was staked, and do not yet count toward the current balance</source> <translation type="unfinished"/> </message> <message> <location filename="../overviewpage.cpp" line="+113"/> <location line="+1"/> <source>out of sync</source> <translation type="unfinished"/> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="+14"/> <source>QR Code Dialog</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation type="unfinished"/> </message> <message> <location line="+56"/> <source>Amount:</source> <translation type="unfinished"/> </message> <message> <location line="-44"/> <source>Label:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Message:</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>&amp;Save As...</source> <translation type="unfinished"/> </message> <message> <location filename="../qrcodedialog.cpp" line="+62"/> <source>Error encoding URI into QR Code.</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <source>The entered amount is invalid, please check.</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Save QR Code</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>PNG Images (*.png)</source> <translation type="unfinished"/> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <location line="+23"/> <location line="+26"/> <location line="+23"/> <location line="+23"/> <location line="+36"/> <location line="+53"/> <location line="+23"/> <location line="+23"/> <location filename="../rpcconsole.cpp" line="+348"/> <source>N/A</source> <translation type="unfinished"/> </message> <message> <location line="-217"/> <source>Client version</source> <translation type="unfinished"/> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation type="unfinished"/> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation type="unfinished"/> </message> <message> <location line="+49"/> <source>Startup time</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Network</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>On testnet</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Block chain</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Last block time</source> <translation type="unfinished"/> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Show the Neutron-Qt help message to get a list with possible Neutron command-line options.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation type="unfinished"/> </message> <message> <location line="-260"/> <source>Build date</source> <translation type="unfinished"/> </message> <message> <location line="-104"/> <source>Neutron - Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Neutron Core</source> <translation type="unfinished"/> </message> <message> <location line="+279"/> <source>Debug log file</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Open the Neutron debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation type="unfinished"/> </message> <message> <location line="+102"/> <source>Clear console</source> <translation type="unfinished"/> </message> <message> <location filename="../rpcconsole.cpp" line="-33"/> <source>Welcome to the Neutron RPC console.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="+14"/> <location filename="../sendcoinsdialog.cpp" line="+182"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+6"/> <location line="+5"/> <location line="+5"/> <source>Send Coins</source> <translation type="unfinished"/> </message> <message> <location line="+76"/> <source>Coin Control Features</source> <translation type="unfinished"/> </message> <message> <location line="+20"/> <source>Inputs...</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>automatically selected</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Insufficient funds!</source> <translation type="unfinished"/> </message> <message> <location line="+77"/> <source>Quantity:</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <location line="+35"/> <source>0</source> <translation type="unfinished"/> </message> <message> <location line="-19"/> <source>Bytes:</source> <translation type="unfinished"/> </message> <message> <location line="+51"/> <source>Amount:</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <location line="+86"/> <location line="+86"/> <location line="+32"/> <source>0.00 BC</source> <translation type="unfinished"/> </message> <message> <location line="-191"/> <source>Priority:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>medium</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Low Output:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>no</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>After Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Change</source> <translation type="unfinished"/> </message> <message> <location line="+50"/> <source>custom change address</source> <translation type="unfinished"/> </message> <message> <location line="+106"/> <source>Send to multiple recipients at once</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation type="unfinished"/> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>Balance:</source> <translation>بیلنس:</translation> </message> <message> <location line="+16"/> <source>123.456 BC</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Confirm the send action</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-173"/> <source>Enter a Neutron address (e.g. 2JhbfkAFvXqYkreSgJfrRLS9DepUcxbQci)</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Copy quantity</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy after fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy bytes</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy priority</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy low output</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy change</source> <translation type="unfinished"/> </message> <message> <location line="+86"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source> and </source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>The recipient address is not valid, please recheck.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: Transaction creation failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> <message> <location line="+251"/> <source>WARNING: Invalid Neutron address</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>(no label)</source> <translation>چٹ کے بغیر</translation> </message> <message> <location line="+4"/> <source>WARNING: unknown change address</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <location filename="../sendcoinsentry.cpp" line="+25"/> <source>Enter a label for this address to add it to your address book</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>&amp;Label:</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>The address to send the payment to (e.g. 2JhbfkAFvXqYkreSgJfrRLS9DepUcxbQci)</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Choose address from address book</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Alt+A</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Paste address from clipboard</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Remove this recipient</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a Neutron address (e.g. 2JhbfkAFvXqYkreSgJfrRLS9DepUcxbQci)</source> <translation type="unfinished"/> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <location filename="../forms/signverifymessagedialog.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <location line="+124"/> <source>&amp;Sign Message</source> <translation type="unfinished"/> </message> <message> <location line="-118"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. 2JhbfkAFvXqYkreSgJfrRLS9DepUcxbQci)</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <location line="+203"/> <source>Choose an address from the address book</source> <translation type="unfinished"/> </message> <message> <location line="-193"/> <location line="+203"/> <source>Alt+A</source> <translation type="unfinished"/> </message> <message> <location line="-193"/> <source>Paste address from clipboard</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Enter the message you want to sign here</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>Copy the current signature to the system clipboard</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this Neutron address</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Reset all sign message fields</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation type="unfinished"/> </message> <message> <location line="-87"/> <location line="+70"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="-64"/> <source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. 2JhbfkAFvXqYkreSgJfrRLS9DepUcxbQci)</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified Neutron address</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Reset all verify message fields</source> <translation type="unfinished"/> </message> <message> <location filename="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a Neutron address (e.g. 2JhbfkAFvXqYkreSgJfrRLS9DepUcxbQci)</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Enter Neutron signature</source> <translation type="unfinished"/> </message> <message> <location line="+82"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation type="unfinished"/> </message> <message> <location line="-81"/> <location line="+8"/> <location line="+73"/> <location line="+8"/> <source>Please check the address and try again.</source> <translation type="unfinished"/> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation type="unfinished"/> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+19"/> <source>Open until %1</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="-2"/> <source>Open for %n block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+8"/> <source>conflicted</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1/offline</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>Status</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>تاریخ</translation> </message> <message> <location line="+7"/> <source>Source</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Generated</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <location line="+17"/> <source>From</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <location line="+22"/> <location line="+58"/> <source>To</source> <translation type="unfinished"/> </message> <message> <location line="-77"/> <location line="+2"/> <source>own address</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>label</source> <translation type="unfinished"/> </message> <message> <location line="+37"/> <location line="+12"/> <location line="+45"/> <location line="+17"/> <location line="+30"/> <source>Credit</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="-102"/> <source>matures in %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation type="unfinished"/> </message> <message> <location line="+44"/> <location line="+8"/> <location line="+15"/> <location line="+30"/> <source>Debit</source> <translation type="unfinished"/> </message> <message> <location line="-39"/> <source>Transaction fee</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Net amount</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Message</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Comment</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Generated coins must mature 110 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Debug information</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Transaction</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Inputs</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Amount</source> <translation>رقم</translation> </message> <message> <location line="+1"/> <source>true</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>false</source> <translation type="unfinished"/> </message> <message> <location line="-211"/> <source>, has not been successfully broadcast yet</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>unknown</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+226"/> <source>Date</source> <translation>تاریخ</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>ٹائپ</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation> پتہ</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation>رقم</translation> </message> <message> <location line="+60"/> <source>Open until %1</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Confirmed (%1 confirmations)</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="-15"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+6"/> <source>Offline</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Unconfirmed</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Confirming (%1 of %2 recommended confirmations)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Conflicted</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Immature (%1 confirmations, will be available after %2)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation type="unfinished"/> </message> <message> <location line="+42"/> <source>Received with</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Received from</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sent to</source> <translation>کو بھیجا</translation> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Mined</source> <translation type="unfinished"/> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation>(N / A)</translation> </message> <message> <location line="+190"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+55"/> <location line="+16"/> <source>All</source> <translation>تمام</translation> </message> <message> <location line="-15"/> <source>Today</source> <translation>آج</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation>اس ہفتے</translation> </message> <message> <location line="+1"/> <source>This month</source> <translation>اس مہینے</translation> </message> <message> <location line="+1"/> <source>Last month</source> <translation>پچھلے مہینے</translation> </message> <message> <location line="+1"/> <source>This year</source> <translation>اس سال</translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation>دیگر</translation> </message> <message> <location line="+11"/> <source>Received with</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Sent to</source> <translation>کو بھیجا</translation> </message> <message> <location line="+2"/> <source>To yourself</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Mined</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Other</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Min amount</source> <translation type="unfinished"/> </message> <message> <location line="+34"/> <source>Copy address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Edit label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation type="unfinished"/> </message> <message> <location line="+144"/> <source>Export Transaction Data</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Date</source> <translation>تاریخ</translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>ٹائپ</translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>چٹ</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation> پتہ</translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation>رقم</translation> </message> <message> <location line="+1"/> <source>ID</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation type="unfinished"/> </message> <message> <location line="+100"/> <source>Range:</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>to</source> <translation type="unfinished"/> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+206"/> <source>Sending...</source> <translation type="unfinished"/> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+33"/> <source>Neutron version</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Usage:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Send command to -server or Neutrond</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>List commands</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Get help for a command</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Options:</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Specify configuration file (default: Neutron.conf)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Specify pid file (default: Neutrond.pid)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Specify wallet file (within data directory)</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Set database cache size in megabytes (default: 25)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set database disk log size in megabytes (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Listen for connections on &lt;port&gt; (default: 15714 or testnet: 25714)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Specify your own public address</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Bind to given address. Use [host]:port notation for IPv6</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Stake your coins to support network and gain reward (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation type="unfinished"/> </message> <message> <location line="-44"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation type="unfinished"/> </message> <message> <location line="+51"/> <source>Detach block and address databases. Increases shutdown time (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+109"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> <message> <location line="-5"/> <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds </source> <translation type="unfinished"/> </message> <message> <location line="-87"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 15715 or testnet: 25715)</source> <translation type="unfinished"/> </message> <message> <location line="-11"/> <source>Accept command line and JSON-RPC commands</source> <translation type="unfinished"/> </message> <message> <location line="+101"/> <source>Error: Transaction creation failed </source> <translation type="unfinished"/> </message> <message> <location line="-5"/> <source>Error: Wallet locked, unable to create transaction </source> <translation type="unfinished"/> </message> <message> <location line="-8"/> <source>Importing blockchain data file.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Importing bootstrap blockchain data file.</source> <translation type="unfinished"/> </message> <message> <location line="-88"/> <source>Run in the background as a daemon and accept commands</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use the test network</source> <translation type="unfinished"/> </message> <message> <location line="-24"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation type="unfinished"/> </message> <message> <location line="-38"/> <source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source> <translation type="unfinished"/> </message> <message> <location line="+117"/> <source>Error initializing database environment %s! To recover, BACKUP THAT DIRECTORY, then remove everything from it except for wallet.dat.</source> <translation type="unfinished"/> </message> <message> <location line="-20"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+61"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong Neutron will not work properly.</source> <translation type="unfinished"/> </message> <message> <location line="-31"/> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation type="unfinished"/> </message> <message> <location line="-18"/> <source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source> <translation type="unfinished"/> </message> <message> <location line="-30"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Block creation options:</source> <translation type="unfinished"/> </message> <message> <location line="-62"/> <source>Connect only to the specified node(s)</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation type="unfinished"/> </message> <message> <location line="+94"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation type="unfinished"/> </message> <message> <location line="-90"/> <source>Find peers using DNS lookup (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Sync checkpoints policy (default: strict)</source> <translation type="unfinished"/> </message> <message> <location line="+83"/> <source>Invalid -tor address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Invalid amount for -reservebalance=&lt;amount&gt;</source> <translation type="unfinished"/> </message> <message> <location line="-82"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation type="unfinished"/> </message> <message> <location line="-16"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>Output extra debugging information. Implies all other -debug* options</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Output extra network debugging information</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Prepend debug output with timestamp</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source> <translation type="unfinished"/> </message> <message> <location line="-74"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation type="unfinished"/> </message> <message> <location line="+41"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Send trace/debug info to debugger</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="-29"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation type="unfinished"/> </message> <message> <location line="-42"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation type="unfinished"/> </message> <message> <location line="+109"/> <source>Unable to sign checkpoint, wrong checkpointkey? </source> <translation type="unfinished"/> </message> <message> <location line="-80"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation type="unfinished"/> </message> <message> <location line="-25"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation type="unfinished"/> </message> <message> <location line="+42"/> <source>Username for JSON-RPC connections</source> <translation type="unfinished"/> </message> <message> <location line="+47"/> <source>Verifying database integrity...</source> <translation type="unfinished"/> </message> <message> <location line="+57"/> <source>WARNING: syncronized checkpoint violation detected, but skipped!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Warning: Disk space is low!</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation type="unfinished"/> </message> <message> <location line="-48"/> <source>wallet.dat corrupt, salvage failed</source> <translation type="unfinished"/> </message> <message> <location line="-54"/> <source>Password for JSON-RPC connections</source> <translation type="unfinished"/> </message> <message> <location line="-84"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=Neutronrpc rpcpassword=%s (you do not need to remember this password) The username and password MUST NOT be the same. If the file does not exist, create it with owner-readable-only file permissions. It is also recommended to set alertnotify so you are notified of problems; for example: alertnotify=echo %%s | mail -s &quot;Neutron Alert&quot; admin@foo.com </source> <translation type="unfinished"/> </message> <message> <location line="+51"/> <source>Find peers using internet relay chat (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Sync time with other nodes. Disable if time on your system is precise e.g. syncing with NTP (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Require a confirmations for change (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Enforce transaction scripts to use canonical PUSH operators (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Upgrade wallet to latest format</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Rescan the block chain for missing wallet transactions</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>How many blocks to check at startup (default: 2500, 0 = all)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>How thorough the block verification is (0-6, default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Imports blocks from external blk000?.dat file</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Server certificate file (default: server.cert)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation type="unfinished"/> </message> <message> <location line="+53"/> <source>Error: Wallet unlocked for staking only, unable to create transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>WARNING: Invalid checkpoint found! Displayed transactions may not be correct! You may need to upgrade, or notify developers.</source> <translation type="unfinished"/> </message> <message> <location line="-158"/> <source>This help message</source> <translation>یہ مدد کا پیغام</translation> </message> <message> <location line="+95"/> <source>Wallet %s resides outside data directory %s.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot obtain a lock on data directory %s. Neutron is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="-98"/> <source>Neutron</source> <translation type="unfinished"/> </message> <message> <location line="+140"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation type="unfinished"/> </message> <message> <location line="-130"/> <source>Connect through socks proxy</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation type="unfinished"/> </message> <message> <location line="+122"/> <source>Loading addresses...</source> <translation type="unfinished"/> </message> <message> <location line="-15"/> <source>Error loading blkindex.dat</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error loading wallet.dat: Wallet requires newer version of Neutron</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Wallet needed to be rewritten: restart Neutron to complete</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error loading wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="-16"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="-24"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+44"/> <source>Error: could not start node</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Sending...</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Invalid amount</source> <translation>غلط رقم</translation> </message> <message> <location line="+1"/> <source>Insufficient funds</source> <translation>ناکافی فنڈز</translation> </message> <message> <location line="-34"/> <source>Loading block index...</source> <translation type="unfinished"/> </message> <message> <location line="-103"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation type="unfinished"/> </message> <message> <location line="+122"/> <source>Unable to bind to %s on this computer. Neutron is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="-97"/> <source>Fee per KB to add to transactions you send</source> <translation type="unfinished"/> </message> <message> <location line="+55"/> <source>Invalid amount for -mininput=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Loading wallet...</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Cannot downgrade wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot initialize keypool</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot write default address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Rescanning...</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Done loading</source> <translation type="unfinished"/> </message> <message> <location line="-167"/> <source>To use the %s option</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Error</source> <translation>نقص</translation> </message> <message> <location line="+6"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation type="unfinished"/> </message> </context> </TS>
Infernoman/Neutroncoin
src/qt/locale/bitcoin_ur_PK.ts
TypeScript
mit
107,649
<?php namespace Users\Test\TestCase\Controller; use Cake\TestSuite\IntegrationTestCase; use Users\Controller\UsersController; /** * Users\Controller\UsersController Test Case */ class UsersControllerTest extends IntegrationTestCase { /** * Fixtures * * @var array */ public $fixtures = [ 'plugin.users.users' ]; /** * Test index method * * @return void */ public function testIndex() { $this->markTestIncomplete('Not implemented yet.'); } /** * Test view method * * @return void */ public function testView() { $this->markTestIncomplete('Not implemented yet.'); } /** * Test add method * * @return void */ public function testAdd() { $this->markTestIncomplete('Not implemented yet.'); } /** * Test edit method * * @return void */ public function testEdit() { $this->markTestIncomplete('Not implemented yet.'); } /** * Test delete method * * @return void */ public function testDelete() { $this->markTestIncomplete('Not implemented yet.'); } }
cakemanager/cakephp-users
tests/TestCase/Controller/UsersControllerTest.php
PHP
mit
1,213
// infoware - C++ System information Library // // Written in 2016-2020 by nabijaczleweli <nabijaczleweli@gmail.com> and ThePhD <phdofthehouse@gmail.com> // // To the extent possible under law, the author(s) have dedicated all copyright and related // and neighboring rights to this software to the public domain worldwide. This software is // distributed without any warranty. // // You should have received a copy of the CC0 Public Domain Dedication along with this software. // If not, see <http://creativecommons.org/publicdomain/zero/1.0/> #ifdef __APPLE__ #include "infoware/detail/sysctl.hpp" #include "infoware/system.hpp" #include <cstdint> #include <mach/mach.h> #include <mach/vm_statistics.h> #include <sys/sysctl.h> #include <sys/types.h> #include <unistd.h> /// Adapted from https://stackoverflow.com/q/14789672/2851815 iware::system::memory_t iware::system::memory() noexcept { iware::system::memory_t ret{}; const auto host = mach_host_self(); const auto ctl_ram = iware::detail::sysctl(CTL_HW, HW_MEMSIZE); if(!ctl_ram.empty()) { const auto ram = iware::detail::deconstruct_sysctl_int(ctl_ram); if(ram.first) ret.virtual_total = ram.second; } vm_statistics64 stats; natural_t count = HOST_VM_INFO64_COUNT; if(host_statistics64(host, HOST_VM_INFO64, reinterpret_cast<host_info64_t>(&stats), &count) == KERN_SUCCESS) ret.virtual_available = stats.free_count * getpagesize(); ret.physical_total = ret.virtual_total; ret.physical_available = ret.virtual_available; return ret; } #endif
Siv3D/OpenSiv3D
Siv3D/src/ThirdParty/infoware/src/system/memory/memory_darwin.cpp
C++
mit
1,536
module Jasmine class YamlConfigParser def initialize(path, pwd, path_expander = lambda {}, yaml_loader = lambda {}) @path = path @path_expander = path_expander @pwd = pwd @yaml_loader = yaml_loader end def src_dir return @pwd unless loaded_yaml['src_dir'] File.join(@pwd, loaded_yaml['src_dir']) end def spec_dir return File.join(@pwd, 'spec', 'javascripts') unless loaded_yaml['spec_dir'] File.join(@pwd, loaded_yaml['spec_dir']) end def jasmine_dir return nil unless loaded_yaml['jasmine_dir'] File.join(@pwd, loaded_yaml['jasmine_dir']) end def boot_dir return nil unless loaded_yaml['boot_dir'] File.join(@pwd, loaded_yaml['boot_dir']) end def src_files @path_expander.call(src_dir, loaded_yaml['src_files'] || []) end def jasmine_files @path_expander.call(jasmine_dir, loaded_yaml['jasmine_files'] || []) end def boot_files @path_expander.call(boot_dir, loaded_yaml['boot_files'] || []) end def jasmine_css_files @path_expander.call(jasmine_dir, loaded_yaml['jasmine_css_files'] || []) end def spec_files @path_expander.call(spec_dir, loaded_yaml['spec_files'] || []) end def helpers @path_expander.call(spec_dir, loaded_yaml['helpers'] || []) end def css_files @path_expander.call(src_dir, loaded_yaml['stylesheets'] || []) end def spec_helper File.join(@pwd, loaded_yaml['spec_helper'] || File.join('spec', 'javascripts', 'support', 'jasmine_helper.rb')) end private def loaded_yaml @yaml_loader.call(@path) end end end
kapost/jasmine-gem
lib/jasmine/yaml_config_parser.rb
Ruby
mit
1,686
<?php class CodeGenerator { // e.g. "FontAwesome" protected $fontIdentifier; // e.g. "FA" protected $iconTypePrefix; // e.g. "FontAwesome.otf" protected $fontFile; // e.g. "Font Awesome v4.5.0" protected $fontDescription; // e.g. "FontAwesome", or null to use the filename of $fontFile protected $fontName; // Whether moving the .h and .m files to the Xcode project. protected $moveToXcodeProject = true; // e.g. ['fa-wifi-o'] protected $iconIdentifiers = []; // e.g. ['wifi-o'] protected $iconNames = []; // e.g. ['f01a'] protected $iconCodes = []; protected $classPrefix = 'IF'; protected $hContent; protected $mContent; // The root path which stores IconFontKit classes. protected $xcodeProjectRoot; public function __construct($fontIdentifier, $fontFile, $iconTypePrefix = null, $fontDescription = null, $fontName = null, $moveToXcodeProject = true) { $this->fontIdentifier = ucfirst($fontIdentifier); $this->fontFile = $fontFile; $this->iconTypePrefix = $iconTypePrefix ? ucfirst($iconTypePrefix) : $this->fontIdentifier; $this->fontDescription = $fontDescription ?: $fontIdentifier; $this->fontName = $fontName; $this->moveToXcodeProject = (bool)$moveToXcodeProject; $this->xcodeProjectRoot = realpath(dirname(__FILE__) . '/../IconFontKit'); } /** * Set icon identifiers, names, and codes. * * @param array $iconIdentifiers e.g. ['fa-wifi-o'] * @param array $iconNames e.g. ['wifi-o'] * @param array $iconCodes e.g. ['f01a'] */ public function setIcons($iconIdentifiers, $iconNames, $iconCodes) { $this->iconIdentifiers = (array)$iconIdentifiers; $this->iconNames = (array)$iconNames; $this->iconCodes = (array)$iconCodes; } /** * Generate from icon identifiers, names, and codes. */ public function generate() { $this->generateContents(); $this->writeCodeToFiles(); } /** * Generate from CSS file. * * e.g. `.iconClassPrefix-icon-name: ... { content: "\f001" }` */ public function generateFromCssFile($cssFile, $iconClassPrefix) { if ($this->parseCssFile($cssFile, $iconClassPrefix)) { $this->generate(); } else { echo "Could not parse css file: $cssFile\n"; exit; } } /** * Get icons number that icon aliases are not included. */ public function getIconsCount() { return count(array_unique($this->iconCodes)); } public function getClassPrefix() { return $this->classPrefix; } public function setClassPrefix($prefix) { $this->classPrefix = empty($prefix) ? '' : $prefix; } /** * Get generated ObjC class name. */ protected function getClassName() { return $this->getClassPrefix() . $this->fontIdentifier; } /** * Get generated ObjC icon type prefix. */ protected function getTypePrefix() { return $this->getClassPrefix() . $this->iconTypePrefix; } /** * Get code contents for the class interface. */ protected function getHContent() { return $this->hContent; } /** * Get code contents for the class implementation. */ protected function getMContent() { return $this->mContent; } /** * Generate .h and .m code contents, and set $hContent and $mContent. */ protected function generateContents() { $tab = " "; $className = $this->getClassName(); $typePrefix = $this->getTypePrefix(); $allNames = []; $duplicatedIndexes = []; // $hContent = "#import <IconFontKit/IFIcon.h>\n\n"; $hContent = '#import "IFIcon.h"' . "\n\n"; $hContent .= "/**\n"; $hContent .= " * {$this->fontIdentifier} icon types.\n"; $hContent .= " */\n"; $hContent .= "typedef NS_ENUM(IFIconType, {$className}Type) {\n\n"; for ($i = 0; $i < count($this->iconIdentifiers); ++$i) { $name = $this->iconNames[$i]; $name = ucfirst($name); $name = preg_replace_callback("#[-_.]+[0-9a-z]#i", function($matches) { return strtoupper(preg_replace("#[-_.]#", '', $matches[0])); }, $name); if (in_array($name, $allNames)) { $duplicatedIndexes[] = $i; continue; } else { $allNames[] = $name; } $type = sprintf("{$tab}{$typePrefix}%-35s = 0x%s,\n", $name, $this->iconCodes[$i]); $hContent .= "{$tab}/// Identifier: \"". $this->iconIdentifiers[$i] ."\"\n"; $hContent .= $type; $hContent .= "\n"; } $hContent .= "};\n\n"; $fontDesc = str_replace("\n", "\n * ", $this->fontDescription); $hContent .= "/**\n * $fontDesc\n */\n"; $hContent .= "@interface $className : IFIcon\n"; $hContent .= "@end\n"; $mContent = "#import \"$className.h\"\n\n"; $mContent .= "@implementation $className\n"; $mContent .= "\n+ (NSURL *)fontFileURL\n{\n"; $mContent .= "{$tab}return [[[NSBundle mainBundle] resourceURL] URLByAppendingPathComponent:@\"$this->fontFile\"];\n"; $mContent .= "}\n"; if (!empty($this->fontName)) { $mContent .= "\n+ (NSString *)fontName\n{\n"; $mContent .= "{$tab}return @\"$this->fontName\";\n"; $mContent .= "}\n"; } $mContent .= "\n+ (NSDictionary *)allIcons\n{\n"; $mContent .= "{$tab}return @{\n"; for ($i = 0; $i < count($this->iconIdentifiers); ++$i) { if (in_array($i, $duplicatedIndexes)) { continue; } $idKey = "@\"{$this->iconIdentifiers[$i]}\": "; $code = $this->iconCodes[$i]; if (hexdec($code) <= 0xff) { $code = "[NSString stringWithFormat:@\"%C\", 0x{$code}]"; } else { $code = "@\"\\u{$code}\""; } $mContent .= sprintf("%13s%-44s%s,\n", " ", $idKey, $code); } $mContent .= sprintf("%13s};\n", " "); $mContent .= "}\n"; $mContent .= "\n@end\n"; $this->hContent = $hContent; $this->mContent = $mContent; } /** * Write code contents to files. */ protected function writeCodeToFiles() { $hFilename = $this->getClassName() . '.h'; $mFilename = $this->getClassName() . '.m'; if ( file_put_contents($hFilename, $this->getHContent()) && file_put_contents($mFilename, $this->getMContent()) ) { if ($this->moveToXcodeProject) { rename($hFilename, $this->xcodeProjectRoot.'/'.$hFilename); rename($mFilename, $this->xcodeProjectRoot.'/'.$mFilename); } echo "$this->fontIdentifier contains " . $this->getIconsCount() . " icons.\n"; } else { echo "Could not write code to file.\n"; } } /** * Parse CSS file to get icon names and codes. * * CSS file looks like: .iconClassPrefix-icon-name:... { content: "\f001" } * e.g. * * .fa-play-circle-o:before { * content: "\f01d"; * } * * .fa-rotate-right:before, * .fa-repeat:before { * content: "\f01e"; * } * * .ion-android-add:before { content: "\f2c7"; } * * .zocial.aol:before { content: "\f104"; } * */ protected function parseCssFile($cssFile, $iconClassPrefix) { $variables = file_get_contents($cssFile); if (empty($variables)) { return false; } $variables = preg_replace_callback( "#^\\.{$iconClassPrefix}[-_.][^,\\n]+,[^{]+({[^}]+})#im", function($matches) { return str_replace(',', $matches[1], $matches[0]); }, $variables ); if (preg_match_all( "#^\\.{$iconClassPrefix}([-_.])([^: ]+)[: ][^\"'}]*[\"']\\\\([0-9a-f]+)#im", $variables, $matches) ) { $this->iconNames = $matches[2]; $this->iconCodes = $matches[3]; foreach ($matches[2] as $str) { $this->iconIdentifiers[] = $iconClassPrefix . $matches[1][0] . $str; } return true; } return false; } }
ElfSundae/IconFontsKit
CodeGenerators/CodeGenerator.php
PHP
mit
8,877
using System.ComponentModel.Composition; using System.Net.Http; using System.Threading.Tasks; using Microsoft.Deployment.Common.ActionModel; using Microsoft.Deployment.Common.Actions; using Microsoft.Deployment.Common.ErrorCode; using Microsoft.Deployment.Common.Helpers; namespace Microsoft.Deployment.Actions.AzureCustom.Twitter { [Export(typeof(IAction))] public class GetTwitterConnection : BaseAction { public override async Task<ActionResponse> ExecuteActionAsync(ActionRequest request) { var azureToken = request.DataStore.GetJson("AzureToken", "access_token"); var subscription = request.DataStore.GetJson("SelectedSubscription", "SubscriptionId"); var resourceGroup = request.DataStore.GetValue("SelectedResourceGroup"); var location = request.DataStore.GetJson("SelectedLocation", "Name"); HttpResponseMessage connection = await new AzureHttpClient(azureToken, subscription, resourceGroup).ExecuteWithSubscriptionAndResourceGroupAsync(HttpMethod.Get, "/providers/Microsoft.Web/connections/twitter", "2015-08-01-preview", string.Empty); if (!connection.IsSuccessStatusCode) { return new ActionResponse(ActionStatus.Failure, JsonUtility.GetJObjectFromJsonString(await connection.Content.ReadAsStringAsync()), null, DefaultErrorCodes.DefaultErrorCode, "Failed to get consent"); } return new ActionResponse(ActionStatus.Success, await connection.Content.ReadAsStringAsync()); } } }
mayankon24/d-final
Source/Actions/Microsoft.Deployment.Actions.AzureCustom/Twitter/GetTwitterConnection.cs
C#
mit
1,596
!function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../ruby/ruby")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../ruby/ruby"],t):t(CodeMirror)}(function(t){"use strict";t.defineMode("slim",function(e){function n(t,e,n){var i=function(i,r){return r.tokenize=e,i.pos<t?(i.pos=t,n):r.tokenize(i,r)};return function(t,n){return n.tokenize=i,e(t,n)}}function i(t,e,i,r,o){var u=t.current(),a=u.search(i);return a>-1&&(e.tokenize=n(t.pos,e.tokenize,o),t.backUp(u.length-a-r)),o}function r(t,e){t.stack={parent:t.stack,style:"continuation",indented:e,tokenize:t.line},t.line=t.tokenize}function o(t){t.line==t.tokenize&&(t.line=t.stack.tokenize,t.stack=t.stack.parent)}function u(t,e){return function(n,i){if(o(i),n.match(/^\\$/))return r(i,t),"lineContinuation";var u=e(n,i);return n.eol()&&n.current().match(/(?:^|[^\\])(?:\\\\)*\\$/)&&n.backUp(1),u}}function a(t,e){return function(n,i){o(i);var u=e(n,i);return n.eol()&&n.current().match(/,$/)&&r(i,t),u}}function c(t,e){return function(n,i){var r=n.peek();return r==t&&1==i.rubyState.tokenize.length?(n.next(),i.tokenize=e,"closeAttributeTag"):s(n,i)}}function l(e){var n,i=function(t,i){if(1==i.rubyState.tokenize.length&&!i.rubyState.context.prev){if(t.backUp(1),t.eatSpace())return i.rubyState=n,i.tokenize=e,e(t,i);t.next()}return s(t,i)};return function(e,r){return n=r.rubyState,r.rubyState=t.startState(Z),r.tokenize=i,s(e,r)}}function s(t,e){return Z.token(t,e.rubyState)}function k(t,e){return t.match(/^\\$/)?"lineContinuation":d(t,e)}function d(t,e){return t.match(/^#\{/)?(e.tokenize=c("}",e.tokenize),null):i(t,e,/[^\\]#\{/,1,P.token(t,e.htmlState))}function m(t){return function(e,n){var i=k(e,n);return e.eol()&&(n.tokenize=t),i}}function f(t,e,n){return e.stack={parent:e.stack,style:"html",indented:t.column()+n,tokenize:e.line},e.line=e.tokenize=d,null}function b(t,e){return t.skipToEnd(),e.stack.style}function z(t,e){return e.stack={parent:e.stack,style:"comment",indented:e.indented+1,tokenize:e.line},e.line=b,b(t,e)}function p(t,e){return t.eat(e.stack.endQuote)?(e.line=e.stack.line,e.tokenize=e.stack.tokenize,e.stack=e.stack.parent,null):t.match(K)?(e.tokenize=x,"slimAttribute"):(t.next(),null)}function x(t,e){return t.match(/^==?/)?(e.tokenize=h,null):p(t,e)}function h(t,e){var n=t.peek();return'"'==n||"'"==n?(e.tokenize=q(n,"string",!0,!1,p),t.next(),e.tokenize(t,e)):"["==n?l(p)(t,e):t.match(/^(true|false|nil)\b/)?(e.tokenize=p,"keyword"):l(p)(t,e)}function y(t,e,n){return t.stack={parent:t.stack,style:"wrapper",indented:t.indented+1,tokenize:n,line:t.line,endQuote:e},t.line=t.tokenize=p,null}function S(e,n){if(e.match(/^#\{/))return n.tokenize=c("}",n.tokenize),null;var i=new t.StringStream(e.string.slice(n.stack.indented),e.tabSize);i.pos=e.pos-n.stack.indented,i.start=e.start-n.stack.indented,i.lastColumnPos=e.lastColumnPos-n.stack.indented,i.lastColumnValue=e.lastColumnValue-n.stack.indented;var r=n.subMode.token(i,n.subState);return e.pos=i.pos+n.stack.indented,r}function v(t,e){return e.stack.indented=t.column(),e.line=e.tokenize=S,e.tokenize(t,e)}function w(n){var i=D[n],r=t.mimeModes[i];if(r)return t.getMode(e,r);var o=t.modes[i];return o?o(e,{name:i}):t.getMode(e,"null")}function g(t){return _.hasOwnProperty(t)?_[t]:_[t]=w(t)}function M(e,n){var i=g(e),r=t.startState(i);return n.subMode=i,n.subState=r,n.stack={parent:n.stack,style:"sub",indented:n.indented+1,tokenize:n.line},n.line=n.tokenize=v,"slimSubmode"}function C(t,e){return t.skipToEnd(),"slimDoctype"}function E(t,e){var n=t.peek();if("<"==n)return(e.tokenize=m(e.tokenize))(t,e);if(t.match(/^[|']/))return f(t,e,1);if(t.match(/^\/(!|\[\w+])?/))return z(t,e);if(t.match(/^(-|==?[<>]?)/))return e.tokenize=u(t.column(),a(t.column(),s)),"slimSwitch";if(t.match(/^doctype\b/))return e.tokenize=C,"keyword";var i=t.match(Q);return i?M(i[1],e):L(t,e)}function A(t,e){return e.startOfLine?E(t,e):L(t,e)}function L(t,e){return t.eat("*")?(e.tokenize=l($),null):t.match(H)?(e.tokenize=$,"slimTag"):T(t,e)}function $(t,e){return t.match(/^(<>?|><?)/)?(e.tokenize=T,null):T(t,e)}function T(t,e){return t.match(W)?(e.tokenize=T,"slimId"):t.match(N)?(e.tokenize=T,"slimClass"):U(t,e)}function U(t,e){return t.match(/^([\[\{\(])/)?y(e,B[RegExp.$1],U):t.match(J)?(e.tokenize=j,"slimAttribute"):"*"==t.peek()?(t.next(),e.tokenize=l(I),null):I(t,e)}function j(t,e){return t.match(/^==?/)?(e.tokenize=O,null):U(t,e)}function O(t,e){var n=t.peek();return'"'==n||"'"==n?(e.tokenize=q(n,"string",!0,!1,U),t.next(),e.tokenize(t,e)):"["==n?l(U)(t,e):":"==n?l(R)(t,e):t.match(/^(true|false|nil)\b/)?(e.tokenize=U,"keyword"):l(U)(t,e)}function R(t,e){return t.backUp(1),t.match(/^[^\s],(?=:)/)?(e.tokenize=l(R),null):(t.next(),U(t,e))}function q(t,e,n,i,u){return function(a,l){o(l);var s=0==a.current().length;if(a.match(/^\\$/,s))return s?(r(l,l.indented),"lineContinuation"):e;if(a.match(/^#\{/,s))return s?(l.tokenize=c("}",l.tokenize),null):e;for(var k,d=!1;null!=(k=a.next());){if(k==t&&(i||!d)){l.tokenize=u;break}if(n&&"#"==k&&!d&&a.eat("{")){a.backUp(2);break}d=!d&&"\\"==k}return a.eol()&&d&&a.backUp(1),e}}function I(t,e){return t.match(/^==?/)?(e.tokenize=s,"slimSwitch"):t.match(/^\/$/)?(e.tokenize=A,null):t.match(/^:/)?(e.tokenize=L,"slimSwitch"):(f(t,e,0),e.tokenize(t,e))}var P=t.getMode(e,{name:"htmlmixed"}),Z=t.getMode(e,"ruby"),_={html:P,ruby:Z},D={ruby:"ruby",javascript:"javascript",css:"text/css",sass:"text/x-sass",scss:"text/x-scss",less:"text/x-less",styl:"text/x-styl",coffee:"coffeescript",asciidoc:"text/x-asciidoc",markdown:"text/x-markdown",textile:"text/x-textile",creole:"text/x-creole",wiki:"text/x-wiki",mediawiki:"text/x-mediawiki",rdoc:"text/x-rdoc",builder:"text/x-builder",nokogiri:"text/x-nokogiri",erb:"application/x-erb"},Q=function(t){var e=[];for(var n in t)e.push(n);return new RegExp("^("+e.join("|")+"):")}(D),V={commentLine:"comment",slimSwitch:"operator special",slimTag:"tag",slimId:"attribute def",slimClass:"attribute qualifier",slimAttribute:"attribute",slimSubmode:"keyword special",closeAttributeTag:null,slimDoctype:null,lineContinuation:null},B={"{":"}","[":"]","(":")"},F="_a-zA-ZÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�",G=F+"\\-0-9·̀-ͯ‿-⁀",H=new RegExp("^[:"+F+"](?::["+G+"]|["+G+"]*)"),J=new RegExp("^[:"+F+"][:\\."+G+"]*(?=\\s*=)"),K=new RegExp("^[:"+F+"][:\\."+G+"]*"),N=/^\.-?[_a-zA-Z]+[\w\-]*/,W=/^#[_a-zA-Z]+[\w\-]*/,X={startState:function(){var e=t.startState(P),n=t.startState(Z);return{htmlState:e,rubyState:n,stack:null,last:null,tokenize:A,line:A,indented:0}},copyState:function(e){return{htmlState:t.copyState(P,e.htmlState),rubyState:t.copyState(Z,e.rubyState),subMode:e.subMode,subState:e.subMode&&t.copyState(e.subMode,e.subState),stack:e.stack,last:e.last,tokenize:e.tokenize,line:e.line}},token:function(t,e){if(t.sol())for(e.indented=t.indentation(),e.startOfLine=!0,e.tokenize=e.line;e.stack&&e.stack.indented>e.indented&&"slimSubmode"!=e.last;)e.line=e.tokenize=e.stack.tokenize,e.stack=e.stack.parent,e.subMode=null,e.subState=null;if(t.eatSpace())return null;var n=e.tokenize(t,e);return e.startOfLine=!1,n&&(e.last=n),V.hasOwnProperty(n)?V[n]:n},blankLine:function(t){return t.subMode&&t.subMode.blankLine?t.subMode.blankLine(t.subState):void 0},innerMode:function(t){return t.subMode?{state:t.subState,mode:t.subMode}:{state:t,mode:X}}};return X},"htmlmixed","ruby"),t.defineMIME("text/x-slim","slim"),t.defineMIME("application/x-slim","slim")}); //# sourceMappingURL=slim.min.js.map
wout/cdnjs
ajax/libs/codemirror/5.17.0/mode/slim/slim.min.js
JavaScript
mit
7,589
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Console\Descriptor; use Symfony\Component\Console\Application; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputDefinition; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; /** * @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com> */ abstract class Descriptor implements DescriptorInterface { /** * @var OutputInterface */ private $output; /** * {@inheritdoc} */ public function describe(OutputInterface $output, $object, array $options = array()) { $this->output = $output; switch (true) { case $object instanceof InputArgument: $this->describeInputArgument($object, $options); break; case $object instanceof InputOption: $this->describeInputOption($object, $options); break; case $object instanceof InputDefinition: $this->describeInputDefinition($object, $options); break; case $object instanceof Command: $this->describeCommand($object, $options); break; case $object instanceof Application: $this->describeApplication($object, $options); break; default: throw new \InvalidArgumentException(sprintf('Object of type "%s" is not describable.', get_class($object))); } } /** * Writes content to output. * * @param string $content * @param boolean $decorated */ protected function write($content, $decorated = false) { $this->output->write($content, false, $decorated ? OutputInterface::OUTPUT_NORMAL : OutputInterface::OUTPUT_RAW); } /** * Describes an InputArgument instance. * * @param InputArgument $argument * @param array $options * * @return string|mixed */ abstract protected function describeInputArgument(InputArgument $argument, array $options = array()); /** * Describes an InputOption instance. * * @param InputOption $option * @param array $options * * @return string|mixed */ abstract protected function describeInputOption(InputOption $option, array $options = array()); /** * Describes an InputDefinition instance. * * @param InputDefinition $definition * @param array $options * * @return string|mixed */ abstract protected function describeInputDefinition(InputDefinition $definition, array $options = array()); /** * Describes a Command instance. * * @param Command $command * @param array $options * * @return string|mixed */ abstract protected function describeCommand(Command $command, array $options = array()); /** * Describes an Application instance. * * @param Application $application * @param array $options * * @return string|mixed */ abstract protected function describeApplication(Application $application, array $options = array()); }
ananth99/sentry-laravel
vendor/symfony/console/Symfony/Component/Console/Descriptor/Descriptor.php
PHP
mit
3,516
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ var SF=function(){function d(a){return(a=a.attributes?a.attributes.getNamedItem("class"):null)?a.value.split(" "):[]}function c(a){var e=document.createAttribute("class");e.value=a.join(" ");return e}var b={attachListener:function(a,e,b){if(a.addEventListener)a.addEventListener(e,b,!1);else if(a.attachEvent)a.attachEvent("on"+e,function(){b.apply(a,arguments)});else throw Error("Could not attach event.");}};b.indexOf=function(){var a=Array.prototype.indexOf;return"function"===a?function(e,b){return a.call(e, b)}:function(a,b){for(var c=a.length,d=0;d<c;d++)if(a[d]===b)return d;return-1}}();b.accept=function(a,e){var c;a.children?(c=a.children,e(a)):"number"===typeof a.length&&(c=a);for(var d=c?c.length||0:0;d--;)b.accept(c[d],e)};b.getByClass=function(){var a=document.getElementsByClassName;return"function"===typeof a?function(e,b){"string"===typeof e&&(b=e,e=document);return a.call(e,b)}:function(a,c){"string"===typeof a&&(c=a,a=document.getElementsByTagName("html")[0]);var d=[];b.accept(a,function(a){b.classList.contains(a, c)&&d.push(a)});return d}}();b.classList={};b.classList.add=function(a,b){var f=d(a);f.push(b);a.attributes.setNamedItem(c(f))};b.classList.remove=function(a,e){var f=d(a,e),n=b.indexOf(f,e);-1!==n&&(f.splice(n,1),a.attributes.setNamedItem(c(f)))};b.classList.contains=function(a,c){return-1!==b.indexOf(d(a),c)};b.classList.toggle=function(a,b){this.contains(a,b)?this.remove(a,b):this.add(a,b)};return b}();"use strict"; (function(){function d(c){for(var b in c)delete c[b]}SF.modal=function(c){function b(a){27==a.keyCode&&f.close()}c.modalClass="modal content";c.closeClass="modal-close";c.modalStyles=d;c.closeStyles=d;var a=c.afterCreate,e=c.afterClose;c.afterCreate=function(c){a&&a(c);window.addEventListener("keydown",b)};c.afterClose=function(a){e&&e(a);window.removeEventListener("keydown",b)};var f=(new picoModal(c)).afterCreate(c.afterCreate).afterClose(c.afterClose);return f}})();"use strict"; (function(){for(var d=SF.getByClass("toggler"),c=d.length;c--;)SF.attachListener(d[c],"click",function(){var b=SF.classList.contains(this,"icon-toggler-expanded")||SF.classList.contains(this,"icon-toggler-collapsed"),a=document.getElementById(this.getAttribute("data-for"));SF.classList.toggle(this,"collapsed");SF.classList.contains(this,"collapsed")?(SF.classList.add(a,"collapsed"),b&&(SF.classList.remove(this,"icon-toggler-expanded"),SF.classList.add(this,"icon-toggler-collapsed"))):(SF.classList.remove(a, "collapsed"),b&&(SF.classList.remove(this,"icon-toggler-collapsed"),SF.classList.add(this,"icon-toggler-expanded")))})})();"use strict";(function(){for(var d=SF.getByClass("tree-a"),c=d.length;c--;)SF.attachListener(d[c],"click",function(b){b=b.target||b.srcElement;"H2"!==b.nodeName||SF.classList.contains(b,"tree-a-no-sub")||SF.classList.toggle(b,"tree-a-active")})})(); (function(d,c){function b(a){return"object"===typeof Node?a instanceof Node:a&&"object"===typeof a&&"number"===typeof a.nodeType}function a(){var a=[];return{watch:a.push.bind(a),trigger:function(b){for(var c=!0,d={preventDefault:function(){c=!1}},e=0;e<a.length;e++)a[e](b,d);return c}}}function e(a){this.elem=a}function f(a,b){return e.div().clazz("pico-overlay").clazz(a("overlayClass","")).stylize({display:"block",position:"fixed",top:"0px",left:"0px",height:"100%",width:"100%",zIndex:1E4}).stylize(a("overlayStyles", {opacity:.5,background:"#000"})).onClick(function(){a("overlayClose",!0)&&b()})}function n(a,b){var c=a("width","auto");"number"===typeof c&&(c=""+c+"px");return e.div().clazz("pico-content").clazz(a("modalClass","")).stylize({display:"block",position:"fixed",zIndex:10001,left:"50%",top:"50px",width:c,"-ms-transform":"translateX(-50%)","-moz-transform":"translateX(-50%)","-webkit-transform":"translateX(-50%)","-o-transform":"translateX(-50%)",transform:"translateX(-50%)"}).stylize(a("modalStyles", {backgroundColor:"white",padding:"20px",borderRadius:"5px"})).html(a("content")).attr("role","dialog").onClick(function(a){(new e(a.target)).anyAncestor(function(a){return/\bpico-close\b/.test(a.elem.className)})&&b()})}function p(a){return function(){return a().elem}}function k(c){function e(a,b){var d=c[a];"function"===typeof d&&(d=d(b));return void 0===d?b:d}function k(){l().hide();m().hide();v.trigger(h)}function q(){w.trigger(h)&&k()}function g(a){return function(){a.apply(this,arguments);return h}} function r(a){if(!t){var c=n(e,q),b=f(e,q),d;d=e("closeButton",!0)?c.child().html(e("closeHtml","\x26#xD7;")).clazz("pico-close").clazz(e("closeClass")).stylize(e("closeStyles",{borderRadius:"2px",cursor:"pointer",height:"15px",width:"15px",position:"absolute",top:"5px",right:"5px",fontSize:"16px",textAlign:"center",lineHeight:"15px",background:"#CCC"})):void 0;t={modal:c,overlay:b,close:d};x.trigger(h)}return t[a]}if("string"===typeof c||b(c))c={content:c};var x=a(),y=a(),z=a(),w=a(),v=a(),t,m=r.bind(d, "modal"),l=r.bind(d,"overlay"),u=r.bind(d,"close"),h={modalElem:p(m),closeElem:p(u),overlayElem:p(l),show:function(){y.trigger(h)&&(l().show(),u(),m().show(),z.trigger(h));return this},close:g(q),forceClose:g(k),destroy:function(){m=m().destroy();l=l().destroy();u=void 0},options:function(a){c=a},afterCreate:g(x.watch),beforeShow:g(y.watch),afterShow:g(z.watch),beforeClose:g(w.watch),afterClose:g(v.watch)};return h}e.div=function(a){var b=c.createElement("div");(a||c.body).appendChild(b);return new e(b)}; e.prototype={child:function(){return e.div(this.elem)},stylize:function(a){a=a||{};"undefined"!==typeof a.opacity&&(a.filter="alpha(opacity\x3d"+100*a.opacity+")");for(var b in a)a.hasOwnProperty(b)&&(this.elem.style[b]=a[b]);return this},clazz:function(a){this.elem.className+=" "+a;return this},html:function(a){b(a)?this.elem.appendChild(a):this.elem.innerHTML=a;return this},onClick:function(a){this.elem.addEventListener("click",a);return this},destroy:function(){c.body.removeChild(this.elem)},hide:function(){this.elem.style.display= "none"},show:function(){this.elem.style.display="block"},attr:function(a,b){this.elem.setAttribute(a,b);return this},anyAncestor:function(a){for(var b=this.elem;b;){if(a(new e(b)))return!0;b=b.parentNode}return!1}};"function"===typeof d.define&&d.define.amd?d.define(function(){return k}):d.picoModal=k})(window,document);
Marcelojau/Projeto-Criado-para-Portf-lio
bower_components/ckeditor/samples/js/sf.js
JavaScript
mit
6,408
define( [ "./core", "./var/pnum", "./core/access", "./css/var/rmargin", "./var/document", "./var/rcssNum", "./css/var/rnumnonpx", "./css/var/cssExpand", "./css/var/getStyles", "./css/var/swap", "./css/curCSS", "./css/adjustCSS", "./css/addGetHookIf", "./css/support", "./core/init", "./core/ready", "./selector" // contains ], function( jQuery, pnum, access, rmargin, document, rcssNum, rnumnonpx, cssExpand, getStyles, swap, curCSS, adjustCSS, addGetHookIf, support ) { "use strict"; var // Swappable if display is none or starts with table // except "table", "table-cell", or "table-caption" // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display rdisplayswap = /^(none|table(?!-c[ea]).+)/, cssShow = { position: "absolute", visibility: "hidden", display: "block" }, cssNormalTransform = { letterSpacing: "0", fontWeight: "400" }, cssPrefixes = [ "Webkit", "Moz", "ms" ], emptyStyle = document.createElement( "div" ).style; // Return a css property mapped to a potentially vendor prefixed property function vendorPropName( name ) { // Shortcut for names that are not vendor prefixed if ( name in emptyStyle ) { return name; } // Check for vendor prefixed names var capName = name[ 0 ].toUpperCase() + name.slice( 1 ), i = cssPrefixes.length; while ( i-- ) { name = cssPrefixes[ i ] + capName; if ( name in emptyStyle ) { return name; } } } function setPositiveNumber( elem, value, subtract ) { // Any relative (+/-) values have already been // normalized at this point var matches = rcssNum.exec( value ); return matches ? // Guard against undefined "subtract", e.g., when used as in cssHooks Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) : value; } function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) { var i = extra === ( isBorderBox ? "border" : "content" ) ? // If we already have the right measurement, avoid augmentation 4 : // Otherwise initialize for horizontal or vertical properties name === "width" ? 1 : 0, val = 0; for ( ; i < 4; i += 2 ) { // Both box models exclude margin, so add it if we want it if ( extra === "margin" ) { val += jQuery.css( elem, extra + cssExpand[ i ], true, styles ); } if ( isBorderBox ) { // border-box includes padding, so remove it if we want content if ( extra === "content" ) { val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); } // At this point, extra isn't border nor margin, so remove border if ( extra !== "margin" ) { val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); } } else { // At this point, extra isn't content, so add padding val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); // At this point, extra isn't content nor padding, so add border if ( extra !== "padding" ) { val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); } } } return val; } function getWidthOrHeight( elem, name, extra ) { // Start with offset property, which is equivalent to the border-box value var val, valueIsBorderBox = true, styles = getStyles( elem ), isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; // Support: IE <=11 only // Running getBoundingClientRect on a disconnected node // in IE throws an error. if ( elem.getClientRects().length ) { val = elem.getBoundingClientRect()[ name ]; } // Some non-html elements return undefined for offsetWidth, so check for null/undefined // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285 // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668 if ( val <= 0 || val == null ) { // Fall back to computed then uncomputed css if necessary val = curCSS( elem, name, styles ); if ( val < 0 || val == null ) { val = elem.style[ name ]; } // Computed unit is not pixels. Stop here and return. if ( rnumnonpx.test( val ) ) { return val; } // Check for style in case a browser which returns unreliable values // for getComputedStyle silently falls back to the reliable elem.style valueIsBorderBox = isBorderBox && ( support.boxSizingReliable() || val === elem.style[ name ] ); // Normalize "", auto, and prepare for extra val = parseFloat( val ) || 0; } // Use the active box-sizing model to add/subtract irrelevant styles return ( val + augmentWidthOrHeight( elem, name, extra || ( isBorderBox ? "border" : "content" ), valueIsBorderBox, styles ) ) + "px"; } jQuery.extend( { // Add in style property hooks for overriding the default // behavior of getting and setting a style property cssHooks: { opacity: { get: function( elem, computed ) { if ( computed ) { // We should always get a number back from opacity var ret = curCSS( elem, "opacity" ); return ret === "" ? "1" : ret; } } } }, // Don't automatically add "px" to these possibly-unitless properties cssNumber: { "animationIterationCount": true, "columnCount": true, "fillOpacity": true, "flexGrow": true, "flexShrink": true, "fontWeight": true, "lineHeight": true, "opacity": true, "order": true, "orphans": true, "widows": true, "zIndex": true, "zoom": true }, // Add in properties whose names you wish to fix before // setting or getting the value cssProps: { "float": "cssFloat" }, // Get and set the style property on a DOM Node style: function( elem, name, value, extra ) { // Don't set styles on text and comment nodes if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { return; } // Make sure that we're working with the right name var ret, type, hooks, origName = jQuery.camelCase( name ), style = elem.style; name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName ); // Gets hook for the prefixed version, then unprefixed version hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; // Check if we're setting a value if ( value !== undefined ) { type = typeof value; // Convert "+=" or "-=" to relative numbers (#7345) if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) { value = adjustCSS( elem, name, ret ); // Fixes bug #9237 type = "number"; } // Make sure that null and NaN values aren't set (#7116) if ( value == null || value !== value ) { return; } // If a number was passed in, add the unit (except for certain CSS properties) if ( type === "number" ) { value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" ); } // background-* props affect original clone's values if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) { style[ name ] = "inherit"; } // If a hook was provided, use that value, otherwise just set the specified value if ( !hooks || !( "set" in hooks ) || ( value = hooks.set( elem, value, extra ) ) !== undefined ) { style[ name ] = value; } } else { // If a hook was provided get the non-computed value from there if ( hooks && "get" in hooks && ( ret = hooks.get( elem, false, extra ) ) !== undefined ) { return ret; } // Otherwise just get the value from the style object return style[ name ]; } }, css: function( elem, name, extra, styles ) { var val, num, hooks, origName = jQuery.camelCase( name ); // Make sure that we're working with the right name name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName ); // Try prefixed name followed by the unprefixed name hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; // If a hook was provided get the computed value from there if ( hooks && "get" in hooks ) { val = hooks.get( elem, true, extra ); } // Otherwise, if a way to get the computed value exists, use that if ( val === undefined ) { val = curCSS( elem, name, styles ); } // Convert "normal" to computed value if ( val === "normal" && name in cssNormalTransform ) { val = cssNormalTransform[ name ]; } // Make numeric if forced or a qualifier was provided and val looks numeric if ( extra === "" || extra ) { num = parseFloat( val ); return extra === true || isFinite( num ) ? num || 0 : val; } return val; } } ); jQuery.each( [ "height", "width" ], function( i, name ) { jQuery.cssHooks[ name ] = { get: function( elem, computed, extra ) { if ( computed ) { // Certain elements can have dimension info if we invisibly show them // but it must have a current display style that would benefit return rdisplayswap.test( jQuery.css( elem, "display" ) ) && // Support: Safari 8+ // Table columns in Safari have non-zero offsetWidth & zero // getBoundingClientRect().width unless display is changed. // Support: IE <=11 only // Running getBoundingClientRect on a disconnected node // in IE throws an error. ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ? swap( elem, cssShow, function() { return getWidthOrHeight( elem, name, extra ); } ) : getWidthOrHeight( elem, name, extra ); } }, set: function( elem, value, extra ) { var matches, styles = extra && getStyles( elem ), subtract = extra && augmentWidthOrHeight( elem, name, extra, jQuery.css( elem, "boxSizing", false, styles ) === "border-box", styles ); // Convert to pixels if value adjustment is needed if ( subtract && ( matches = rcssNum.exec( value ) ) && ( matches[ 3 ] || "px" ) !== "px" ) { elem.style[ name ] = value; value = jQuery.css( elem, name ); } return setPositiveNumber( elem, value, subtract ); } }; } ); jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft, function( elem, computed ) { if ( computed ) { return ( parseFloat( curCSS( elem, "marginLeft" ) ) || elem.getBoundingClientRect().left - swap( elem, { marginLeft: 0 }, function() { return elem.getBoundingClientRect().left; } ) ) + "px"; } } ); // These hooks are used by animate to expand properties jQuery.each( { margin: "", padding: "", border: "Width" }, function( prefix, suffix ) { jQuery.cssHooks[ prefix + suffix ] = { expand: function( value ) { var i = 0, expanded = {}, // Assumes a single number if not a string parts = typeof value === "string" ? value.split( " " ) : [ value ]; for ( ; i < 4; i++ ) { expanded[ prefix + cssExpand[ i ] + suffix ] = parts[ i ] || parts[ i - 2 ] || parts[ 0 ]; } return expanded; } }; if ( !rmargin.test( prefix ) ) { jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber; } } ); jQuery.fn.extend( { css: function( name, value ) { return access( this, function( elem, name, value ) { var styles, len, map = {}, i = 0; if ( jQuery.isArray( name ) ) { styles = getStyles( elem ); len = name.length; for ( ; i < len; i++ ) { map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); } return map; } return value !== undefined ? jQuery.style( elem, name, value ) : jQuery.css( elem, name ); }, name, value, arguments.length > 1 ); } } ); return jQuery; } );
MoreNaruto/LabelInsightApp
app/bower_components/jquery/src/css.js
JavaScript
mit
11,457
/* * xlink.c : implementation of the hyperlinks detection module * This version supports both XML XLinks and HTML simple links * * See Copyright for the status of this software. * * daniel@veillard.com */ #define IN_LIBXML #include "libxml.h" #ifdef LIBXML_XPTR_ENABLED #include <string.h> /* for memset() only */ #ifdef HAVE_CTYPE_H #include <ctype.h> #endif #ifdef HAVE_STDLIB_H #include <stdlib.h> #endif #ifdef HAVE_SYS_STAT_H #include <sys/stat.h> #endif #ifdef HAVE_FCNTL_H #include <fcntl.h> #endif #ifdef HAVE_UNISTD_H #include <unistd.h> #endif #ifdef HAVE_ZLIB_H #include <zlib.h> #endif #include <libxml/xmlmemory.h> #include <libxml/tree.h> #include <libxml/parser.h> #include <libxml/valid.h> #include <libxml/xlink.h> #include <libxml/globals.h> #define XLINK_NAMESPACE (BAD_CAST "http://www.w3.org/1999/xlink/namespace/") #define XHTML_NAMESPACE (BAD_CAST "http://www.w3.org/1999/xhtml/") /**************************************************************** * * * Default setting and related functions * * * ****************************************************************/ static xlinkHandlerPtr xlinkDefaultHandler = NULL; static xlinkNodeDetectFunc xlinkDefaultDetect = NULL; /** * xlinkGetDefaultHandler: * * Get the default xlink handler. * * Returns the current xlinkHandlerPtr value. */ xlinkHandlerPtr xlinkGetDefaultHandler(void) { return(xlinkDefaultHandler); } /** * xlinkSetDefaultHandler: * @handler: the new value for the xlink handler block * * Set the default xlink handlers */ void xlinkSetDefaultHandler(xlinkHandlerPtr handler) { xlinkDefaultHandler = handler; } /** * xlinkGetDefaultDetect: * * Get the default xlink detection routine * * Returns the current function or NULL; */ xlinkNodeDetectFunc xlinkGetDefaultDetect (void) { return(xlinkDefaultDetect); } /** * xlinkSetDefaultDetect: * @func: pointer to the new detection routine. * * Set the default xlink detection routine */ void xlinkSetDefaultDetect (xlinkNodeDetectFunc func) { xlinkDefaultDetect = func; } /**************************************************************** * * * The detection routines * * * ****************************************************************/ /** * xlinkIsLink: * @doc: the document containing the node * @node: the node pointer itself * * Check whether the given node carries the attributes needed * to be a link element (or is one of the linking elements issued * from the (X)HTML DtDs). * This routine don't try to do full checking of the link validity * but tries to detect and return the appropriate link type. * * Returns the xlinkType of the node (XLINK_TYPE_NONE if there is no * link detected. */ xlinkType xlinkIsLink (xmlDocPtr doc, xmlNodePtr node) { xmlChar *type = NULL, *role = NULL; xlinkType ret = XLINK_TYPE_NONE; if (node == NULL) return(XLINK_TYPE_NONE); if (doc == NULL) doc = node->doc; if ((doc != NULL) && (doc->type == XML_HTML_DOCUMENT_NODE)) { /* * This is an HTML document. */ } else if ((node->ns != NULL) && (xmlStrEqual(node->ns->href, XHTML_NAMESPACE))) { /* * !!!! We really need an IS_XHTML_ELEMENT function from HTMLtree.h @@@ */ /* * This is an XHTML element within an XML document * Check whether it's one of the element able to carry links * and in that case if it holds the attributes. */ } /* * We don't prevent a-priori having XML Linking constructs on * XHTML elements */ type = xmlGetNsProp(node, BAD_CAST"type", XLINK_NAMESPACE); if (type != NULL) { if (xmlStrEqual(type, BAD_CAST "simple")) { ret = XLINK_TYPE_SIMPLE; } if (xmlStrEqual(type, BAD_CAST "extended")) { role = xmlGetNsProp(node, BAD_CAST "role", XLINK_NAMESPACE); if (role != NULL) { xmlNsPtr xlink; xlink = xmlSearchNs(doc, node, XLINK_NAMESPACE); if (xlink == NULL) { /* Humm, fallback method */ if (xmlStrEqual(role, BAD_CAST"xlink:external-linkset")) ret = XLINK_TYPE_EXTENDED_SET; } else { xmlChar buf[200]; snprintf((char *) buf, sizeof(buf), "%s:external-linkset", (char *) xlink->prefix); buf[sizeof(buf) - 1] = 0; if (xmlStrEqual(role, buf)) ret = XLINK_TYPE_EXTENDED_SET; } } ret = XLINK_TYPE_EXTENDED; } } if (type != NULL) xmlFree(type); if (role != NULL) xmlFree(role); return(ret); } #endif /* LIBXML_XPTR_ENABLED */ #define bottom_xlink #include "elfgcchack.h"
SourceBackups/WinObjC
deps/3rdparty/libxml2legacy/xlink.c
C
mit
4,607
<?php /* * DataTables example server-side processing script. * * Please note that this script is intentionally extremely simply to show how * server-side processing can be implemented, and probably shouldn't be used as * the basis for a large complex system. It is suitable for simple use cases as * for learning. * * See http://datatables.net/usage/server-side for full details on the server- * side processing requirements of DataTables. * * @license MIT - http://datatables.net/license_mit */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Easy set variables */ // DB table to use $table = 'datatables_demo'; // Table's primary key $primaryKey = 'id'; // Array of database columns which should be read and sent back to DataTables. // The `db` parameter represents the column name in the database, while the `dt` // parameter represents the DataTables column identifier. In this case simple // indexes $columns = array( array( 'db' => 'first_name', 'dt' => 0 ), array( 'db' => 'last_name', 'dt' => 1 ), array( 'db' => 'position', 'dt' => 2 ), array( 'db' => 'office', 'dt' => 3 ), array( 'db' => 'start_date', 'dt' => 4, 'formatter' => function( $d, $row ) { return date( 'jS M y', strtotime($d)); } ), array( 'db' => 'salary', 'dt' => 5, 'formatter' => function( $d, $row ) { return '$'.number_format($d); } ) ); $sql_details = array( 'user' => '', 'pass' => '', 'db' => '', 'host' => '' ); /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * If you just want to use the basic configuration for DataTables with PHP * server-side, there is no need to edit below this line. */ require( 'ssp.class.php' ); echo $_GET['callback'].'('.json_encode( SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns ) ).');';
bayuhafiz/Jobsy-Staging
public/assets/plugins/jquery-datatable/examples/server_side/scripts/jsonp.php
PHP
mit
1,882
<!DOCTYPE html> <!-- Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <title>Replace DIV &mdash; CKEditor Sample</title> <meta charset="utf-8"> <script src="../ckeditor.js"></script> <link href="sample.css" rel="stylesheet"> <style> div.editable { border: solid 2px Transparent; padding-left: 15px; padding-right: 15px; } div.editable:hover { border-color: black; } </style> <script> // Uncomment the following code to test the "Timeout Loading Method". // CKEDITOR.loadFullCoreTimeout = 5; window.onload = function() { // Listen to the double click event. if ( window.addEventListener ) document.body.addEventListener( 'dblclick', onDoubleClick, false ); else if ( window.attachEvent ) document.body.attachEvent( 'ondblclick', onDoubleClick ); }; function onDoubleClick( ev ) { // Get the element which fired the event. This is not necessarily the // element to which the event has been attached. var element = ev.target || ev.srcElement; // Find out the div that holds this element. var name; do { element = element.parentNode; } while ( element && ( name = element.nodeName.toLowerCase() ) && ( name != 'div' || element.className.indexOf( 'editable' ) == -1 ) && name != 'body' ); if ( name == 'div' && element.className.indexOf( 'editable' ) != -1 ) replaceDiv( element ); } var editor; function replaceDiv( div ) { if ( editor ) editor.destroy(); editor = CKEDITOR.replace( div ); } </script> </head> <body> <h1 class="samples"> <a href="index.html">CKEditor Samples</a> &raquo; Replace DIV with CKEditor on the Fly </h1> <div class="description"> <p> This sample shows how to automatically replace <code>&lt;div&gt;</code> elements with a CKEditor instance on the fly, following user's doubleclick. The content that was previously placed inside the <code>&lt;div&gt;</code> element will now be moved into CKEditor editing area. </p> <p> For details on how to create this setup check the source code of this sample page. </p> </div> <p> Double-click any of the following <code>&lt;div&gt;</code> elements to transform them into editor instances. </p> <div class="editable"> <h3> Part 1 </h3> <p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus. </p> </div> <div class="editable"> <h3> Part 2 </h3> <p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus. </p> <p> Donec velit. Mauris massa. Vestibulum non nulla. Nam suscipit arcu nec elit. Phasellus sollicitudin iaculis ante. Ut non mauris et sapien tincidunt adipiscing. Vestibulum vitae leo. Suspendisse nec mi tristique nulla laoreet vulputate. </p> </div> <div class="editable"> <h3> Part 3 </h3> <p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus. </p> </div> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
lxyu/cdnjs
ajax/libs/ckeditor/4.2/samples/divreplace.html
HTML
mit
4,493
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpFoundation\Tests\Session\Storage; use Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage; use Symfony\Component\HttpFoundation\Session\Flash\FlashBag; use Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag; /** * Test class for MockFileSessionStorage. * * @author Drak <drak@zikula.org> */ class MockFileSessionStorageTest extends \PHPUnit_Framework_TestCase { /** * @var string */ private $sessionDir; /** * @var MockFileSessionStorage */ protected $storage; protected function setUp() { $this->sessionDir = sys_get_temp_dir().'/sf2test'; $this->storage = $this->getStorage(); } protected function tearDown() { $this->sessionDir = null; $this->storage = null; array_map('unlink', glob($this->sessionDir.'/*.session')); if (is_dir($this->sessionDir)) { rmdir($this->sessionDir); } } public function testStart() { $this->assertEquals('', $this->storage->getId()); $this->assertTrue($this->storage->start()); $id = $this->storage->getId(); $this->assertNotEquals('', $this->storage->getId()); $this->assertTrue($this->storage->start()); $this->assertEquals($id, $this->storage->getId()); } public function testRegenerate() { $this->storage->start(); $this->storage->getBag('attributes')->set('regenerate', 1234); $this->storage->regenerate(); $this->assertEquals(1234, $this->storage->getBag('attributes')->get('regenerate')); $this->storage->regenerate(true); $this->assertEquals(1234, $this->storage->getBag('attributes')->get('regenerate')); } public function testGetId() { $this->assertEquals('', $this->storage->getId()); $this->storage->start(); $this->assertNotEquals('', $this->storage->getId()); } public function testSave() { $this->storage->start(); $id = $this->storage->getId(); $this->assertNotEquals('108', $this->storage->getBag('attributes')->get('new')); $this->assertFalse($this->storage->getBag('flashes')->has('newkey')); $this->storage->getBag('attributes')->set('new', '108'); $this->storage->getBag('flashes')->set('newkey', 'test'); $this->storage->save(); $storage = $this->getStorage(); $storage->setId($id); $storage->start(); $this->assertEquals('108', $storage->getBag('attributes')->get('new')); $this->assertTrue($storage->getBag('flashes')->has('newkey')); $this->assertEquals(array('test'), $storage->getBag('flashes')->peek('newkey')); } public function testMultipleInstances() { $storage1 = $this->getStorage(); $storage1->start(); $storage1->getBag('attributes')->set('foo', 'bar'); $storage1->save(); $storage2 = $this->getStorage(); $storage2->setId($storage1->getId()); $storage2->start(); $this->assertEquals('bar', $storage2->getBag('attributes')->get('foo'), 'values persist between instances'); } /** * @expectedException \RuntimeException */ public function testSaveWithoutStart() { $storage1 = $this->getStorage(); $storage1->save(); } private function getStorage() { $storage = new MockFileSessionStorage($this->sessionDir); $storage->registerBag(new FlashBag()); $storage->registerBag(new AttributeBag()); return $storage; } }
Milkyway2605/EasyStage_Symfony
vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MockFileSessionStorageTest.php
PHP
mit
3,858