We just loop over the characters of the text and add a new style range to this text presentation instance for each XML tag found in the text.
我们只需循环遍历该文本的字符,针对从该文本中找到的每个XML标签,我们向它的这个文本展示实例添加一个新的样式范围。
Marks on a clay tablet fragment found in Greece are the oldest known decipherable text in Europe, a new study says.
一个新的研究表明,最近在希腊发现的粘土碑碎片上的记号,是欧洲现知最早的可辨认的文字。
Finding text is a common problem but, more often than not, you want to extract the text after it's found.
查找文本是常见的问题,但是更常见的问题则是希望在找到文本之后将其提取出来。
You give it some XML, and it calls you back when tags are opened, or closed, when text is found, and so on.
您给它一些XML,当标签打开或关闭时,当找到文本时,它都会向您的代码发送事件。
This method is useful when parsing element-only content; if it encounters non-white-space text before a tag is found (other than comments or processing instructions), it throws an exception.
该方法在解析只含元素的内容时很有用,如果在发现标记之前遇到非空白文本(不包括注释或处理指令),就会抛出异常。
In general, it is best that either a heading or a line of text is found in a DOORS object.
通常来说,在DOORS对象中可以找到一个标题或者一行文本,是最好的。
We also found that blogs were more likely to use text links, while commercial websites were more likely to use buttons.
我们还发现,大多数博客仅使用文字链接,而商业网站则更多使用按钮。
In working with the buttons and their states, I found that the text on the button wouldn't change colors properly.
在处理按钮及其状态时,我发现,按钮上的文本不能正确地改变颜色。
For SELECT queries, the text of the remote SQL statement can be found in the details associated with the SHIP operator in the query execution plan.
对于SELECT查询,远程sql语句中的文本可以在查询执行计划中与SHIP操作符相关的细节中找到。
But after about four hours of flipping through blocks of grey text I found myself feeling strangely melancholic.
但阅读了四个钟头之后,大段大段的灰色文字让我感到说不出的沮丧。
They even reversed the analysis to see if it was the good spellers who tended to use text abbreviations, but found that relationship was unidirectional, she said.
他们甚至希望通过分析发现有优秀拼写能力的人倾向于使用短信缩写,但结果发现二者没什么联系。她说。
If the current line matches the resulting regex, then the function has found the correct completion (the text of which is already in completion) and can return it immediately.
如果当前的行匹配生成的正则表达式,那么该函数就找到正确的补全(它的文本已经在补全中)并且能够立即返回它。
In writing my own user documentation, I found I was spending quite a bit of time simply copying and pasting text throughout the document.
在编写自己的用户文档时,我发现大量的时间都浪费在文档内部的复制、粘贴上。
The text found in the database does not need to be identical to the text that needs translation.
数据库中发现的文本不需要与翻译的文本完全相同。
Factual questions: the answer to such questions can be found, like a mirror image, in the text itself. e.g. 'How many times did she visit Peter?
事实类问题:在文本中,可以找到问题的答案,如“她拜访了几次彼德?”
Now you can relate the annotation with the key COUNTRY of the text document that it was found in.
现在,您可以将注释与文本文档的键COUNTRY关联起来。
The implicit side effect is that after this line the matcher object contains the first match found in the input text.
隐含的副作用是,执行该行代码之后, matcher对象包含在输入文本中找到的第一个匹配项。
This first selects all of the children with the tag name content, then gets the CDATA text from within the found nodes.
循环中首先选择标记名为content的所有子元素,然后从发现的节点中获得CDATA文本。
It's important to note that the Contains method always does a case-sensitive search; if we looked for the string RIPT, Contains would tell us that this text could not be found.
注意到Contains方法总是采取大小写敏感搜索是很重要的。如果我们查找字符串ript, Contains将会告诉我们这个文本不能被找到。
If a last name in the patients XML instance data matches that entered in the text box, a match is found through the XPath.
如果患者XML实例数据中有一个姓氏和文本框中输入的内容匹配,就通过XPath找到对应的信息。
A number of projects found Etherpad to be a great way to coordinate real-time text editing.
有一些项目发现Etherpad是实现实时文本协作编辑的非常好的办法。
This is the message text that is found in the log file for each element, briefly describing the problem element that the Application Advancement Assistant encountered.
这是在日志文件中找到的每个元素的消息文本,简要描述了ApplicationAdvancementAssistant遇到的问题元素。
The -v option prints lines where the specified text is not found.
v选项将输出未找到指定文本的行。
When the keyword text (for example, "ipod" or "iphone") is found, an alternate mobile login screen is displayed.
找到关键字文本后(比如“ipod”或“iphone”),将显示另一个备用的移动登录屏幕。
The capability can be found if you enter os.PortConsumer into the text field of the Add capability dialog window.
如果您向addCapability对话框窗口的文本框输入os . Port,就可以找到功能了。
If the batch file is name install.bat and is found at \ \ server1 \ install_image \, then enter the text in Listing 12 at a command line on the local machine to run the batch file.
如果批处理文件名为install . bat,并且位于\ \server1 \ install _ image \,那么在本地机器的命令行中输入清单12中的文本来运行批处理文件。
The survey found 60 percent of respondents had sent a flirty text to someone other than their regular partner although not without consequences for many of them.
研究发现,尽管对许多人来说会造成一些不好的后果,但60%的受访者都给非男女朋友关系的人发送过调情短信。
We also found that text-based reports often lack the sort of objective clarity that well-designed graphics can offer, especially when simple metrics are presented.
我们还发现基于文本的报告经常缺少设计良好的图形所提供的那种客观的清晰度,特别是当介绍简单的量度时。
For the first time in a long time, I found myself actually calling people who sent me text messages.
第一次我花了很长时间,我发现我确实可以打电话给那些给我发短信的人。
For the first time in a long time, I found myself actually calling people who sent me text messages.
第一次我花了很长时间,我发现我确实可以打电话给那些给我发短信的人。
应用推荐