Tutorial by Examples: f

\m : Beginning of a word. \M : End of a word. \y : Word boundary. \Y : a point that is not a word boundary. \Z : matches end of data. Documentation: re_syntax
A bit field is a variable that holds various boolean states as individual bits. A bit on would represent true, and off would be false. In the past bit fields were routinely used as they saved memory and reduced processing load. Though the need to use bit field is no longer so important they do offer...
Literals in RDF may be language tagged strings. These literals have a text part as well as a language tag. For instance, the literal "color"@en has the text part "color" and the language tag "en". In a SPARQL query, use the lang function to get the language of a lite...
You may use this command for listing the files for your own debuggable apk: adb shell run-as <sample.package.id> ls /data/data/sample.package.id/cache And this script for pulling from cache, this copy the content to sdcard first, pull and then remove it at the end: #!/bin/sh adb shell &q...
Given the text file employee.txt 1|Arthur Dent 2|Marvin 3|Zaphod Beeblebrox $ mysqlimport --fields-terminated-by='|' mycompany employee.txt
Template Haskell is enabled by the -XTemplateHaskell GHC extension. This extension enables all the syntactic features further detailed in this section. The full details on Template Haskell are given by the user guide. Splices A splice is a new syntactic entity enabled by Template Haskell, writ...
First, add Fresco to your build.gradle as shown in the Remarks section: If you need additional features, like animated GIF or WebP support, you have to add the corresponding Fresco artifacts as well. Fresco needs to be initialized. You should only do this 1 time, so placing the initialization in y...
Often you want to match an expression only in specific places (leaving them untouched in others, that is). Consider the following sentence: An apple a day keeps the doctor away (I eat an apple everyday). Here the "apple" occurs twice which can be solved with so called backtracking cont...
The result of a reinterpret_cast from one function pointer type to another, or one function reference type to another, is unspecified. Example: int f(); auto fp = reinterpret_cast<int(*)(int)>(&f); // fp has unspecified value C++03 The result of a reinterpret_cast from one object poi...
The following snippet replaces all Attributes called PreviousAttribute by an Attribute called ReplacementAttribute for an entire solution. The sample manually searches the Syntax tree and replaces all affected nodes. static async Task<bool> ModifySolution(string solutionPath) { ...
The following snippet replaces all Attributes called "PreviousAttribute" by an Attribute called "ReplacementAttribute" for an entire solution. The sample manually uses a SyntaxRewriter to exchange the attributes. /// <summary> /// The CSharpSyntaxRewriter allows to rewrit...
C11 The function specifier _Noreturn was introduced in C11. The header <stdnoreturn.h> provides a macro noreturn which expands to _Noreturn. So using _Noreturn or noreturn from <stdnoreturn.h> is fine and equivalent. A function that's declared with _Noreturn (or noreturn) is not allowe...
Most PRAGMA statements affect only the current database connection, which means that they have to be re-applied whenever the database has been opened. However, the following PRAGMAs write to the database file, and can be executed at any time (but in some cases, not inside a transaction): applica...
In a switch statement, introduces a label that will be jumped to if the condition's value is not equal to any of the case labels' values. char c = getchar(); bool confirmed; switch (c) { case 'y': confirmed = true; break; case 'n': confirmed = false; break; default: ...
A named style requires the x:Key property to be set and applies only to elements that explicitly reference it by name: <StackPanel> <StackPanel.Resources> <Style x:Key="MyTextBlockStyle" TargetType="TextBlock"> <Setter Property=&qu...
An implicit style applies to all elements of a given type within scope. An implicit style can omit x:Key since it is implicitly the same as the style's TargetType property. <StackPanel> <StackPanel.Resources> <Style TargetType="TextBlock"> <...
It is common to need a base style that defines properties/values shared between multiple styles belonging to the same control, especially for something like TextBlock. This is accomplished by using the BasedOn property. Values are inherited and then can be overridden. <Style x:Key="BaseText...
A PDF document may contain the following standard types of signatures: Any number of approval signatures in signature form fields. At most one certification signature in a signature form field. It enables the author to specify what changes shall be permitted to be made to the document and what c...
ngfor.component.html <StackLayout> <Label *ngFor="let item of items" [text]="item"></Label> </StackLayout> ngfor.component.ts import { Component } from "@angular/core"; var dataItems = ["data-item 1", "data-item 2&quo...
Phantom types are useful for dealing with data, that has identical representations but isn't logically of the same type. A good example is dealing with currencies. If you work with currencies you absolutely never want to e.g. add two amounts of different currencies. What would the result currency o...

Page 241 of 457