Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions rtl/extras/strings_maps.vhdl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
--# strings_maps.vhdl - Functions for character set operations
--# Freely available from VHDL-extras (http://github.com/kevinpt/vhdl-extras)
--#
--# Copyright 2010 Kevin Thibedeau
--# Copyright © 2010 Kevin Thibedeau
--# (kevin 'period' thibedeau 'at' gmail 'punto' com)
--#
--# Permission is hereby granted, free of charge, to any person obtaining a
Expand Down Expand Up @@ -115,7 +115,7 @@ package strings_maps is
--# sequence: String of characters to build into a set
--# Returns:
--# A character set with all unique characters from sequence.
function to_set( sequence : character_sequence ) return character_set;
function to_set( seq : character_sequence ) return character_set;

--## Convert a character into a set.
--# Args:
Expand Down Expand Up @@ -267,11 +267,11 @@ package body strings_maps is


--## Convert a character sequence to a set
function to_set( sequence : character_sequence ) return character_set is
function to_set( seq : character_sequence ) return character_set is
variable result : character_set := null_set;
begin
for i in sequence'range loop
result(sequence(i)) := true;
for i in seq'range loop
result(seq(i)) := true;
end loop;

return result;
Expand Down