Demo/bin/Debug/front_end/workspace/SearchConfig.js
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @constructor
* @implements {WebInspector.ProjectSearchConfig}
* @param {string} query
* @param {boolean} ignoreCase
* @param {boolean} isRegex
*/
WebInspector.SearchConfig = function(query, ignoreCase, isRegex)
{
this._query = query;
this._ignoreCase = ignoreCase;
this._isRegex = isRegex;
this._parse();
}
/** @typedef {!{regex: !RegExp, isNegative: boolean}} */
WebInspector.SearchConfig.RegexQuery;
/**
* @param {{query: string, ignoreCase: boolean, isRegex: boolean}} object
* @return {!WebInspector.SearchConfig}
*/
WebInspector.SearchConfig.fromPlainObject = function(object)
{
return new WebInspector.SearchConfig(object.query, object.ignoreCase, object.isRegex);
}
WebInspector.SearchConfig.prototype = {
/**
* @override
* @return {string}
*/
query: function()
{
return this._query;
},
/**
* @override
* @return {boolean}
*/
ignoreCase: function()
{
return this._ignoreCase;
},
/**
* @override
* @return {boolean}
*/
isRegex: function()
{
return this._isRegex;
},
/**
后面还有 128 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。