To create the concatenated string "users.brian.accessRights", the compiler will create a temporary StringBuffer object, call StringBuffer.append
为创建串联的字符串 “users.brian.accessRights” ,编译器将创建一个临时的StringBuffer对象,调用 StringBuffer.append 三次,然后调用 StringBuffer.toString ,这意味着至少两个对象的创建和几个方法调用。
It turns out when we call string a string, we're really referring not to those characters but to the address, the location and memory of those characters.
当我说字符串时,我并不是指这些字符集,而是指地址,就是这些字符集在存储器中的位置。
For each row retrieved from the cursor call, the element was appended to the string along with a delimiter.
对于从光标调用中检索到的每一行,将元素附加到字符串并具有分隔符。
In case you're curious, the inner function call converts the input string into a timestamp that complies with a specific format.
您可能会感到奇怪。其实内部函数调用将输入字符串转换成使用特定格式编译的时间戳。
Obviously, if each unit of work were two, or ten, or one hundred times as large as a single string method call, then the proportion of time spent in thread overhead would be correspondingly small.
显然,如果每个工作单元都相当于单个字符串方法调用的两倍、十倍或一百倍,那么所花费的线程开销比例就相应地更小了。
Note that this caching provider assumes that the arguments have string representations that are unique, but not unique per call.
请注意这个高速缓存提供程序假定变元有唯一的字符串表示,但不是每一个调用都有唯一的字符串表示。
It simply creates a JSON object from the string data, which is the result of the GET call.
这段代码根据GET调用产生的字符串数据创建一个JSON对象。
Also, the test in Line 13 will fail to detect an error because the result of the call will not be an empty string.
第13行中的检查也无法探测到错误,因为调用的结果不是空字符串。
You then make the actual call, and decode the returned JSON string passed from the server.
之后执行实际调用,并解码从服务器返回的JSON字符串。
Call the Web service and output the returned string to the browser.
调用Web服务并将返回的字符串输出到浏览器。
The setlocale call determines the character set, error messages catalogs, monetary value formatting, numerical conventions, string collation, and alphabetic ordering.
可以调用setlocale来确定字符集、错误消息类别、货币值格式、数字转换、字符串校勘和字母排序。
However, we can set up a closure at the beginning of the function to keep the string from having to be passed on each call.
不过,我们可以在函数的起始处设置一个闭包(closure),以使得不再必须为每一个调用都传递那个字符串。
This example is only storing string data, so arguably you can simply append it to a longer string and call a simple function in the CalculatorHandler, which in turn can parse it out.
本例只存储字符串数据,所以您可以简单地将之附加到一个较长的字符串后面,并调用Calculator Handler中的一个简单函数,然后该函数可以将之解析出来。
You then assemble the parameters for the Web services call as an array, which you encode as a JSON string.
然后,将用于这个Web服务调用的参数集合为一个数组,并将其编码为JSON字符串。
It then finds and returns the one-character string that the previous call to search successfully matched.
然后查找并返回之前调用search并成功匹配的只包含一个字符的字符串。
Serializing the form data is easy with jQuery: You simply access the form element and call the serialize function to get a standard query string.
用jQuery序列化表单数据比较容易:您只需要访问form元素和调用serialize功能获取一个标准查询字符串。
If you call preg_replace with an array of strings rather than a string, all the elements in the array are processed to make replacements.
如果对一个字符串数组而不是一个字符串调用preg_replace,则数组中的所有元素都将进行替换。
To send your array of string objects, you call the JSON.stringify function, passing in the array as the argument.
要发送字符串对象数组,您调用JSON . stringify函数,将数组作为参数传递进来。
You can reduce the notifications returned by changing the ObjectName query string, or by using the filtering parameter on the method call.
可以通过更改objectname查询字符串或对方法调用使用筛选参数来减少返回的通知。
The declaration begins with the global reference to the Flex application, then a method call that always begins with the string get followed by the ID of the target object.
该声明首先是Flex应用程序的全局引用,然后是始终以字符串get 为开头、后接目标对象ID的方法调用。
We initialize our variables, finding the length of the string from a call to unpack .
然后初始化变量,通过调用unpack来得到串的长度。
So if the first string is bed, the function call translate('bed', 'abcde...', 'ABCDE...') returns BED.
因此,如果第一个字符串是bed ,那么该函数调用translate('bed', 'abcde...' , 'ABCDE...'
The first line is simple: it defines an adapter directly from a string to ILisp, the call to adapt (" foo bar ", ILisp) just returns the results of the lambda function.
第一行比较简单,我们定义了一个直接从字符串到ILisp的适配器,对adapt (“foobar ”,ILisp)的调用只是返回了lambda函数的结果。
In such a case, the ICollaborator object passed to the runService() method is mocked to expect a call on its method, executeJob(), and return a string other than "success."
在这种情况下,传递给runService()方法的ICollaborator对象被模拟 为期望调用executeJob() 方法,并返回除了 “success” 以外的字符串。
Which shows that the string lookit, which was passed to the invoke call in wsadmin, was received and used by the SnoopMBean code that implements the snoopy operation.
这显示实现snoopy操作的SnoopMBean代码接收并使用了传递给wsadmin中的invoke调用的lookit字符串。
Once you get all this put together, all you need to do is call send() and pass in the XML string.
完成这些之后,剩下的就是调用send()并传入XML字符串了。
That search method is like the Ajax.Request call, with the exception that it now passes along the query string to a page called search.php.
search方法和Ajax. Request调用类似,除了向search . php页面传递查询字符串。
With the sctp_sendmsg function (a nonstandard sockets call), I can send the string to the client, specifying the particular stream (LOCALTIME_STREAM).
使用sctp _ sendmsg函数一个非标准的socket调用,可以通过指定特定的流程LOCALTIME_STREAM,将这个字符串发送给客户机。
The setShutdownDatabase method is called with the string "shutdown", and then a call to getConnection is required to actually perform the shutdown.
使用字符串“shutdown”来调用setShutdownDatabase方法,然后需要调用getConnection 来执行关闭操作。
If the Group name matches another Ruleset, a recursive call attempts to further decompose the string (this was true for the an: fields element that appeared in the examples in the last column).
如果Group名称与另一个Ruleset相匹配,那么递归调用就尝试进一步分解字符串(对于上一篇专栏文章示例中的an:fields元素,也是这么做的)。
应用推荐