UNPKG

iot-sol

Version:

Intel(r) IoT Services Orchestration Layer - HTML5 IDE + Node.js middleware to create and host distributed IoT Apps in minutes

74 lines (73 loc) 3.27 kB
<!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/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta name="generator" content="pandoc" /> <meta name="author" content="Copyright 2015 Intel Corporation All Rights Reserved." /> <title>IoT Services Orchestration Layer</title> <style type="text/css">code{white-space: pre;}</style> <link rel="stylesheet" href="styles/style.css" type="text/css" /> </head> <body> <div id="header"> <h1 class="title">IoT Services Orchestration Layer</h1> <h2 class="author">Copyright 2015 Intel Corporation All Rights Reserved.</h2> </div> <div id="TOC"> <ul> <li><a href="#字符串">字符串</a><ul> <li><a href="#拼接">拼接</a><ul> <li><a href="#描述">描述</a></li> <li><a href="#输入">输入</a></li> <li><a href="#输出">输出</a></li> <li><a href="#样例">样例</a></li> </ul></li> <li><a href="#搜索子串">搜索子串</a><ul> <li><a href="#描述-1">描述</a></li> <li><a href="#输入-1">输入</a></li> <li><a href="#输出-1">输出</a></li> <li><a href="#样例-1">样例</a></li> </ul></li> <li><a href="#json">json</a><ul> <li><a href="#描述-2">描述</a></li> <li><a href="#配置">配置</a></li> <li><a href="#输入-2">输入</a></li> <li><a href="#输出-2">输出</a></li> </ul></li> </ul></li> </ul> </div> <h1 id="字符串">字符串</h1> <h2 id="拼接">拼接</h2> <h3 id="描述">描述</h3> <p>将两个字符串拼接为一个字符串 <code>out</code> = <code>in1</code> + <code>in2</code></p> <h3 id="输入">输入</h3> <p><code>in1</code>: 字符串</p> <p><code>in2</code>: 字符串</p> <h3 id="输出">输出</h3> <p><code>out</code>: 字符串 <code>out</code> = <code>in1</code> + <code>in2</code></p> <h3 id="样例">样例</h3> <p><code>in1</code>&quot;hello&quot;,<code>in2</code>&quot;world&quot;,那么<code>out</code>就是&quot;helloworld&quot;</p> <h2 id="搜索子串">搜索子串</h2> <h3 id="描述-1">描述</h3> <p>判断<code>str2</code>是否是<code>str1</code>的子串,即<code>str1</code>是否包含<code>str2</code>。如果是,返回true,反之false</p> <h3 id="输入-1">输入</h3> <p><code>str1</code>: 字符串 源字符串</p> <p><code>str2</code>: 字符串 子串</p> <h3 id="输出-1">输出</h3> <p><code>out</code>: 布尔值 如果<code>str2</code><code>str1</code>的子串,返回true</p> <h3 id="样例-1">样例</h3> <p><code>str1</code>是helloworld, <code>str2</code>是low,则out为true。因为“low”包含在“helloworld”中</p> <p><code>str1</code>是helloworld, <code>str2</code>是abc,则out为false。因为“abc”不包含在“helloworld”中</p> <h2 id="json">json</h2> <h3 id="描述-2">描述</h3> <p>提供将字符串转换为json格式。</p> <h3 id="配置">配置</h3> <p>‘method’:字符串,如果‘method’值为‘parse’,将会输出json格式,否则输出原字符串。</p> <h3 id="输入-2">输入</h3> <p>‘Inout’:字符串,将被解析的字符串。</p> <h3 id="输出-2">输出</h3> <p>‘out’:对象,解析结果。</p> </body> </html>