Return the destination unit suffix.
506568
public function getDestSuffix(string $unit = null, string $mode = null)
    {
        return self::getSuffix($this->getDestUnit($unit), $this->getMode($mode));
    }
392730
def _write_raw(self, suffix):
        
        if not self.enabled: return

        self.buffer.write(CSI)
        self.buffer.write(suffix)
931482
def endswith(self, suffix, start=None, end=None):
        
        suffix = Bits(suffix)
        start, end = self._validate_slice(start, end)
        if start + suffix.len > end:
            return False
        start = end - suffix.len
        return self._slice(start, end) == suffix
840941
def to_string(self):
        """"""
        suffix = '%s %s' % (self.type, self.name)
        if self.initial_value:
            suffix += ' = ' + self.initial_value
        return suffix
1282733
def program_unit_name(line:str) -> str:
   """"""
   match = RE_PGM_UNIT_START.match(line)
   assert match != None
   return match.group(2)
19658
def bytes_to_string(num, suffix='B'):
    
    extensions = ["%s%s" % (x, suffix) for x in ['', 'K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y']]
    if num == 0:
        return "0%s" % extensions[0]
    else:
        n_bytes = float(abs(num))
        place = int(math.floor(math.log(n_bytes, 1024)))
        return "%.1f%s" % (np.sign(num) * (n_bytes / 1024** place), extensions[place])
1085200
def type_suffix(self):
        """"""
        if not self.type or self.type.lower() == 'ga':
            return ''
        return '-%s' % self.type.lower()
582122
def disttar_suffix(env, sources):
        """"""

        env_dict = env.Dictionary()
        if env_dict.has_key("DISTTAR_FORMAT") and env_dict["DISTTAR_FORMAT"] in ["gz", "bz2"]:
                return ".tar." + env_dict["DISTTAR_FORMAT"]
        else:
                return ".tar"
1269139
def suffix(filename,suffix):
    '''  '''
    return os.path.split(re.sub(_afni_suffix_regex,"%s\g<1>" % suffix,str(filename)))[1]
838865
async def get_final_destination(self):
        """"""
        dest = []
        await self.get_departures()
        for departure in self._departures:
            dep = {}
            dep['line'] = departure.get('line')
            dep['destination'] = departure.get('destination')
            dest.append(dep)
        return [dict(t) for t in {tuple(d.items()) for d in dest}]
1160967
def convert_from_bytes_if_necessary(prefix, suffix):
    
    if isinstance(prefix, bytes):
        prefix = prefix.decode('ascii')

    if isinstance(suffix, bytes):
        suffix = suffix.decode('ascii')

    return prefix, suffix
309526
def _get_destination(script_parts):
    """"""
    for part in script_parts:
        if part not in {'ln', '-s', '--symbolic'} and os.path.exists(part):
            return part
49368
def getArtifactPath(self, artifact, suffix=None, extension="jar"):
        
        return os.path.join(self._rootPath, artifact.getPath(suffix, extension, os.sep))
356511
def as_posix(self):
        """"""
        f = self._flavour
        return str(self).replace(f.sep, '/')
323282
def __filename(self, id):
        """"""
        suffix = self.fnsuffix()
        filename = "%s-%s.%s" % (self.fnprefix, id, suffix)
        return os.path.join(self.location, filename)
87058
def ends_with(self, suffix):
        
        suffix = suffix.lower()
        found_words = []

        res = cgaddag.gdg_ends_with(self.gdg, suffix.encode(encoding="ascii"))
        tmp = res

        while tmp:
            word = tmp.contents.str.decode("ascii")
            found_words.append(word)
            tmp = tmp.contents.next

        cgaddag.gdg_destroy_result(res)
        return found_words
1218599
private String suffix(final String line) {
        for (int i = 0; i < line.length(); i++) {
            char c = line.charAt(i);
            if (c == ' ' || c == '\t') return line.substring(i + 1);
        }
        return "";
    }