/third_party/skia/modules/skparagraph/src/ |
H A D | ParagraphImpl.cpp | 528 // We can use the results from SkShaper but have to do EVERYTHING ELSE again in GetLineFontMetrics() 531 // Nothing changed case: we can reuse the data from the last layout in GetLineFontMetrics() 782 // Extracted from https://en.wikipedia.org/wiki/Whitespace_character in GetLineFontMetrics() 979 // Shift the cluster (shift collected from the previous clusters) in GetLineFontMetrics() 1709 // taken from SkUnicode in GetLineFontMetrics() 1742 // In the first case SkParagraph takes the metrics from the default paragraph style in GetLineFontMetrics() 1743 // In the second case it should take it from the current text style in GetLineFontMetrics() 1819 void ParagraphImpl::updateFontSize(size_t from, size_t to, SkScalar fontSize) { in GetLineFontMetrics() 1821 SkASSERT(from == 0 && to == fText.size()); in GetLineFontMetrics() 1843 void ParagraphImpl::updateForegroundPaint(size_t from, size_ in GetLineFontMetrics() argument 1693 SkASSERT(blockIndex < SkToSizeT(fTextStyles.size())); return fTextStyles[blockIndex]; } void ParagraphImpl::setState(InternalState state) { if (fState <= state) { fState = state; return; } fState = state; switch (fState) { case kUnknown: SkASSERT(false); [[fallthrough]]; case kIndexed: fRuns.reset(); fClusters.reset(); [[fallthrough]]; case kShaped: fLines.reset(); [[fallthrough]]; case kLineBroken: fPicture = nullptr; [[fallthrough]]; default: break; } } void ParagraphImpl::computeEmptyMetrics() { bool emptyParagraph = fRuns.empty(); TextStyle textStyle = paragraphStyle().getTextStyle(); if (emptyParagraph && !fTextStyles.empty()) { textStyle = fTextStyles.back().fStyle; } auto typefaces = fontCollection()->findTypefaces( textStyle.getFontFamilies(), textStyle.getFontStyle(), textStyle.getFontArguments()); auto typeface = typefaces.empty() ? nullptr : typefaces.front(); SkFont font(typeface, textStyle.getFontSize()); fEmptyMetrics = InternalLineMetrics(font, paragraphStyle().getStrutStyle().getForceStrutHeight()); if (!paragraphStyle().getStrutStyle().getForceStrutHeight() && textStyle.getHeightOverride()) { const auto intrinsicHeight = fEmptyMetrics.fDescent - fEmptyMetrics.fAscent + fEmptyMetrics.fLeading; const auto strutHeight = textStyle.getHeight() * textStyle.getFontSize(); if (paragraphStyle().getStrutStyle().getHalfLeading()) { fEmptyMetrics.update( fEmptyMetrics.ascent(), fEmptyMetrics.descent(), fEmptyMetrics.leading() + strutHeight - intrinsicHeight); } else { const auto multiplier = strutHeight / intrinsicHeight; fEmptyMetrics.update( fEmptyMetrics.ascent() * multiplier, fEmptyMetrics.descent() * multiplier, fEmptyMetrics.leading() * multiplier); } } if (emptyParagraph) { auto disableFirstAscent = (paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::kDisableFirstAscent) == TextHeightBehavior::kDisableFirstAscent; auto disableLastDescent = (paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::kDisableLastDescent) == TextHeightBehavior::kDisableLastDescent; fEmptyMetrics.update( disableFirstAscent ? fEmptyMetrics.rawAscent() : fEmptyMetrics.ascent(), disableLastDescent ? fEmptyMetrics.rawDescent() : fEmptyMetrics.descent(), fEmptyMetrics.leading()); } if (fParagraphStyle.getStrutStyle().getStrutEnabled()) { fStrutMetrics.updateLineMetrics(fEmptyMetrics); } } SkString ParagraphImpl::getEllipsis() const { auto ellipsis8 = fParagraphStyle.getEllipsis(); auto ellipsis16 = fParagraphStyle.getEllipsisUtf16(); if (!ellipsis8.isEmpty()) { return ellipsis8; } else { return SkUnicode::convertUtf16ToUtf8(fParagraphStyle.getEllipsisUtf16()); } } WordBreakType ParagraphImpl::getWordBreakType() const { return fParagraphStyle.getStrutStyle().getWordBreakType(); } LineBreakStrategy ParagraphImpl::getLineBreakStrategy() const { return fParagraphStyle.getStrutStyle().getLineBreakStrategy(); } void ParagraphImpl::updateFontSize(size_t from, size_t to, SkScalar fontSize) { SkASSERT(from == 0 && to == fText.size()); auto defaultStyle = fParagraphStyle.getTextStyle(); defaultStyle.setFontSize(fontSize); fParagraphStyle.setTextStyle(defaultStyle); for (auto& textStyle : fTextStyles) { textStyle.fStyle.setFontSize(fontSize); } fState = std::min(fState, kIndexed); fOldWidth = 0; fOldHeight = 0; } void ParagraphImpl::updateTextAlign(TextAlign textAlign) { fParagraphStyle.setTextAlign(textAlign); if (fState >= kLineBroken) GetLineFontMetrics() argument 1854 updateBackgroundPaint(size_t from, size_t to, SkPaint paint) GetLineFontMetrics() argument 1885 updateColor(size_t from, size_t to, SkColor color) GetLineFontMetrics() argument [all...] |
/third_party/mesa3d/src/compiler/glsl/ |
H A D | ast_function.cpp | 499 * require an implicit conversion to exist both to and from the formal in fix_parameter() 589 * "Initializers for const declarations must be formed from literal in generate_call() 1091 * The \c from \c ir_rvalue is converted "in place". 1093 * \param from Operand that is being converted 1102 implicitly_convert_component(ir_rvalue * &from, const glsl_base_type to, in implicitly_convert_component() argument 1106 ir_rvalue *result = from; in implicitly_convert_component() 1108 if (to != from->type->base_type) { in implicitly_convert_component() 1111 from->type->vector_elements, in implicitly_convert_component() 1112 from->type->matrix_columns); in implicitly_convert_component() 1114 if (from in implicitly_convert_component() [all...] |
/third_party/node/lib/internal/ |
H A D | errors.js | 143 // being used, even when the error is from a different context. 317 // `.toString()` and `Buffer.from()` operations and set the value on the 327 lazyBuffer().from(value.toString()) : undefined; 343 lazyBuffer().from(value.toString()) : undefined; 412 * This function removes unnecessary frames from Node.js core errors. 606 // getSystemErrorName(err) to guard against invalid arguments from users. 629 * from C++. this method for backwards compatibility 640 // getSystemErrorName(err) to guard against invalid arguments from users. 822 // Ensures the printed error line is from user code. 1140 'The socket has been disconnected from th [all...] |
/third_party/rust/crates/nix/src/sys/socket/ |
H A D | mod.rs | 162 /// Query information about sockets of various protocol families from the kernel 182 /// Access to FIB lookup from user space 202 /// Transport IPv6 packets from netfilter to user space. Used by ip6_queue kernel module. 295 #[allow(deprecated)] // Suppress useless warnings from libc PR 2963 300 #[allow(deprecated)] // Suppress useless warnings from libc PR 2963 305 #[allow(deprecated)] // Suppress useless warnings from libc PR 2963 317 #[allow(deprecated)] // Suppress useless warnings from libc PR 2963 320 #[allow(deprecated)] // Suppress useless warnings from libc PR 2963 330 #[allow(deprecated)] // Suppress useless warnings from libc PR 2963 334 #[allow(deprecated)] // Suppress useless warnings from lib 423 fn from(cred: libc::ucred) -> Self { from() functions 429 fn from(uc: UnixCredentials) -> Self { from() functions 474 fn from(cred: libc::cmsgcred) -> Self { from() functions [all...] |
/third_party/elfutils/src/ |
H A D | findtextrel.c | 43 GElf_Addr from; member 348 segments[nsegments].from = phdr->p_vaddr; in process_file() 487 if (segments[cnt].from <= addr && segments[cnt].to > addr) in check_rel()
|
/third_party/eudev/src/scsi_id/ |
H A D | scsi_id.c | 70 static void set_type(const char *from, char *to, size_t len) in set_type() argument 76 type_num = strtoul(from, &eptr, 0); in set_type() 77 if (eptr != from) { in set_type() 171 char *vendor_in, *model_in, *options_in; /* read in from file */ in get_file_options() 511 /* get per device (vendor + model) options from the config file */ in scsi_id() 518 /* read serial number from mode pages (no values for optical drives) */ in scsi_id()
|
/third_party/ffmpeg/libavutil/ |
H A D | avstring.c | 240 char *av_strireplace(const char *str, const char *from, const char *to) in av_strireplace() argument 244 size_t tolen = strlen(to), fromlen = strlen(from); in av_strireplace() 248 while ((pstr2 = av_stristr(pstr, from))) { in av_strireplace()
|
/third_party/curl/src/ |
H A D | tool_setopt.c | 229 static const char from[] = "\t\r\n?\"\\"; in c_escape() local 231 const char *p = strchr(from, *s); in c_escape() 241 result = curlx_dyn_addn(&escaped, to + 2 * (p - from), 2); in c_escape()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/message2/ |
H A D | Mf2Serializer.java | 112 int from = begin == -1 ? 0 : begin; in toString() 113 String strval = end == -1 ? input.substring(from) : input.substring(from, end); in toString()
|
/third_party/icu/icu4c/source/common/ |
H A D | localebuilder.cpp | 149 // We need to convert from legacy key/value to unicode in _isKeywordValue() 160 _copyExtensions(const Locale& from, icu::StringEnumeration *keywords, in _copyExtensions() argument 166 ownedKeywords.adoptInstead(from.createKeywords(errorCode)); in _copyExtensions() 174 from.getKeywordValue(key, sink, errorCode); in _copyExtensions()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/ |
H A D | ICUDurationTest.java | 205 logln("format date from -> " + formatted); in TestBasics() 231 logln("out=expected: " + expected + " from " + d); in TestSimpleXMLDuration() 233 errln("FAIL: got " + out + " wanted " + expected + " from " + d); in TestSimpleXMLDuration() 242 logln("out=expected: " + expected + " from " + d); in TestSimpleXMLDuration() 244 errln("FAIL: got " + out + " wanted " + expected + " from " + d); in TestSimpleXMLDuration() 252 logln("out=expected: " + expected + " from " + d); in TestSimpleXMLDuration() 254 errln("FAIL: got " + out + " wanted " + expected + " from " + d); in TestSimpleXMLDuration() 263 logln("out=expected: " + expected + " from " + d); in TestSimpleXMLDuration() 266 logln("WARNING: got " + out + " wanted " + expected + " from " + d); in TestSimpleXMLDuration() 268 errln("FAIL: got " + out + " wanted " + expected + " from " in TestSimpleXMLDuration() [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/duration/ |
H A D | ICUDurationTest.java | 208 logln("format date from -> " + formatted); in TestBasics() 234 logln("out=expected: " + expected + " from " + d); in TestSimpleXMLDuration() 236 errln("FAIL: got " + out + " wanted " + expected + " from " + d); in TestSimpleXMLDuration() 245 logln("out=expected: " + expected + " from " + d); in TestSimpleXMLDuration() 247 errln("FAIL: got " + out + " wanted " + expected + " from " + d); in TestSimpleXMLDuration() 255 logln("out=expected: " + expected + " from " + d); in TestSimpleXMLDuration() 257 errln("FAIL: got " + out + " wanted " + expected + " from " + d); in TestSimpleXMLDuration() 266 logln("out=expected: " + expected + " from " + d); in TestSimpleXMLDuration() 269 logln("WARNING: got " + out + " wanted " + expected + " from " + d); in TestSimpleXMLDuration() 271 errln("FAIL: got " + out + " wanted " + expected + " from " in TestSimpleXMLDuration() [all...] |
/third_party/node/lib/internal/crypto/ |
H A D | keys.js | 126 static from(key) { 436 keyData = Buffer.from(key.x, 'base64'); 438 keyData = Buffer.from(key.d, 'base64');
|
/third_party/node/test/parallel/ |
H A D | test-fs-promises.js | 170 const buf = Buffer.from('DAWGS WIN'); 191 const buf = Buffer.from('hello fsPromises'); 203 const buf = Buffer.from('hello FileHandle');
|
H A D | test-util-isDeepStrictEqual.js | 26 const buf = Buffer.from(arr); 30 const buf2 = Buffer.from(arr); 74 Buffer.from([1]), // Buffer
|
/third_party/node/test/common/ |
H A D | inspector-helper.js | 42 buffer = Buffer.from(lines.pop(), 'utf8'); 93 const messageBuf = Buffer.from(JSON.stringify(message)); 142 socket.write(Buffer.from([0x88, 0x00])); // WS close frame
|
/third_party/node/deps/cares/src/lib/ |
H A D | ares__socket.c | 64 struct sockaddr *from, in ares__socket_recvfrom() 68 return channel->sock_funcs->arecvfrom(s, data, data_len, flags, from, in ares__socket_recvfrom() 74 from, from_len); in ares__socket_recvfrom() 62 ares__socket_recvfrom(ares_channel_t *channel, ares_socket_t s, void *data, size_t data_len, int flags, struct sockaddr *from, ares_socklen_t *from_len) ares__socket_recvfrom() argument
|
/third_party/node/deps/icu-small/source/common/ |
H A D | localebuilder.cpp | 149 // We need to convert from legacy key/value to unicode in _isKeywordValue() 160 _copyExtensions(const Locale& from, icu::StringEnumeration *keywords, in _copyExtensions() argument 166 ownedKeywords.adoptInstead(from.createKeywords(errorCode)); in _copyExtensions() 174 from.getKeywordValue(key, sink, errorCode); in _copyExtensions()
|
/third_party/node/deps/v8/src/compiler/ |
H A D | memory-optimizer.cc | 125 // Start the effect chain walk from the loop back edges. in CanLoopAllocate() 213 // Allocate nodes were purged from the graph in effect-control in VisitNode() 274 // Propagate tenuring from outer allocations to inner allocations, i.e. in VisitAllocateRaw() 280 Node* const user = edge.from(); in VisitAllocateRaw() 293 Node* const user = edge.from(); in VisitAllocateRaw() 341 // lowering, so we can proceed iterating the graph from the node uses. in VisitLoadField() 408 // The states are from different allocation groups. in MergeStates() 428 // If the loop cannot allocate, we can just propagate the state from in EnqueueMerge() 461 EnqueueUse(edge.from(), edge.index(), state); in EnqueueUses()
|
/third_party/node/deps/v8/src/heap/ |
H A D | new-spaces.h | 34 // The mark-compact collector uses the memory of the first page in the from 41 static void Swap(SemiSpace* from, SemiSpace* to); 166 // The "from" address must be on a page prior to the "to" address, 168 static void AssertValidRange(Address from, Address to); 171 inline static void AssertValidRange(Address from, Address to) {} in AssertValidRange() argument 217 // semispace from a given start address (defaulting to the bottom of the
|
/third_party/node/deps/openssl/openssl/crypto/asn1/ |
H A D | ameth_lib.c | 181 int EVP_PKEY_asn1_add_alias(int to, int from) in EVP_PKEY_asn1_add_alias() argument 184 ameth = EVP_PKEY_asn1_new(from, ASN1_PKEY_ALIAS, NULL, NULL); in EVP_PKEY_asn1_add_alias() 327 const EVP_PKEY *from), in EVP_PKEY_asn1_set_param() 319 EVP_PKEY_asn1_set_param(EVP_PKEY_ASN1_METHOD *ameth, int (*param_decode) (EVP_PKEY *pkey, const unsigned char **pder, int derlen), int (*param_encode) (const EVP_PKEY *pkey, unsigned char **pder), int (*param_missing) (const EVP_PKEY *pk), int (*param_copy) (EVP_PKEY *to, const EVP_PKEY *from), int (*param_cmp) (const EVP_PKEY *a, const EVP_PKEY *b), int (*param_print) (BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx)) EVP_PKEY_asn1_set_param() argument
|
/third_party/node/deps/undici/src/lib/core/ |
H A D | request.js | 11 // tokenRegExp and headerCharRegex have been lifted from 141 this.body = body.buffer.byteLength ? Buffer.from(body.buffer, body.byteOffset, body.byteLength) : null 143 this.body = body.byteLength ? Buffer.from(body) : null 145 this.body = body.length ? Buffer.from(body) : null
|
/third_party/pulseaudio/src/pulsecore/ |
H A D | sample-util.c | 397 size_t pa_convert_size(size_t size, const pa_sample_spec *from, const pa_sample_spec *to) { in pa_convert_size() argument 400 pa_assert(from); in pa_convert_size() 403 usec = pa_bytes_to_usec_round_up(size, from); in pa_convert_size()
|
/third_party/openssl/crypto/asn1/ |
H A D | ameth_lib.c | 181 int EVP_PKEY_asn1_add_alias(int to, int from) in EVP_PKEY_asn1_add_alias() argument 184 ameth = EVP_PKEY_asn1_new(from, ASN1_PKEY_ALIAS, NULL, NULL); in EVP_PKEY_asn1_add_alias() 327 const EVP_PKEY *from), in EVP_PKEY_asn1_set_param() 319 EVP_PKEY_asn1_set_param(EVP_PKEY_ASN1_METHOD *ameth, int (*param_decode) (EVP_PKEY *pkey, const unsigned char **pder, int derlen), int (*param_encode) (const EVP_PKEY *pkey, unsigned char **pder), int (*param_missing) (const EVP_PKEY *pk), int (*param_copy) (EVP_PKEY *to, const EVP_PKEY *from), int (*param_cmp) (const EVP_PKEY *a, const EVP_PKEY *b), int (*param_print) (BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx)) EVP_PKEY_asn1_set_param() argument
|
/third_party/openssl/ohos_lite/include/openssl/ |
H A D | crypto.h | 170 typedef int CRYPTO_EX_dup (CRYPTO_EX_DATA *to, const CRYPTO_EX_DATA *from, 184 const CRYPTO_EX_DATA *from); 344 const struct tm *from, const struct tm *to);
|