<?xml version="1.0" encoding="utf-8"?>

<snippet name = "检查字符" description = "在给定字符串中搜索另一个字符串的第一个匹配项。" preview="code" type="wrap">

<insertText location="beforeSelection">

<![CDATA[function checkForCharacters(inputString, checkString, startingIndex)

{

  if (!startingIndex) startingIndex = 0;

  return inputString.indexOf(checkString);

}

]]>

</insertText>

<insertText location="afterSelection"><![CDATA[]]>

</insertText>

</snippet>

