- Queries
- All Atoms
- Search
- Advanced Search
Diviner All Atoms
All Atoms
All Atoms
- PHP lexer which can handle fragments of source code, e.g. for syntax highlighting of inline snippets. This is largely based on Pygments, but alters some rules to better annotate symbols from source fragments.
- Class
- Method
- Syntax highlighting lexer for JSON fragments.
- Class
- Method
- Lexer for shell-like argument strings. Somewhat similar to Python's shlex.
- Class
- Method
- Convert a shell command string into an argument vector. For example, this converts a string like:
- Method
- Slow, inefficient regexp-based lexer. Define rules like this:
- Class
- Method
- Merge adjacent tokens of the same type. For example, if a comment is tokenized as <"//", "comment">, this method will merge the two tokens into a single combined token.
- Method
- Lex an input string into tokens.
- Method
- Process, normalize, and validate the raw lexer rules.
- Method
- Return a set of rules for this lexer. See description in @{class:PhutilLexer}.
- Method
- Python lexer which can handle fragments of source code, e.g. for syntax highlighting of inline snippets. This is largely based on Pygments:
- Class
- Method
- Method
- Lexer for simple options, like:
- Class
- Method
- Method
- Don't use them.
- Article
- Instructions for developing XHPAST.
- Article
- Summary of libphutil core utilities.
- Article
- This document provides a high-level introduction to libphutil.
- Article
- Overview of how futures work in libphutil.
- Article
- This document describes best practices for executing system commands in PHP using libphutil.
- Article
- Class
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Class
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Test if a value is a nonempty, scalar value.
- Function
- Test if a value is a nonempty, stringlike value.
- Function
- Test if a value is a nonempty string.
- Function
- Function
- Function
- Function
- Function
- Insert a value in between each pair of elements in a list.
- Function
- Function
- Function
- Function
- Unescape text that was escaped by @{function:phutil_escape_uri_path_component}. See @{function:phutil_escape_uri} for discussion.
- Function
- Escape text for inclusion as an infix URI substring. See discussion at @{function:phutil_escape_uri}. This function covers an unusual special case; @{function:phutil_escape_uri} is usually the correct function to use.
- Function
- Escape text for inclusion in a URI or a query parameter. Note that this method does NOT escape '/', because "%2F" is invalid in paths and Apache will automatically 404 the page if it's present. This will produce correct (the URIs will work) and desirable (the URIs will be readable) behavior in these cases:
- Function
- Test if a list has the natural numbers (1, 2, 3, and so on) as keys, in order.
- Function
- Return a short, human-readable description of an object's type.
- Function
- Perform a "(string)" cast without disabling standard exception behavior.
- Function
- Function
- Typecheck and cast an HTTP key-value parameter pair.
- Function
- Build a query string from a list of parameter pairs.
- Function
- Build a query string from a dictionary.
- Function
- Compare two hashes for equality.
- Function
- An improved version of `fnmatch`.
- Function
- Returns a parsable string representation of a variable.
- Function
- Attempt to censor any plaintext credentials from a string.
- Function
- Decode an INI string.
- Function
- Produce a human-readable explanation why a value can not be JSON-encoded.
- Function
- Encode a value in JSON, raising an exception if it can not be encoded.
- Function
- Decode a JSON dictionary.
- Function
- Compute the number of microseconds that have elapsed since an earlier timestamp (from `microtime(true)`).
- Function
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0