substring

['sʌbstrɪŋ]['sʌbstrɪŋ]

n.子链

  • The replace method actually accepts a substring or a regular expression and a replacement string as its second parameter replaces all matches with the replacement string and returns the updated string .

    replaceu65b9u6cd5u5b9eu9645u4e0au63a5u53d7u5b50 u5b57u7b26u4e32u6216u6b63u5219u8868u8fbeu5f0fu548cu66ffu6362u5b57u7b26u4e32u4f5cu4e3au5176u7b2cu4e8cu4e2au53c2u6570uff0cu7528u66ffu6362u5b57u7b26u4e32u66f4u6362u6240u6709u5339u914du9879uff0cu5e76u8fd4u56deu66f4u65b0u7684u5b57u7b26u4e32u3002

  • The latter is a substring match and the former is a token match that uses stemming .

    u540eu8005u662fu5b50 u5b57u7b26u4e32u5339u914duff0cu524du8005u662fu4f7fu7528u8bcdu5e72u5339u914du7684u6807u8bb0u5339u914du3002

  • We pass Substring a single parameter : the starting position where we want to begin extracting characters .

    u6211u4eecu4f20u9012u7ed9 Substringu4e00u4e2au53c2u6570uff1au6211u4eecu60f3u8981u5f00u59cbu63d0u53d6u5b57u7b26u7684u5f00u59cbu4f4du7f6eu3002

  • The Substring function uses a delimiter and index to determine what text to extract from the incoming source string .

    Substringu51fdu6570u4f7fu7528u4e00u4e2au5206u9694u7b26u548cu7d22u5f15u6765u5224u65adu8981u4eceu8fdbu5165u7684u6e90u5b57u7b26u4e32u63d0u53d6u54eau4e9bu6587u672cu3002

  • Note the truncation due to the substring in the column map .

    uff08u6ce8u610fuff0cu5217u6620u5c04u7684 u5b50 u5b57u7b26u4e32 u7b80u5316u4e86 u8f93u51fauff09u3002

  • Output one number & length of the longest substring that can be met in the string at least twice .

    u8f93u51fau4e00u4e2au6570uff0cu662fu90a3u4e2au6700u957fu7684u51fau73b0u81f3u5c11u4e24u6b21u7684 u5b50 u4e32u7684u957fu5ea6u3002

  • The for loop iterates over the list of substrings printing out each substring and its length .

    foru5faau73afu8fedu4ee3u5b50u5b57u7b26u4e32listuff0cu6253u5370u6bcfu4e2a u5b50 u5b57u7b26u4e32u53cau5176u957fu5ea6u3002

  • You 'll recognize several parameter expansions including length substring pattern matching and pattern replacement in even this short piece of script .

    u5373u4f7fu5728u8fd9u6837u4e00u5c0fu6bb5u811au672cu4e2duff0cu60a8u4e5fu53efu4ee5u627eu5230u4e00u4e9bu53c2u6570u6269u5c55uff0cu5305u62ecu957fu5ea6u3001 u5b50 u5b57u7b26u4e32u3001u6a21u5f0fu5339u914du548cu6a21u5f0fu66ffu6362u3002

  • Call this member function to insert a single character or a substring at the given index within the string .

    u8be5u51fdu6570u7528u6765u5728u539fu5bf9u8c61u4e2du7684 u6307u5b9a u4f4du7f6eu63d2u5165u4e00u4e2au5b57u7b26u6216 u5b50u94feu3002

  • For convenience the rope 's length can be substituted for n because the length is always greater than the number of substring and concatenation nodes in the rope .

    u4e3au4e86u65b9u4fbfuff0cu53efu4ee5u7528ropeu7684u957fu5ea6u4ee3u66ffnuff0cu56e0u4e3au957fu5ea6u603bu662fu6bd4ropeu4e2du7684 u5b50 u4e32u548cu8fdeu63a5u8282u70b9u7684u4e2au6570u5927u3002

  • The depth of concatenation and substring ropes is one more than the depth of the deepest node they enclose .

    u6709u8fdeu63a5u548c u5b50 u4e32u7684ropeu7684u6df1u5ea6u6bd4u5b83u4eecu6240u62e5u6709u7684u6700u6df1u8282u70b9u7684u6df1u5ea6u59271u3002

  • The cut attribute indicates whether to delete the matched substring segment from the request URL before proceeding .

    cutu5c5eu6027u8868u660eu662fu5426u5728u7ee7u7eedu4e4bu524du4eceu8bf7u6c42URLu5220u9664u5339u914du7684 u5b50 u5b57u7b26u4e32u7247u6bb5u3002

  • The SUBSTRING function returns a substring of a string .

    SUBSTRINGu51fdu6570u8fd4u56deu5b57u7b26u4e32u7684u5b50u5b57u7b26u4e32u3002

  • The best way to achieve this is to use the resource group name or a substring of the logical volume name as the top-level directory since typically a file system mount point is required for each logical volume .

    u8981u5b9eu73b0u8fd9u4e00u70b9uff0cu6700u597du7684u65b9u6cd5u662fuff0cu4f7fu7528u8d44u6e90u7ec4u540du6216u8005u903bu8f91u5377u540du7684u4e00 u4e2au5b50 u5b57u7b26u4e32u4f5cu4e3au9876u5c42u76eeu5f55uff0cu56e0u4e3au901au5e38u6bcfu4e2au903bu8f91u5377u90fdu9700u8981u4e00u4e2au6587u4ef6u7cfbu7edfu88c5u5165u70b9u3002

  • You can use the Substring function by specifying comma ) as the delimiter .

    u53efu4ee5u901au8fc7u6307u5b9au201cuff0cu201duff08u9017u53f7uff09u4f5cu4e3au5206u9694u7b26u6765u4f7fu7528 Substringu51fdu6570u3002

  • The first is that a superstructure of substring and concatenation nodes must be traversed to reach a specified character .

    u7b2cu4e00u4e2a u5f00u9500u5c31u662fu5fc5u987bu904du5386 u5b50 u4e32u548cu8fdeu63a5u8282u70b9u7684u4e0au5c42u7ed3u6784uff08superstructureuff09u624du80fdu5230u8fbeu6307u5b9au7684u5b57u7b26u3002

  • The actual substring that was captured by the match .

    u901au8fc7u5339u914du6355u83b7u7684u5b9eu9645 u5b50 u5b57u7b26u4e32u3002

  • When you search a string for the occurrence of a specified substring the search is first performed and then the result ( position within the string ) is returned as the number of byte positions not the correct character or code units position .

    u5728u5b57u7b26u4e32u4e2du641cu7d22u7279u5b9au7684 u5b50 u5b57u7b26u4e32u65f6uff0cu9996u5148u6267u884cu641cu7d22uff0cu7136u540eu8fd4u56deu7684u7ed3u679cuff08u5b57u7b26u4e32u4e2du7684u4f4du7f6euff09u4e3au5b57u8282u4f4du7f6eu6570uff0cu800cu4e0du662fu6b63u786eu7684u5b57u7b26u6216u4ee3u7801u5355u5143u7684u4f4du7f6eu3002

  • If the PATTERN contains parentheses additional list elements are created from each matching substring in the delimiter .

    u5982u679cPATTERNu91ccu5305u542bu62ecu53f7uff0cu90a3u4e48u6bcfu4e00u4e2au5339u914du7684u5b9au754cu7b26 u5b50 u5b57u7b26u4e32u90fdu4f1au4f5cu4e3au5143u7d20u52a0u5230u5217u8868u4e2du53bbu3002

  • Rope implementations also often defer evaluation of large substring operations by introducing a substring node .

    Ropeu5b9eu73b0u901au5e38u4e5fu5c06u5ef6u8fdfu5bf9u5927u578b u5b50 u4e32u64cdu4f5cu7684u6c42u503cuff0cu5b83u7684u4f5cu6cd5u662fu5f15u5165u5b50u4e32u8282u70b9u3002

  • This is the substring after the character ? in the URL .

    u5373URLu4e2du5b57u7b26uff1fu4e4bu540eu7684 u5b50 u5b57u7b26u4e32u3002

  • A substring is zero or more contiguous string length units of input string .

    u5b50 u5b57u7b26u4e32u662fu8f93u5165u5b57u7b26u4e32u7684u96f6u4e2au6216u591au4e2au76f8u90bbu5b57u7b26u4e32u957fu5ea6u5355u5143u3002

  • Constant-time substring implementations in Java code can cause memory problems because the substring reference prevents the original string from being garbage collected .

    Javau4ee3u7801u4e2du8017u65f6u6052u5b9au7684 u5b50 u4e32u5b9eu73b0u4f1au5f15u8d77u5185u5b58u95eeu9898uff0cu56e0u4e3au5b50u4e32u5f15u7528u4f1au963bu6b62u521du59cbu5b57u7b26u4e32u88abu8fdbu884cu5783u573eu641cu96c6u3002

  • Returns the index of the first character of a specified substring in a string .

    u8fd4u56deu6307u5b9a u5b50 u4e32u9996u5b57u7b26u5728u4e32u4e2du7684u7d22u5f15u3002

  • In Figure 5 the substring of length 1 from the first byte of the string has been specified .

    u5728u56fe5u4e2duff0cu5df2u7ecfu6307u5b9au5b57u7b26u4e32u7b2cu4e00u4e2au5b57u8282u7684u957fu5ea6u4e3a1u7684 u5b50 u5b57u7b26u4e32u3002

  • The length argument specifies the length of the desired substring .

    u957fu5ea6u53c2u6570u6307u5b9au4e86u6240u9700 u5b50 u5b57u7b26u4e32u7684u957fu5ea6u3002

  • The Substring function will extract text from a source string .

    Substringu51fdu6570u5c06u4eceu4e00u4e2au6e90u5b57u7b26u4e32u4e2du63d0u53d6u6587u672cu3002

  • This lets you find all stories where the tag parameter occurs as a substring of the tags attribute .

    u5b83u5141u8bb8u60a8u67e5u627eu6240u6709u6807u8bb0u53c2u6570u4f5cu4e3au6807u8bb0u5c5eu6027u7684 u5b50 u5b57u7b26u4e32u7684u65b0u95fbu3002

  • A flat rope a rope with no concatenation or substring nodes has a depth of1 .

    u6241u5e73ropeuff08flatropeuff09u6ca1u6709u8fdeu63a5u8282u70b9u6216 u5b50 u4e32u8282u70b9u7684u6df1u5ea6uff08depthuff09u4e3a1u3002

  • The characters in a subsequence unlike those in a substring do not need to be contiguous .

    u5b50u5e8fu5217u4e2du7684u5b57u7b26u4e0e u5b50 u5b57u7b26u4e32u4e2du7684u5b57u7b26u4e0du540cuff0cu5b83u4eecu4e0du9700u8981u662fu8fdeu7eedu7684u3002