Does this name start with prefix?
542586
public boolean startsWith(Name prefix) {
        byte[] thisBytes = this.getByteArray();
        int thisOffset   = this.getByteOffset();
        int thisLength   = this.getByteLength();
        byte[] prefixBytes = prefix.getByteArray();
        int prefixOffset   = prefix.getByteOffset();
        int prefixLength   = prefix.getByteLength();

        int i = 0;
        while (i < prefixLength &&
               i < thisLength &&
               thisBytes[thisOffset + i] == prefixBytes[prefixOffset + i])
            i++;
        return i == prefixLength;
    }
662528
function(prefix)
{
   var count = -1;
   var ng = {
      next: function()
      {
         ++count;
         return ng.current();
      },
      current: function()
      {
         return '_:' + prefix + count;
      },
      inNamespace: function(iri)
      {
         return iri.indexOf('_:' + prefix) === 0;
      }
   };
   return ng;
}
491944
function(prefix, string) {
    return string.substring(0, prefix.length) == prefix ?
        string.substring(prefix.length) :
        '';
  }
1049841
public static boolean startsWith(String value, String... prefixes) {
        if (isNotEmpty(value) && isNotEmpty(prefixes)) {
            for (String prefix : prefixes) {
                if (value.startsWith(prefix)) {
                    return true;
                }
            }
        }
        return false;
    }
438529
def _remove_builtin_prefix(name):
    """"""
    if name.startswith('builtins.'):
        return name[len('builtins.'):]
    elif name.startswith('__builtin__.'):
        return name[len('__builtin__.'):]
    return name
894375
def prefix?(other)
      other = other.to_key_path
      return false if other.length > length

      key_enum = each
      other.all? { |other_key| key_enum.next == other_key }
    end
1088863
def rename(self, name):
        
        if name is None:
            raise Exception("name (%s) not-valid" % (name,))
        self.prefix, self.name = splitPrefix(name)
973206
function isInElementNameContext(editor, prefix, bufferPosition) {
	const marker = findMarker(editor);
	if (!marker) {
		return false;
	}

	const markerRange = marker.editorMarker.getBufferRange();
	const abbr = marker.model.abbreviation;
	const offset = bufferPosition.column - prefix.length - markerRange.start.column;

	if (offset === 0) {
		// Word prefix is at the beginning of abbreviation: it’s an element
		// context for sure
		return true;
	} else if (offset > 0) {
		// Check if prefix is at the element bound, e.g. right after operator
		return /[>^+()]/.test(abbr[offset - 1]);
	}

	return false;
}
797004
function prefix( $name = '' ) {
		return is_object( $this->parent ) ? $this->parent->prefix( $name ) : $name;
	}
948220
def auto_name_prefix(self):
        
        # if the platform is not native, auto_name would clobber native downloads.
        # make a prefix to avoid this
        native_system = std_platform.system()
        native_machine = self.CPU_ALIASES.get(std_platform.machine(), std_platform.machine())
        if native_system == self.system and native_machine == self.machine:
            return ''
        platform = {
            'linux': 'linux32',
            'android-api-16': 'android-arm',
            'android-aarch64': 'android-arm64',
        }.get(self.gecko_platform, self.gecko_platform)
        return platform + '-'
389002
def get_unique_name(self, prefix):
        '''
        '''
        ident = sum(t.startswith(prefix) for t, _ in self.layers.items()) + 1
        return '%s_%d' % (prefix, ident)
1054783
def get_basic_name(linker, bb)
      prefix = bb.get_output_prefix(linker)
      name = bb.name
      dylib = bb.shared_suffix linker
      return "#{prefix}#{name}#{dylib}"
    end
592271
function getNewName(array, prefix) {
        var num = 0, name = null;
        do {
            num++;
            name = prefix + num;
        } while (findByName(array, name));
        return name;
    }
971694
private String noprefix(String name, String... prefix) {
        for (int i = 0; i < prefix.length; i++) {
            if (name.startsWith(prefix[i])) {
                name = name.replaceAll(prefix[i], "");
            }
        }
        return name;
    }
438728
def startswith(self, prefix, start=None, end=None):
        
        prefix = Bits(prefix)
        start, end = self._validate_slice(start, end)
        if end < start + prefix.len:
            return False
        end = start + prefix.len
        return self._slice(start, end) == prefix
610610
public boolean startsWith(byte[] prefix) {
        if ((prefix.length == 0) || (prefix.length > size())) {
            // no match would be possible
            return false;
        }
        boolean match = true;
        int i = 0;
        int j = this.currentReadPosition;
        while (match && (i < prefix.length)) {
            if (this.buffer[j] != prefix[i]) {
                match = false;
            }
            i++;
            j = (j + 1) % this.buffer.length;
        }
        return match;
    }
1236148
public function prefixToNamespaceURI($prefix)
    {
        return isset($this->prefix_to_uri[$prefix]) ? $this->prefix_to_uri[$prefix] : false;
    }