mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Merge branch 'YosysHQ:main' into main
This commit is contained in:
		
						commit
						00a37bb318
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -59,6 +59,10 @@ namespace Yosys | |||
| 
 | ||||
| 			std::string pin() { | ||||
| 				auto length = s.find_first_of("\t()'!^*& +|"); | ||||
| 				if (length == std::string::npos) { | ||||
| 					// nothing found so use size of s
 | ||||
| 					length = s.size(); | ||||
| 				} | ||||
| 				auto pin = s.substr(0, length); | ||||
| 				s = s.substr(length, s.size()); | ||||
| 				return pin; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue