算法導論英文版
This book is one of a series of TextS written by faculty of the Electrical Engineering and
Computer Science Department at the Massachusetts Institute of Technology. I
This paper describes some of the author s experiences from a C++ implementation of a concordance program for TextS in Old West Norse and Runic Swedish.
Just what is a regular expression, anyway?
Take the tutorial to get the long answer. The short answer is that a regular expression
is a compact way of describing complex patterns in TextS. You can use them to search
for patterns and, once found, to modify the patterns in complex ways. You can also use
them to launch programmatic actions that depend on patterns.
A tongue-in-cheek comment by programmers is worth thinking about: "Sometimes you
have a programming problem and it seems like the best solution is to use regular
expressions now you have two problems." Regular expressions are amazingly
powerful and deeply expressive. That is the very reason writing them is just as
error-prone as writing any other complex programming code. It is always better to
solve a genuinely simple problem in a simple way when you go beyond simple, think
about regular expressions.
Tutorial: Using regular expressions
ATViewer is a component for Delphi/C++Builder, which allows to view files of various types. There is no edit possibility, just quick view - so it s useful to implement "View file" feature in your Delphi/C++Builder application.
The following view modes are implemented:
Text, Binary, Hex, Unicode: all files, of unlimited size. Plain file dump is shown. Used ATBinHex component: only visible part of file is loaded into memory. Modes are suitable for huge files and files of unknown type.
RTF/UTF-8: RTF and UTF-8 encoded TextS. File is shown using RichEdit control.
Image: all general image formats: BMP JPG ICO GIF PNG... File is shown using ATImageBox component.
Multimedia: all file types supported by MS Windows Media Player: AVI MPEG WMV MP3... File is shown using WMP ActiveX control.
Internet: all file types supported by MS Internet Explorer: HTML XML DOC XLS... File is shown using MSIE ActiveX control.
Plugins: all files supported by Total Commander Lister plugins.
This book is the culmination of more than 20 years of building, studying, and teaching real-time systems. The author’s travels have taken him to NASA, UPS, Lockheed Martin, the Canadian and Australian Defense Forces, MIT’s Charles Stark Draper Labs, and many other places. These visits and interactions with literally hundreds of students from such places as Boeing, Motorola, and Siemens have resulted in a wider understanding of real-time systems and particularly their real application. This book is, in essence, a compendium of these experiences. The author’s intent is to provide a practical framework for software engineers to design and implement real-time systems. This approach is somewhat different from that of other TextS on the subject.
Permission is granted to copy, distribute and/or modify
this document under the terms of the GNU Free Documentation License, Version 1.1 or any later
version published by the Free Software Foundation with no Invariant Sections, with no Front-
Cover TextS, and with no Back-Cover TextS. A copy of the license is included in the section
entitled “GNU Free Documentation License”.